诡异的python问题

Python/PHP/Perl 开发与设计
回复
crabhit
帖子: 6
注册时间: 2006-12-01 12:33
送出感谢: 0
接收感谢: 0

诡异的python问题

#1

帖子 crabhit » 2007-04-02 8:57

这是用jtag时出现的一个问题

File "/opt/msp430/bin/msp430-jtag", line 16, in ?
from msp430 import memory, jtag
File "/usr/lib/python2.4/site-packages/msp430/jtag.py", line 58, in ?
MSP430mspgcc = ctypes.cdll.MSP430mspgcc
File "/usr/lib/python2.4/site-packages/ctypes/__init__.py", line 390, in __getattr__
dll = self._dlltype(name)
File "/usr/lib/python2.4/site-packages/ctypes/__init__.py", line 315, in __init__
self._handle = _dlopen(self._name, mode)
OSError: MSP430mspgcc: cannot open shared object file: No such file or directory
make: *** [program] 错误 1

我在/usr/lib/python2.4/site-packages/msp430里找到libMSP430mspgcc.so了
即使我把它和/usr/lib/python2.4/site-packages/ctypes/__init__.py放在一起还是不行
这是为什么呢?
回复

回到 “Python/Php/Perl”