pombreda / pysal

Automatically exported from code.google.com/p/pysal
Other
0 stars 0 forks source link

problems with pysal 1.1 and scipy 0.9 #148

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
import pysal

python 2.6, pysal 1.1, scipy 0.9 - XP

Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32 bit (Intel)] on 
win32
Type "copyright", "credits" or "license()" for more information.

    ****************************************************************
    Personal firewall software may warn about the connection IDLE
    makes to its subprocess using this computer's internal loopback
    interface.  This connection is not visible on any external
    interface and no data is sent to or received from the Internet.
    ****************************************************************

IDLE 2.6.5      
>>> import pysal
scipy 0.7+ is required

Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    import pysal
  File "D:\Python26\ArcGIS10.0\lib\site-packages\pysal\__init__.py", line 33, in <module>
    import cg
  File "D:\Python26\ArcGIS10.0\lib\site-packages\pysal\cg\__init__.py", line 4, in <module>
    from shapes import *
  File "D:\Python26\ArcGIS10.0\lib\site-packages\pysal\cg\shapes.py", line 1290, in <module>
    import standalone   #moving this to top breaks unit tests !
  File "D:\Python26\ArcGIS10.0\lib\site-packages\pysal\cg\standalone.py", line 15, in <module>
    from pysal.common import *
  File "D:\Python26\ArcGIS10.0\lib\site-packages\pysal\common.py", line 13, in <module>
    import scipy.stats as stats
  File "D:\Python26\ArcGIS10.0\lib\site-packages\scipy\stats\__init__.py", line 7, in <module>
    from stats import *
  File "D:\Python26\ArcGIS10.0\lib\site-packages\scipy\stats\stats.py", line 198, in <module>
    import distributions
  File "D:\Python26\ArcGIS10.0\lib\site-packages\scipy\stats\distributions.py", line 14, in <module>
    from scipy import optimize
  File "D:\Python26\ArcGIS10.0\lib\site-packages\scipy\optimize\__init__.py", line 7, in <module>
    from optimize import *
  File "D:\Python26\ArcGIS10.0\lib\site-packages\scipy\optimize\optimize.py", line 28, in <module>
    from linesearch import \
  File "D:\Python26\ArcGIS10.0\lib\site-packages\scipy\optimize\linesearch.py", line 3, in <module>
    from numpy.compat import asbytes
ImportError: cannot import name asbytes
>>> 

Original issue reported on code.google.com by nh...@dot.state.ny.us on 25 Mar 2011 at 5:57

GoogleCodeExporter commented 9 years ago
It could be that the Python install with ArcGIS10.0 is using an older version 
of scipy (and numpy) as the import pysal call raises the warning that scipy 
0.7+ is required. 

Can you report what version of scipy is loaded under 
D:\Python26\ArcGIS10.0\lib\site-packages\scipy\ ?

Original comment by sjsrey on 25 Mar 2011 at 8:37

GoogleCodeExporter commented 9 years ago
scipy version='0.9.0'
numpy version='1.4.1'

Original comment by nh...@dot.state.ny.us on 28 Mar 2011 at 4:33

GoogleCodeExporter commented 9 years ago
Hi,

It appears that there is a problem with your scipy install.  Can you confirm 
this by running the following commands from the python interpreter?

>>> import scipy
>>> print scipy.version.version
>>> import scipy.stats as stats

And paste the results here?  If the last line doesn't work the problem is with 
your scipy install.

Thanks,
Charlie.

Original comment by schmi...@gmail.com on 28 Mar 2011 at 4:45

GoogleCodeExporter commented 9 years ago
Below are the results for scipy install. Thanks.

Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32 bit (Intel)] on 
win32
Type "copyright", "credits" or "license()" for more information.

    ****************************************************************
    Personal firewall software may warn about the connection IDLE
    makes to its subprocess using this computer's internal loopback
    interface.  This connection is not visible on any external
    interface and no data is sent to or received from the Internet.
    ****************************************************************

IDLE 2.6.5      
>>> import scipy
>>> print scipy.version.version
0.9.0
>>> import scipy.stats as stats

Traceback (most recent call last):
  File "<pyshell#2>", line 1, in <module>
    import scipy.stats as stats
  File "D:\Python26\ArcGIS10.0\lib\site-packages\scipy\stats\__init__.py", line 7, in <module>
    from stats import *
  File "D:\Python26\ArcGIS10.0\lib\site-packages\scipy\stats\stats.py", line 198, in <module>
    import distributions
  File "D:\Python26\ArcGIS10.0\lib\site-packages\scipy\stats\distributions.py", line 14, in <module>
    from scipy import optimize
  File "D:\Python26\ArcGIS10.0\lib\site-packages\scipy\optimize\__init__.py", line 7, in <module>
    from optimize import *
  File "D:\Python26\ArcGIS10.0\lib\site-packages\scipy\optimize\optimize.py", line 28, in <module>
    from linesearch import \
  File "D:\Python26\ArcGIS10.0\lib\site-packages\scipy\optimize\linesearch.py", line 3, in <module>
    from numpy.compat import asbytes
ImportError: cannot import name asbytes

Original comment by nh...@dot.state.ny.us on 29 Mar 2011 at 7:03

GoogleCodeExporter commented 9 years ago
Installed scipy 0.7 and pysal will load sucessfully. Doesn't solve the problem 
with scipy 0.9 version not loading properly. Thanks.

Original comment by nh...@dot.state.ny.us on 29 Mar 2011 at 7:18

GoogleCodeExporter commented 9 years ago
SR is checking w ESRI

Original comment by sjsrey on 14 Apr 2011 at 12:16

GoogleCodeExporter commented 9 years ago

Original comment by sjsrey on 14 Apr 2011 at 12:17

GoogleCodeExporter commented 9 years ago
could not replicate.

Original comment by dfo...@gmail.com on 19 May 2011 at 4:49