[MacPorts] #70562: py310-cython-compat 0.29.37_0.darwin_23.arm64: no module named Cython

MacPorts noreply at macports.org
Thu Aug 15 02:06:23 UTC 2024


#70562: py310-cython-compat 0.29.37_0.darwin_23.arm64: no module named Cython
---------------------+---------------------------------
 Reporter:  areilly  |      Owner:  (none)
     Type:  defect   |     Status:  new
 Priority:  Normal   |  Milestone:  MacPorts Future
Component:  ports    |    Version:  2.10.0
 Keywords:           |       Port:  py310-cython-compat
---------------------+---------------------------------
 The port installs cleanly, but does not work.  It doesn't install the
 executables into the /opt/local/bin directory, but into
 /opt/local/lib/py310-cython-compat/bin/, and when executed directly from
 there produces the unhelpful error:
 Traceback (most recent call last):
   File "/opt/local/bin/cython", line 5, in <module>
     from Cython.Compiler.Main import setuptools_main
 ModuleNotFoundError: No module named 'Cython'

 If I also install py310-cython, I do get cython in /opt/local/bin but that
 is the latest version:
 % cython --version
 Cython version 3.0.10

 Now /opt/local/lib/py310-cython-compat/bin/cython does run, but it runs
 the new version:
 % /opt/local/lib/py310-cython-compat/bin/cython --version
 Cython version 3.0.10

 I need the old version to get the py310-grpcio port to build, apparently:
 https://github.com/grpc/grpc/blob/42284424acd2ba4ba649599984592f5d2eade919/requirements.txt
 says
 cython>=0.29.8,<3.0.0rc1

 Macports appears to be able to install this, it just doesn't find or use
 it.

-- 
Ticket URL: <https://trac.macports.org/ticket/70562>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list