Administrator Guide

20 Python Scripting for Dell Networking N-Series | Version 1.0.1
4 Troubleshooting
This section provides tips on how to help alleviate problems that may be encountered when working with
Python scripts.
Problem
Possible Solution(s)
error “ImportError: no module” is
received when importing a module
into Python
The module you are trying to use is not available.
Double-check the spelling of the module.
It is also possible that the module is valid for Python but
not supported in the Dell N-Series switch. For a
complete list of supported modules for N-Series, see
Appendix A: Supported Python modules
.
error “execl: Exec format error”
when running the “application start
command
Make sure both the compressed file (.tar.gz or .tgz) as
well as the uncompressed file permissions are set to
“execute” before copying the file onto the switch.
Make sure the script is created and saved with a
scripting editor that uses plain text character encoding
(UTF-8 or ASCII). This ensures that no special (hidden)
characters are embedded within the file preventing it
from executing properly. Common text editors such as
those used for word processing typically add special
characters that restrict scripts from properly executing.
error when attempting to start script
using the “application start”
command
Check to make sure the first line in the script is
#!/user/bin/env python.
No output on the screen
If after starting the application script, expected output
does not display in the CLI session, be sure to view the
serial console for output and not an SSH or Telnet
session. Python scripts only send output to the serial
console.
script files are missing from the
“user-apps” directory or when
typing “show application files,even
though the TFTP copy was
successful
Check to see if the script filename has exceeded 16
characters (including extensions). There is a limitation of
16 characters for Python script filenames. The
compressed file (with a .tgz or .tar.gz extension) also
has this limitation.