[cython/cython] [BUG] cythonize crashes when an include directory contains files with extra . characters (Issue #5396)

0 views
Skip to first unread message

Simon Lees

unread,
Apr 20, 2023, 2:24:01 AM4/20/23
to cython/cython, Subscribed

Describe the bug

When cythonize is passed an include_path that contains a directory with the following files, it crashes in the following way

simon@tek-top /var/tmp/build-root/openSUSE_Tumbleweed-x86_64/home/abuild/rpmbuild/BUILD/python-efl-1.26.0/include ➤ ls
efl.c_eo.pxd efl.ecore_input.pxd efl.edje.pxd efl.eo.pxd efl.utils.conversions.pxd
efl.c_ethumb.pxd efl.ecore.pxd efl.eina.pxd efl.ethumb_client.pxd efl.utils.deprecated.pxd
efl.ecore_con.enums.pxd efl.ecore_x.pxd efl.elementary.enums.pxd efl.ethumb.enums.pxd efl.utils.logger.pxd
efl.ecore_con.pxd efl.edje_edit.enums.pxd efl.elementary.pxd efl.ethumb.pxd
efl.ecore.enums.pxd efl.edje_edit.pxd efl.emotion.enums.pxd efl.evas.enums.pxd
efl.ecore_input.enums.pxd efl.edje.enums.pxd efl.emotion.pxd efl.evas.pxd

[ 5s] File "/home/abuild/rpmbuild/BUILD/python-efl-1.26.0/setup.py", line 304, in
[ 5s] ext_modules = cythonize(
[ 5s] File "/usr/lib64/python3.10/site-packages/Cython/Build/Dependencies.py", line 985, in cythonize
[ 5s] module_list, module_metadata = create_extension_list(
[ 5s] File "/usr/lib64/python3.10/site-packages/Cython/Build/Dependencies.py", line 834, in create_extension_list
[ 5s] kwds = deps.distutils_info(file, aliases, base).values
[ 5s] File "/usr/lib64/python3.10/site-packages/Cython/Build/Dependencies.py", line 687, in distutils_info
[ 5s] return (self.transitive_merge(filename, self.distutils_info0, DistutilsInfo.merge)
[ 5s] File "/usr/lib64/python3.10/site-packages/Cython/Build/Dependencies.py", line 696, in transitive_merge
[ 5s] return self.transitive_merge_helper(
[ 5s] File "/usr/lib64/python3.10/site-packages/Cython/Build/Dependencies.py", line 708, in transitive_merge_helper
[ 5s] for next in outgoing(node):
[ 5s] File "Cython/Utils.py", line 129, in Cython.Utils.cached_method.wrapper
[ 5s] File "/usr/lib64/python3.10/site-packages/Cython/Build/Dependencies.py", line 609, in cimported_files
[ 5s] pxd_file = self.find_pxd(module, filename)
[ 5s] File "Cython/Utils.py", line 129, in Cython.Utils.cached_method.wrapper
[ 5s] File "/usr/lib64/python3.10/site-packages/Cython/Build/Dependencies.py", line 590, in find_pxd
[ 5s] pxd = self.context.find_pxd_file(relative, source_file_path=filename)
[ 5s] File "/usr/lib64/python3.10/site-packages/Cython/Compiler/Main.py", line 245, in find_pxd_file
[ 5s] pxd = self.search_include_directories(
[ 5s] File "/usr/lib64/python3.10/site-packages/Cython/Compiler/Main.py", line 273, in search_include_directories
[ 5s] return search_include_directories(
[ 5s] File "Cython/Utils.py", line 90, in Cython.Utils.cached_function.wrapper
[ 5s] File "/usr/lib64/python3.10/site-packages/Cython/Compiler/Main.py", line 669, in search_include_directories
[ 5s] warning(pos, "Dotted filenames ('%s') are deprecated."
[ 5s] File "/usr/lib64/python3.10/site-packages/Cython/Compiler/Errors.py", line 215, in warning
[ 5s] listing_file = threadlocal.cython_errors_listing_file
[ 5s] AttributeError: '_thread._local' object has no attribute 'cython_errors_listing_file'

A full copy of the setup.py can be found at http://git.enlightenment.org/enlightenment/python-efl/src/branch/master/setup.py and a build log for openSUSE Tumbleweed can be found at https://build.opensuse.org/package/live_build_log/home:simotek:branches:X11:Enlightenment:Factory/python-efl/openSUSE_Tumbleweed/x86_64

Code to reproduce the behaviour:

As above

Expected behaviour

The code to comple correctly as it did with python3.8

OS

Linux

Python version

3.9,3.10,3.11

Cython version

3.0.0a11

Additional context

No response


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <cython/cython/issues/5396@github.com>

scoder

unread,
May 23, 2023, 3:03:14 AM5/23/23
to cython/cython, Subscribed

Closed #5396 as completed via #5445.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <cython/cython/issue/5396/issue_event/9311890125@github.com>

huxinkai

unread,
May 16, 2024, 3:28:54 AM5/16/24
to cython/cython, Subscribed

你好,我也遇到了相同的问题,请问你是怎么解决的呢?谢谢


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <cython/cython/issues/5396/2114269585@github.com>

Reply all
Reply to author
Forward
0 new messages