Saturday, February 01, 2025

py-pandas build failure / AttributeError: module 'pythran' has no attribute '__version__'

>>> Building on localhost under math/py-pandas
BDEPENDS = [devel/py-versioneer;devel/py-wheel;math/py-oldest-supported-numpy;lang/cython;math/py-numpy;lang/python/3;devel/meson-python;devel/py-build;devel/py-installer]
DIST = [math/py-pandas:pandas-2.2.3.tar.gz]
FULLPKGNAME = py3-pandas-2.2.3p0
RDEPENDS = [devel/py-tzdata;devel/py-dateutil;devel/py-tz;math/py-numpy;lang/python/3]
Woken up math/py-pandas
(Junk lock failure for localhost at 1738442804.89917)
Received IO
(Junk lock obtained for localhost at 1738442806.10)
Received IO
Woken up math/py-pandas
>>> Running depends in math/py-pandas at 1738442806.97
last junk was in devel/p5-List-MoreUtils
/usr/sbin/pkg_add -aI -Drepair meson-python-0.17.1p0 py3-cython-3.0.11p0v0 py3-oldest-supported-numpy-2022.8.16p2 py3-versioneer-0.29p0
was: /usr/sbin/pkg_add -aI -Drepair meson-python-0.17.1p0 py3-build-1.2.2.post1p0 py3-cython-3.0.11p0v0 py3-installer-0.7.0p1 py3-numpy-1.26.4p5 py3-oldest-supported-numpy-2022.8.16p2 py3-versioneer-0.29p0 py3-wheel-0.45.1p0 python-3.12.8p1
/usr/sbin/pkg_add -aI -Drepair meson-python-0.17.1p0 py3-cython-3.0.11p0v0 py3-oldest-supported-numpy-2022.8.16p2 py3-versioneer-0.29p0
>>> Running show-prepare-results in math/py-pandas at 1738442807.94
===> math/py-pandas
===> Building from scratch py3-pandas-2.2.3p0
===> py3-pandas-2.2.3p0 depends on: meson-python-* -> meson-python-0.17.1p0
===> py3-pandas-2.2.3p0 depends on: py3-versioneer-* -> py3-versioneer-0.29p0
===> py3-pandas-2.2.3p0 depends on: py3-wheel-* -> py3-wheel-0.45.1p0
===> py3-pandas-2.2.3p0 depends on: py3-cython-* -> py3-cython-3.0.11p0v0
===> py3-pandas-2.2.3p0 depends on: py3-numpy-* -> py3-numpy-1.26.4p5
===> py3-pandas-2.2.3p0 depends on: py3-oldest-supported-numpy-* -> py3-oldest-supported-numpy-2022.8.16p2
===> py3-pandas-2.2.3p0 depends on: python->=3.12,<3.13 -> python-3.12.8p1
===> py3-pandas-2.2.3p0 depends on: py3-build-* -> py3-build-1.2.2.post1p0
===> py3-pandas-2.2.3p0 depends on: py3-installer-* -> py3-installer-0.7.0p1
===> Verifying specs: c++ c++abi pthread m python3.12
===> found c++.10.0 c++abi.7.0 pthread.27.1 m.10.1 python3.12.0.0
meson-python-0.17.1p0
py3-build-1.2.2.post1p0
py3-cython-3.0.11p0v0
py3-installer-0.7.0p1
py3-numpy-1.26.4p5
py3-oldest-supported-numpy-2022.8.16p2
py3-versioneer-0.29p0
py3-wheel-0.45.1p0
python-3.12.8p1
(Junk lock released for localhost at 1738442809.14)
Woken up www/p5-HTML-Prototype
distfiles size=4399213
>>> Running patch in math/py-pandas at 1738442809.16
===> math/py-pandas
===> Checking files for py3-pandas-2.2.3p0
`/data/distfiles/pandas-2.2.3.tar.gz' is up to date.
>> (SHA256) all files: OK
===> Extracting for py3-pandas-2.2.3p0
===> Patching for py3-pandas-2.2.3p0
===> Applying OpenBSD patch patch-pyproject_toml
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|Index: pyproject.toml
|--- pyproject.toml.orig
|+++ pyproject.toml
--------------------------
Patching file pyproject.toml using Plan A...
Hunk #1 succeeded at 2.
Hunk #2 succeeded at 29.
done
===> Compiler link: clang -> /usr/bin/clang
===> Compiler link: clang++ -> /usr/bin/clang++
===> Compiler link: cc -> /usr/bin/cc
===> Compiler link: c++ -> /usr/bin/c++
>>> Running configure in math/py-pandas at 1738442809.73
===> math/py-pandas
===> Generating configure for py3-pandas-2.2.3p0
===> Configuring for py3-pandas-2.2.3p0
>>> Running build in math/py-pandas at 1738442809.91
===> math/py-pandas
===> Building for py3-pandas-2.2.3p0
* Getting build dependencies for wheel...
* Building wheel...
+ meson setup /tmp/pobj/py-pandas-2.2.3/pandas-2.2.3 /tmp/pobj/py-pandas-2.2.3/pandas-2.2.3/.mesonpy-_mnk74u3 -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --vsenv --native-file=/tmp/pobj/py-pandas-2.2.3/pandas-2.2.3/.mesonpy-_mnk74u3/meson-python-native-file.ini
The Meson build system
Version: 1.7.0
Source dir: /tmp/pobj/py-pandas-2.2.3/pandas-2.2.3
Build dir: /tmp/pobj/py-pandas-2.2.3/pandas-2.2.3/.mesonpy-_mnk74u3
Build type: native build
Project name: pandas
Project version: 2.2.3
C compiler for the host machine: cc (clang 19.1.7 "OpenBSD clang version 19.1.7")
C linker for the host machine: cc ld.lld 19.1.7
C++ compiler for the host machine: c++ (clang 19.1.7 "OpenBSD clang version 19.1.7")
C++ linker for the host machine: c++ ld.lld 19.1.7
Cython compiler for the host machine: cython (cython 3.0.11)
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program python found: YES (/usr/local/bin/python3.12)
Found pkg-config: YES (/usr/bin/pkg-config) 0.29.2
Run-time dependency python found: YES 3.12
Build targets in project: 53

pandas 2.2.3

User defined options
Native files: /tmp/pobj/py-pandas-2.2.3/pandas-2.2.3/.mesonpy-_mnk74u3/meson-python-native-file.ini
b_ndebug : if-release
b_vscrt : md
buildtype : release
vsenv : true

Found ninja-1.11.1 at /usr/local/bin/ninja

Visual Studio environment is needed to run Ninja. It is recommended to use Meson wrapper:
/usr/local/bin/meson compile -C .
+ /usr/local/bin/ninja
[1/151] Generating pandas/_libs/hashtable_class_helper_pxi with a custom command
[2/151] Generating pandas/_libs/intervaltree_helper_pxi with a custom command
[3/151] Generating pandas/_libs/khash_primitive_helper_pxi with a custom command
[4/151] Generating pandas/_libs/algos_common_helper_pxi with a custom command
[5/151] Generating pandas/_libs/index_class_helper_pxi with a custom command
[6/151] Copying file pandas/__init__.py
[7/151] Generating pandas/_libs/algos_take_helper_pxi with a custom command
[8/151] Generating pandas/_libs/sparse_op_helper_pxi with a custom command
[9/151] Generating pandas/_libs/hashtable_func_helper_pxi with a custom command
[10/151] Compiling Cython source /tmp/pobj/py-pandas-2.2.3/pandas-2.2.3/pandas/_libs/tslibs/parsing.pyx
FAILED: pandas/_libs/tslibs/parsing.cpython-312.so.p/pandas/_libs/tslibs/parsing.pyx.c
cython -M --fast-fail -3 --include-dir /tmp/pobj/py-pandas-2.2.3/pandas-2.2.3/.mesonpy-_mnk74u3/pandas/_libs/tslibs '-X always_allow_keywords=true' /tmp/pobj/py-pandas-2.2.3/pandas-2.2.3/pandas/_libs/tslibs/parsing.pyx -o pandas/_libs/tslibs/parsing.cpython-312.so.p/pandas/_libs/tslibs/parsing.pyx.c
Traceback (most recent call last):
File "/usr/local/bin/cython", line 8, in <module>
sys.exit(setuptools_main())
^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 754, in setuptools_main
return main(command_line = 1)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 782, in main
result = compile(sources, options)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 673, in compile
return compile_multiple(source, options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 641, in compile_multiple
context = Context.from_options(options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 100, in from_options
return cls(options.include_path, options.compiler_directives,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 78, in __init__
from . import Builtin, CythonScope
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/CythonScope.py", line 5, in <module>
from .UtilityCode import CythonUtilityCode
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/UtilityCode.py", line 3, in <module>
from .TreeFragment import parse_from_strings, StringParseContext
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/TreeFragment.py", line 17, in <module>
from .Visitor import VisitorTransform
File "Cython/Compiler/Visitor.py", line 16, in init Cython.Compiler.Visitor
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Nodes.py", line 33, in <module>
from .Pythran import has_np_pythran, pythran_type, is_pythran_buffer
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Pythran.py", line 11, in <module>
pythran_is_pre_0_9 = tuple(map(int, pythran.__version__.split('.')[0:2])) < (0, 9)
^^^^^^^^^^^^^^^^^^^
AttributeError: module 'pythran' has no attribute '__version__'
[11/151] Compiling Cython source /tmp/pobj/py-pandas-2.2.3/pandas-2.2.3/pandas/_libs/tslibs/base.pyx
FAILED: pandas/_libs/tslibs/base.cpython-312.so.p/pandas/_libs/tslibs/base.pyx.c
cython -M --fast-fail -3 --include-dir /tmp/pobj/py-pandas-2.2.3/pandas-2.2.3/.mesonpy-_mnk74u3/pandas/_libs/tslibs '-X always_allow_keywords=true' /tmp/pobj/py-pandas-2.2.3/pandas-2.2.3/pandas/_libs/tslibs/base.pyx -o pandas/_libs/tslibs/base.cpython-312.so.p/pandas/_libs/tslibs/base.pyx.c
Traceback (most recent call last):
File "/usr/local/bin/cython", line 8, in <module>
sys.exit(setuptools_main())
^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 754, in setuptools_main
return main(command_line = 1)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 782, in main
result = compile(sources, options)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 673, in compile
return compile_multiple(source, options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 641, in compile_multiple
context = Context.from_options(options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 100, in from_options
return cls(options.include_path, options.compiler_directives,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 78, in __init__
from . import Builtin, CythonScope
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/CythonScope.py", line 5, in <module>
from .UtilityCode import CythonUtilityCode
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/UtilityCode.py", line 3, in <module>
from .TreeFragment import parse_from_strings, StringParseContext
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/TreeFragment.py", line 17, in <module>
from .Visitor import VisitorTransform
File "Cython/Compiler/Visitor.py", line 16, in init Cython.Compiler.Visitor
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Nodes.py", line 33, in <module>
from .Pythran import has_np_pythran, pythran_type, is_pythran_buffer
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Pythran.py", line 11, in <module>
pythran_is_pre_0_9 = tuple(map(int, pythran.__version__.split('.')[0:2])) < (0, 9)
^^^^^^^^^^^^^^^^^^^
AttributeError: module 'pythran' has no attribute '__version__'
[12/151] Compiling Cython source /tmp/pobj/py-pandas-2.2.3/pandas-2.2.3/pandas/_libs/tslibs/fields.pyx
FAILED: pandas/_libs/tslibs/fields.cpython-312.so.p/pandas/_libs/tslibs/fields.pyx.c
cython -M --fast-fail -3 --include-dir /tmp/pobj/py-pandas-2.2.3/pandas-2.2.3/.mesonpy-_mnk74u3/pandas/_libs/tslibs '-X always_allow_keywords=true' /tmp/pobj/py-pandas-2.2.3/pandas-2.2.3/pandas/_libs/tslibs/fields.pyx -o pandas/_libs/tslibs/fields.cpython-312.so.p/pandas/_libs/tslibs/fields.pyx.c
Traceback (most recent call last):
File "/usr/local/bin/cython", line 8, in <module>
sys.exit(setuptools_main())
^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 754, in setuptools_main
return main(command_line = 1)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 782, in main
result = compile(sources, options)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 673, in compile
return compile_multiple(source, options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 641, in compile_multiple
context = Context.from_options(options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 100, in from_options
return cls(options.include_path, options.compiler_directives,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 78, in __init__
from . import Builtin, CythonScope
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/CythonScope.py", line 5, in <module>
from .UtilityCode import CythonUtilityCode
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/UtilityCode.py", line 3, in <module>
from .TreeFragment import parse_from_strings, StringParseContext
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/TreeFragment.py", line 17, in <module>
from .Visitor import VisitorTransform
File "Cython/Compiler/Visitor.py", line 16, in init Cython.Compiler.Visitor
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Nodes.py", line 33, in <module>
from .Pythran import has_np_pythran, pythran_type, is_pythran_buffer
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Pythran.py", line 11, in <module>
pythran_is_pre_0_9 = tuple(map(int, pythran.__version__.split('.')[0:2])) < (0, 9)
^^^^^^^^^^^^^^^^^^^
AttributeError: module 'pythran' has no attribute '__version__'
[13/151] Compiling Cython source /tmp/pobj/py-pandas-2.2.3/pandas-2.2.3/pandas/_libs/tslibs/np_datetime.pyx
FAILED: pandas/_libs/tslibs/np_datetime.cpython-312.so.p/pandas/_libs/tslibs/np_datetime.pyx.c
cython -M --fast-fail -3 --include-dir /tmp/pobj/py-pandas-2.2.3/pandas-2.2.3/.mesonpy-_mnk74u3/pandas/_libs/tslibs '-X always_allow_keywords=true' /tmp/pobj/py-pandas-2.2.3/pandas-2.2.3/pandas/_libs/tslibs/np_datetime.pyx -o pandas/_libs/tslibs/np_datetime.cpython-312.so.p/pandas/_libs/tslibs/np_datetime.pyx.c
Traceback (most recent call last):
File "/usr/local/bin/cython", line 8, in <module>
sys.exit(setuptools_main())
^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 754, in setuptools_main
return main(command_line = 1)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 782, in main
result = compile(sources, options)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 673, in compile
return compile_multiple(source, options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 641, in compile_multiple
context = Context.from_options(options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 100, in from_options
return cls(options.include_path, options.compiler_directives,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 78, in __init__
from . import Builtin, CythonScope
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/CythonScope.py", line 5, in <module>
from .UtilityCode import CythonUtilityCode
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/UtilityCode.py", line 3, in <module>
from .TreeFragment import parse_from_strings, StringParseContext
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/TreeFragment.py", line 17, in <module>
from .Visitor import VisitorTransform
File "Cython/Compiler/Visitor.py", line 16, in init Cython.Compiler.Visitor
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Nodes.py", line 33, in <module>
from .Pythran import has_np_pythran, pythran_type, is_pythran_buffer
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Pythran.py", line 11, in <module>
pythran_is_pre_0_9 = tuple(map(int, pythran.__version__.split('.')[0:2])) < (0, 9)
^^^^^^^^^^^^^^^^^^^
AttributeError: module 'pythran' has no attribute '__version__'
[14/151] Compiling Cython source /tmp/pobj/py-pandas-2.2.3/pandas-2.2.3/pandas/_libs/tslibs/dtypes.pyx
FAILED: pandas/_libs/tslibs/dtypes.cpython-312.so.p/pandas/_libs/tslibs/dtypes.pyx.c
cython -M --fast-fail -3 --include-dir /tmp/pobj/py-pandas-2.2.3/pandas-2.2.3/.mesonpy-_mnk74u3/pandas/_libs/tslibs '-X always_allow_keywords=true' /tmp/pobj/py-pandas-2.2.3/pandas-2.2.3/pandas/_libs/tslibs/dtypes.pyx -o pandas/_libs/tslibs/dtypes.cpython-312.so.p/pandas/_libs/tslibs/dtypes.pyx.c
Traceback (most recent call last):
File "/usr/local/bin/cython", line 8, in <module>
sys.exit(setuptools_main())
^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 754, in setuptools_main
return main(command_line = 1)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 782, in main
result = compile(sources, options)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 673, in compile
return compile_multiple(source, options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 641, in compile_multiple
context = Context.from_options(options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 100, in from_options
return cls(options.include_path, options.compiler_directives,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 78, in __init__
from . import Builtin, CythonScope
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/CythonScope.py", line 5, in <module>
from .UtilityCode import CythonUtilityCode
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/UtilityCode.py", line 3, in <module>
from .TreeFragment import parse_from_strings, StringParseContext
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/TreeFragment.py", line 17, in <module>
from .Visitor import VisitorTransform
File "Cython/Compiler/Visitor.py", line 16, in init Cython.Compiler.Visitor
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Nodes.py", line 33, in <module>
from .Pythran import has_np_pythran, pythran_type, is_pythran_buffer
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Pythran.py", line 11, in <module>
pythran_is_pre_0_9 = tuple(map(int, pythran.__version__.split('.')[0:2])) < (0, 9)
^^^^^^^^^^^^^^^^^^^
AttributeError: module 'pythran' has no attribute '__version__'
[15/151] Compiling Cython source /tmp/pobj/py-pandas-2.2.3/pandas-2.2.3/pandas/_libs/tslibs/ccalendar.pyx
FAILED: pandas/_libs/tslibs/ccalendar.cpython-312.so.p/pandas/_libs/tslibs/ccalendar.pyx.c
cython -M --fast-fail -3 --include-dir /tmp/pobj/py-pandas-2.2.3/pandas-2.2.3/.mesonpy-_mnk74u3/pandas/_libs/tslibs '-X always_allow_keywords=true' /tmp/pobj/py-pandas-2.2.3/pandas-2.2.3/pandas/_libs/tslibs/ccalendar.pyx -o pandas/_libs/tslibs/ccalendar.cpython-312.so.p/pandas/_libs/tslibs/ccalendar.pyx.c
Traceback (most recent call last):
File "/usr/local/bin/cython", line 8, in <module>
sys.exit(setuptools_main())
^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 754, in setuptools_main
return main(command_line = 1)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 782, in main
result = compile(sources, options)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 673, in compile
return compile_multiple(source, options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 641, in compile_multiple
context = Context.from_options(options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 100, in from_options
return cls(options.include_path, options.compiler_directives,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 78, in __init__
from . import Builtin, CythonScope
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/CythonScope.py", line 5, in <module>
from .UtilityCode import CythonUtilityCode
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/UtilityCode.py", line 3, in <module>
from .TreeFragment import parse_from_strings, StringParseContext
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/TreeFragment.py", line 17, in <module>
from .Visitor import VisitorTransform
File "Cython/Compiler/Visitor.py", line 16, in init Cython.Compiler.Visitor
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Nodes.py", line 33, in <module>
from .Pythran import has_np_pythran, pythran_type, is_pythran_buffer
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Pythran.py", line 11, in <module>
pythran_is_pre_0_9 = tuple(map(int, pythran.__version__.split('.')[0:2])) < (0, 9)
^^^^^^^^^^^^^^^^^^^
AttributeError: module 'pythran' has no attribute '__version__'
[16/151] Compiling Cython source /tmp/pobj/py-pandas-2.2.3/pandas-2.2.3/pandas/_libs/tslibs/conversion.pyx
FAILED: pandas/_libs/tslibs/conversion.cpython-312.so.p/pandas/_libs/tslibs/conversion.pyx.c
cython -M --fast-fail -3 --include-dir /tmp/pobj/py-pandas-2.2.3/pandas-2.2.3/.mesonpy-_mnk74u3/pandas/_libs/tslibs '-X always_allow_keywords=true' /tmp/pobj/py-pandas-2.2.3/pandas-2.2.3/pandas/_libs/tslibs/conversion.pyx -o pandas/_libs/tslibs/conversion.cpython-312.so.p/pandas/_libs/tslibs/conversion.pyx.c
Traceback (most recent call last):
File "/usr/local/bin/cython", line 8, in <module>
sys.exit(setuptools_main())
^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 754, in setuptools_main
return main(command_line = 1)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 782, in main
result = compile(sources, options)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 673, in compile
return compile_multiple(source, options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 641, in compile_multiple
context = Context.from_options(options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 100, in from_options
return cls(options.include_path, options.compiler_directives,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 78, in __init__
from . import Builtin, CythonScope
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/CythonScope.py", line 5, in <module>
from .UtilityCode import CythonUtilityCode
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/UtilityCode.py", line 3, in <module>
from .TreeFragment import parse_from_strings, StringParseContext
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/TreeFragment.py", line 17, in <module>
from .Visitor import VisitorTransform
File "Cython/Compiler/Visitor.py", line 16, in init Cython.Compiler.Visitor
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Nodes.py", line 33, in <module>
from .Pythran import has_np_pythran, pythran_type, is_pythran_buffer
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Pythran.py", line 11, in <module>
pythran_is_pre_0_9 = tuple(map(int, pythran.__version__.split('.')[0:2])) < (0, 9)
^^^^^^^^^^^^^^^^^^^
AttributeError: module 'pythran' has no attribute '__version__'
[17/151] Compiling Cython source /tmp/pobj/py-pandas-2.2.3/pandas-2.2.3/pandas/_libs/tslibs/nattype.pyx
FAILED: pandas/_libs/tslibs/nattype.cpython-312.so.p/pandas/_libs/tslibs/nattype.pyx.c
cython -M --fast-fail -3 --include-dir /tmp/pobj/py-pandas-2.2.3/pandas-2.2.3/.mesonpy-_mnk74u3/pandas/_libs/tslibs '-X always_allow_keywords=true' /tmp/pobj/py-pandas-2.2.3/pandas-2.2.3/pandas/_libs/tslibs/nattype.pyx -o pandas/_libs/tslibs/nattype.cpython-312.so.p/pandas/_libs/tslibs/nattype.pyx.c
Traceback (most recent call last):
File "/usr/local/bin/cython", line 8, in <module>
sys.exit(setuptools_main())
^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 754, in setuptools_main
return main(command_line = 1)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 782, in main
result = compile(sources, options)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 673, in compile
return compile_multiple(source, options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 641, in compile_multiple
context = Context.from_options(options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 100, in from_options
return cls(options.include_path, options.compiler_directives,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 78, in __init__
from . import Builtin, CythonScope
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/CythonScope.py", line 5, in <module>
from .UtilityCode import CythonUtilityCode
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/UtilityCode.py", line 3, in <module>
from .TreeFragment import parse_from_strings, StringParseContext
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/TreeFragment.py", line 17, in <module>
from .Visitor import VisitorTransform
File "Cython/Compiler/Visitor.py", line 16, in init Cython.Compiler.Visitor
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Nodes.py", line 33, in <module>
from .Pythran import has_np_pythran, pythran_type, is_pythran_buffer
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Pythran.py", line 11, in <module>
pythran_is_pre_0_9 = tuple(map(int, pythran.__version__.split('.')[0:2])) < (0, 9)
^^^^^^^^^^^^^^^^^^^
AttributeError: module 'pythran' has no attribute '__version__'
[18/151] Compiling Cython source /tmp/pobj/py-pandas-2.2.3/pandas-2.2.3/pandas/_libs/tslibs/offsets.pyx
FAILED: pandas/_libs/tslibs/offsets.cpython-312.so.p/pandas/_libs/tslibs/offsets.pyx.c
cython -M --fast-fail -3 --include-dir /tmp/pobj/py-pandas-2.2.3/pandas-2.2.3/.mesonpy-_mnk74u3/pandas/_libs/tslibs '-X always_allow_keywords=true' /tmp/pobj/py-pandas-2.2.3/pandas-2.2.3/pandas/_libs/tslibs/offsets.pyx -o pandas/_libs/tslibs/offsets.cpython-312.so.p/pandas/_libs/tslibs/offsets.pyx.c
Traceback (most recent call last):
File "/usr/local/bin/cython", line 8, in <module>
sys.exit(setuptools_main())
^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 754, in setuptools_main
return main(command_line = 1)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 782, in main
result = compile(sources, options)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 673, in compile
return compile_multiple(source, options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 641, in compile_multiple
context = Context.from_options(options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 100, in from_options
return cls(options.include_path, options.compiler_directives,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Main.py", line 78, in __init__
from . import Builtin, CythonScope
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/CythonScope.py", line 5, in <module>
from .UtilityCode import CythonUtilityCode
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/UtilityCode.py", line 3, in <module>
from .TreeFragment import parse_from_strings, StringParseContext
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/TreeFragment.py", line 17, in <module>
from .Visitor import VisitorTransform
File "Cython/Compiler/Visitor.py", line 16, in init Cython.Compiler.Visitor
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Nodes.py", line 33, in <module>
from .Pythran import has_np_pythran, pythran_type, is_pythran_buffer
File "/usr/local/lib/python3.12/site-packages/Cython/Compiler/Pythran.py", line 11, in <module>
pythran_is_pre_0_9 = tuple(map(int, pythran.__version__.split('.')[0:2])) < (0, 9)
^^^^^^^^^^^^^^^^^^^
AttributeError: module 'pythran' has no attribute '__version__'
[19/151] Compiling C object pandas/_libs/tslibs/parsing.cpython-312.so.p/.._src_parser_tokenizer.c.o
ninja: build stopped: subcommand failed.

ERROR Backend subprocess exited when trying to invoke build_wheel
*** Error 1 in math/py-pandas (/usr/ports/lang/python/python.port.mk:380 'do-build': @: ; if [ -e /tmp/pobj/py-pandas-2.2.3/pandas-2.2.3/pyp...)
*** Error 2 in math/py-pandas (/usr/ports/infrastructure/mk/bsd.port.mk:3065 '/tmp/pobj/py-pandas-2.2.3/.build_done': @cd /usr/ports/math/py...)
*** Error 2 in math/py-pandas (/usr/ports/infrastructure/mk/bsd.port.mk:2712 'build': @lock=py3-pandas-2.2.3p0; export _LOCKS_HELD=" py3-pa...)
===> Exiting math/py-pandas with an error
*** Error 1 in /usr/ports (infrastructure/mk/bsd.port.subdir.mk:144 'build': @: ${echo_msg:=echo}; : ${target:=build}; for i in ; do eval...)
>>> Ended at 1738442817.53
max_stuck=0.55/waiting-for-lock #550=2.07/depends=0.98/show-prepare-results=1.22/patch=0.57/configure=0.18/build=7.64
Error: job failed with 512 on localhost at 1738442817
My last bulk had a py-pandas build failure. Some corners of cython and
setuptools seem to tickle a puzzling error:

AttributeError: module 'pythran' has no attribute '__version__'

aja saw this in sysutils/u-boot/rk3588 about two weeks back, I saw it in
u-boot/sunxi, and jca also mentioned that he saw it.

Attached is the log for pandas.

No comments:

Post a Comment