Import command
Yong Wang
yong at net.tamu.edu
Thu Aug 12 14:21:42 EDT 2004
Hi,
I write a program to do some network device management. In the beginning
of my codes, I have:
#!/usr/local/bin/python
# System imports
import sys, string, pwd, posix
sys.path.insert(1, '/home/yong/nd3/Modules')
print 'sys path is ', sys.path
import snmpPP
import NDconfig
# Miscellaneous ND stuff
import rcmd, misc
......
When I run the codes, I get the following error though I have inserted import snmpPP
sources path (/home/yong3/nd3/Modules):
> cisco werc-2950t-1
sys path is ['', '/home/yong/nd3/Modules', '/usr/local/lib/python1.5/', '/usr/local/lib/python1.5/plat-sunos5', '/usr/local/lib/python1.5/lib-tk', '/usr/local/lib/python1.5/lib-dynload']
Traceback (innermost last):
File "cisco", line 10, in ?
import snmpPP
ImportError: ld.so.1: /usr/local/bin/python: fatal: relocation error: file /usr/local/lib/libreadline.so: symbol tputs: referenced symbol not found
How should I fix the import problem ?
Thanks a lot.
Yong
More information about the Python-list
mailing list