[MacPorts] #43513: import graph-tool error

MacPorts noreply at macports.org
Mon Apr 28 07:27:39 PDT 2014


#43513: import graph-tool error
--------------------------+--------------------------------
 Reporter:  ollinger_s@…  |      Owner:  macports-tickets@…
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.2.1
 Keywords:  graph-tool    |       Port:  py27-graph-tool
--------------------------+--------------------------------
 Hello,

 I've installed graph-tool with macport using :

 {{{
 port install py27-graph-tool
 }}}

 Installation seems to work perfectly but, when I try to import graph-tool,
 an error occur:

 {{{
 Python 2.7.6 (default, Nov 12 2013, 13:10:34)
 [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
 Type "help", "copyright", "credits" or "license" for more information.
 >>> import graph_tool as gt
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/graph_tool/__init__.py", line 96, in <module>
     import scipy.stats
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/scipy/stats/__init__.py", line 324, in <module>
     from .stats import *
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/scipy/stats/stats.py", line 242, in <module>
     import scipy.special as special
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/scipy/special/__init__.py", line 531, in <module>
     from ._ufuncs import *
   File "__init__.pxd", line 155, in init scipy.special._ufuncs
 (scipy/special/_ufuncs.c:20976)
 ValueError: numpy.dtype has the wrong size, try recompiling
 }}}

 I've try if the same problem occur when I import scipy.stats and it is the
 case.
 Actually, there were 2 version of numpy and scipy installed on my
 computer.
 So, I try to uninstall all and to re-install.

 Presently the following versions are installed on my computer:

 {{{
 port installed | grep py27-numpy
   py27-numpy @1.8.1_0 (active)

 port installed | grep py27-scipy
   py27-scipy @0.13.3_1+gcc48 (active)

 port installed | grep py27-graph-tool
   py27-graph-tool @2.2.26_0 (active)
 }}}

 Unfortunately, I still have the same problems.

 Could you help me solve this problem?

 Best regards,

 Sandrine

-- 
Ticket URL: <https://trac.macports.org/ticket/43513>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list