Import command
gohaku
gohaku at earthlink.net
Thu Aug 12 14:37:55 EDT 2004
On Aug 12, 2004, at 2:21 PM, Yong Wang wrote:
> 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.
>
what is the filename of the script you are trying to run?
I get the feeling there's a filename conflict in case your script's
filename is
snmpPP.py
More information about the Python-list
mailing list