Yaroslav Halchenko, 25.07.2012 18:50: > Congrats on the beta-release! While testing an updated debian package > for cython I have ran into failures with Python 3.2.3 (default, Jul 13 2012, > 21:02:37) [GCC 4.7.1] (complete log: > http://neuro.debian.net/_files/_buildlogs/cython/0.17~beta1/cython_0.17~beta1-1_amd64.build)
Thanks for testing it. > anything familiar? (I see PY3 fix bf7981fb37b19f08a331c704df8bf25d3b299be5 but > it doesn't look relevant for this one, or am I wrong?) No, I haven't seen this before. > ====================================================================== > ERROR: test_globals (Cython.Build.Tests.TestInline.TestInline) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File > "/tmp/buildd/cython-0.17~beta1/build/work-dir/Cy3/Cython/Build/Tests/TestInline.py", > line 41, in test_globals > self.assertEquals(inline("return global_value + 1", **self.test_kwds), > global_value + 1) > File "/tmp/buildd/cython-0.17~beta1/build/work-dir/Cy3/Cython/Shadow.py", > line 38, in inline > return cython_inline(f, *args, **kwds) > File > "/tmp/buildd/cython-0.17~beta1/build/work-dir/Cy3/Cython/Build/Inline.py", > line 194, in cython_inline > module = imp.load_dynamic(module_name, module_path) > ImportError: > /tmp/cython_inline_zo_0tz/_cython_inline_d0fe156ce72658e73c2b9a9438fd8d6a.cpython-32mu-x86_64-linux-gnu.so: > cannot open shared object file: No such file or directory That's weird, and I don't think this is Cython's fault. According to the logs, the shared library file that it built is called _cython_inline_d0fe156ce72658e73c2b9a9438fd8d6a.cpython-32mu.so i.e. the "cpython-32mu-x86_64-linux-gnu" should be "cpython-32mu". The module path that Cython tries (and fails) to load the module from is built like this in the code: """ so_ext = [ ext for ext,_,mod_type in imp.get_suffixes() if mod_type == imp.C_EXTENSION ][0] module_path = os.path.join(lib_dir, module_name+so_ext) """ So, apparently, imp.get_suffixes() returns an unexpected result here. Could you figure out what exactly that function returns in your Py3.2 build environment? The same code works for all other environments, and it also works for our own Py3.2 test build: https://sage.math.washington.edu:8091/hudson/job/cython-devel-build/PYVERSION=py32/572/testReport/Cython.Build.Tests.TestInline/ Stefan _______________________________________________ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/listinfo/cython-devel