Y
Yong Wang
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):
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
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):
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']cisco werc-2950t-1
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