Different versions of ctypes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ctypes (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
When I run elisa I get an exception as follows:
WARN MainThread gst_metadata_
File "/usr/lib/
sys.
File "/usr/lib/
runner = namedAny(runner)
File "/usr/lib/
topLevelPackage = _importAndCheck
File "/usr/lib/
return __import_
File "/usr/lib/
from elisa.plugins.
File "/usr/lib/
from twisted.
File "/usr/lib/
from twisted.python import log, filepath
File "/usr/lib/
from twisted.
File "/usr/lib/
formatError = _ErrorFormatter
File "/usr/lib/
from ctypes import WinError
File "/usr/lib/
raise Exception, ("Version number mismatch", __version__, _ctypes_version)
This exception is raised from within ctypes and it seems like the /usr/lib/
The python2.5 package is version 2.5.2-11.1ubuntu1
The python-ctypes is version 1.0.2-5ubuntu2
/usr/share/
__version__ = "1.0.2"
While in the shared object file _ctypes.so:
$> grep 1.0.2 /usr/lib/
- gives no match
$> grep 1.0.3 /usr/lib/
Binary file /usr/lib/
I confirm the difference in version numbers: pyshared/ ctypes/ __init_ _.py python* /lib-dynload/ _ctypes. so | grep 1\.\0\. python2. 5/ctypes python2. 5/ctypes/ __init_ _.pyc matches /usr/lib/ python2. 5/ctypes/ __init_ _.py python2. 5/ctypes/ __init_ _.pyc "/usr/lib/ python2. 5/lib-dynload/ _ctypes. so", 2); python2. 5/lib-dynload/ _ctypes. so python2. 5/ctypes/ _endian. pyc matches /usr/lib/ python2. 5/ctypes/ _endian. py python2. 5/ctypes/ _endian. pyc
$ grep ^__version__ /usr/share/
__version__ = "1.0.2"
$ strings /usr/lib/
1.0.3
although I don't have a problem with ctypes
$ python -c 'import ctypes'; echo ${?}
0
$ python -v -c 'import ctypes' 2>&1 | grep ctypes
import ctypes # directory /usr/lib/
# /usr/lib/
import ctypes # precompiled from /usr/lib/
dlopen(
import _ctypes # dynamically loaded from /usr/lib/
# /usr/lib/
import ctypes._endian # precompiled from /usr/lib/
# cleanup[1] _ctypes
# cleanup[1] ctypes
# cleanup[1] ctypes._endian
I have the same package versions as the submitter.