#45585: Yosemite py27-cython installs but does not function properly. Hasfix -----------------------+-------------------------------- Reporter: pjkim00@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.2 Keywords: hasfix | Port: py27-cython -----------------------+-------------------------------- Recently upgraded to Yosemite and reinstalling ports. Had problem building py27-numpy (see ticket #45505) with following error message: {{{ File "Cython/Compiler/Parsing.py", line 26, in init Cython.Compiler.Parsing (Cython/Compiler/Parsing.c:55936) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/Cython/Compiler/ModuleNode.py", line 2922, in <module> capsule_utility_code = UtilityCode.load("Capsule") File "Cython/Compiler/Code.py", line 240, in Cython.Compiler.Code.UtilityCodeBase.load (Cython/Compiler/Code.c:7277) self.write("\n") }}} I tried compiling a simple cython example from cython.org and it failed as well with a similar error message. I tracked down the problem to a set of duplicate files in /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/Cython that ended with .mp_1411412732. i.e. there was a Capsule.c and Capsule.c.mp_1411412732 and this was true for almost every file in the directory. I notices a similar problem in /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/Cython/Compiler I created a new directory in each of these directories with "sudo mkdir tmp" followed by "mv * mp_1411412732 tmp" The simple cython example now compiles and py27-numpy builds and installs correctly and ipython installs correctly and inkscape installs correctly. I wish I could say I haspatch, but I have not yet mastered that part of port-fu. -- Ticket URL: <https://trac.macports.org/ticket/45585> MacPorts <https://www.macports.org/> Ports system for OS X