Opened 10 years ago

Closed 9 years ago

#45585 closed defect (wontfix)

Yosemite py27-cython installs but does not function properly. Hasfix

Reported by: hardwhack Owned by: stromnov (Andrey Stromnov)
Priority: Normal Milestone:
Component: ports Version: 2.3.2
Keywords: Cc: vm@…
Port: py27-cython

Description

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.

Change History (4)

comment:1 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: hasfix removed
Owner: changed from macports-tickets@… to stromnov@…

The *.mp_* files get created when you forcibly activate a port when the files already existed. There's nothing to do here, really, except remind you not to forcibly activate ports.

comment:2 Changed 10 years ago by jmroot (Joshua Root)

Cython could probably do better filename matching to avoid this, but that would be a matter for upstream.

comment:3 Changed 10 years ago by larryv (Lawrence Velázquez)

Cc: vm@… added

Has duplicate #45824.

comment:4 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: wontfix
Status: newclosed

I think this is not our bug. Report it to the developers of Cython.

Note: See TracTickets for help on using tickets.