Opened 11 years ago

Closed 11 years ago

#43513 closed defect (invalid)

import graph-tool error

Reported by: ollinger_s@… Owned by: mamoll (Mark Moll)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: count0 (Tiago de Paula Peixoto)
Port: py-graph-tool

Description

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

Change History (4)

comment:1 Changed 11 years ago by mf2k (Frank Schima)

Cc: tiago@… added; ollinger_s@… removed
Keywords: graph-tool removed
Owner: changed from macports-tickets@… to mmoll@…
Port: py-graph-tool added; py27-graph-tool removed

In the future, please Cc the port maintainers (port info --maintainers py27-graph-tool). As reporter, you do not need to Cc yourself.

comment:2 Changed 11 years ago by mamoll (Mark Moll)

I don't see how this is a graph-tool problem. It looks like an error in scipy. What happens if you type this in python:

import scipy.stats

comment:3 Changed 11 years ago by ollinger_s@…

Allright, I'm sorry, I'm a beginer in Ptyhon. I'll make a new ticket about my scipy problem.

Thank for your attention.

comment:4 Changed 11 years ago by mamoll (Mark Moll)

Resolution: invalid
Status: newclosed

No big deal; I'll close this ticket.

Note: See TracTickets for help on using tickets.