[Python-apps-team] Bug#681697: cython: import code incompatible with Python 3.3: ValueError: level must be >= 0
Jakub Wilk
jwilk at debian.org
Sun Jul 15 18:08:41 UTC 2012
Package: cython
Version: 0.15.1-2
Severity: important
User: debian-python at lists.debian.org
Usertags: python3.3
cython generates import code that is incompatible with Python 3.3:
$ echo "import sys" > importtest.pyx
$ gcc $(python3.3-config --cflags --libs) -shared importtest.c -o importtest.so
$ python3.3 -c 'import importtest'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "<frozen importlib._bootstrap>", line 1294, in _find_and_load
File "<frozen importlib._bootstrap>", line 1261, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 432, in _check_name_wrapper
File "<frozen importlib._bootstrap>", line 347, in set_package_wrapper
File "<frozen importlib._bootstrap>", line 360, in set_loader_wrapper
File "<frozen importlib._bootstrap>", line 872, in load_module
File "importtest.pyx", line 1, in init importtest (importtest.c:524)
import sys
ValueError: level must be >= 0
--
Jakub Wilk
More information about the Python-apps-team
mailing list