sukri12 / pysal

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

Cannot install scipy and pysal concurrently using requirements.txt #207

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a new virtual environment 
2. Create a requirements.txt file
numpy==1.6.1
scipy==0.10.1
pysal==1.3.0
3. pip install -r requirements.txt 

What is the expected output? What do you see instead?
Expected: All libraries are installed
Actual:
Downloading/unpacking pysal==1.3.0
  Downloading pysal-1.3.0.tar.gz (4.5Mb): 4.5Mb downloaded
  Running setup.py egg_info for package pysal
    Traceback (most recent call last):
      File "<string>", line 14, in <module>
      File "/var/lib/jenkins/shiningpanda/jobs/803114e9/virtualenvs/d41d8cd9/build/pysal/setup.py", line 8, in <module>
        from pysal.version import version
      File "pysal/__init__.py", line 33, in <module>
        import cg
      File "pysal/cg/__init__.py", line 4, in <module>
        from shapes import *
      File "pysal/cg/shapes.py", line 1651, in <module>
        import standalone   #moving this to top breaks unit tests !
      File "pysal/cg/standalone.py", line 14, in <module>
        import scipy.spatial
    ImportError: No module named scipy.spatial
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 14, in <module>

  File "/var/lib/jenkins/shiningpanda/jobs/803114e9/virtualenvs/d41d8cd9/build/pysal/setup.py", line 8, in <module>

    from pysal.version import version

  File "pysal/__init__.py", line 33, in <module>

    import cg

  File "pysal/cg/__init__.py", line 4, in <module>

    from shapes import *

  File "pysal/cg/shapes.py", line 1651, in <module>

    import standalone   #moving this to top breaks unit tests !

  File "pysal/cg/standalone.py", line 14, in <module>

    import scipy.spatial

ImportError: No module named scipy.spatial

What version of the product are you using? On what operating system?
Centos 6

Please provide any additional information below.
pip install scipy pysal fails,
however running
pip install scipy
pip install pysal
Succeeds.

Original issue reported on code.google.com by adam.h...@gmail.com on 18 Apr 2012 at 1:45

GoogleCodeExporter commented 8 years ago
Cannot reproduce as reported.  Following the original poster's instructions, 
this build fails to find a numpy submodule required by scipy.  Attempted on OSX 
Lion as well as Ubuntu 12.04, with the same results.
==================================================

(piptest)➜  ~VIRTUAL_ENV  python
Python 2.7.2 (v2.7.2:8527427914a2, Jun 11 2011, 15:22:34) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pysal
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named pysal
>>> import scipy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named scipy
>>> import numpy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named numpy
>>> ^D
(piptest)➜  ~VIRTUAL_ENV  touch requirements.txt
(piptest)➜  ~VIRTUAL_ENV  ls
bin              include          lib              requirements.txt
(piptest)➜  ~VIRTUAL_ENV  vim requirements.txt 
(piptest)➜  ~VIRTUAL_ENV  cat requirements.txt 
numpy==1.6.1
scipy==0.10.1
pysal==1.3.0
(piptest)➜  ~VIRTUAL_ENV  pip install -r requirements.txt 
Downloading/unpacking numpy==1.6.1 (from -r requirements.txt (line 1))
  Downloading numpy-1.6.1.zip (3.4Mb): 3.4Mb downloaded
  Running setup.py egg_info for package numpy
    Running from numpy source directory.non-existing path in 'numpy/distutils': 'site.cfg'

  [snip numpy build statements ]

Downloading/unpacking scipy==0.10.1 (from -r requirements.txt (line 2))
  Downloading scipy-0.10.1.zip (7.8Mb): 7.8Mb downloaded
  Running setup.py egg_info for package scipy
    Traceback (most recent call last):
      File "<string>", line 14, in <module>
      File "/Users/stephens/tmp/python-virtual-environments/piptest/build/scipy/setup.py", line 196, in <module>
        setup_package()
      File "/Users/stephens/tmp/python-virtual-environments/piptest/build/scipy/setup.py", line 147, in setup_package
        from numpy.distutils.core import setup
    ImportError: No module named numpy.distutils.core
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 14, in <module>

  File "/Users/stephens/tmp/python-virtual-environments/piptest/build/scipy/setup.py", line 196, in <module>

    setup_package()

  File "/Users/stephens/tmp/python-virtual-environments/piptest/build/scipy/setup.py", line 147, in setup_package

    from numpy.distutils.core import setup

ImportError: No module named numpy.distutils.core

----------------------------------------
Command python setup.py egg_info failed with error code 1
Storing complete log in /Users/stephens/.pip/pip.log
(piptest)➜  ~VIRTUAL_ENV  

Original comment by phil.stp...@gmail.com on 1 May 2012 at 9:24

GoogleCodeExporter commented 8 years ago
I'm from the pip project and this is an issue 

https://github.com/pypa/pip/issues/25

Original comment by pnas...@gmail.com on 13 Jun 2012 at 3:11

GoogleCodeExporter commented 8 years ago
add to faq as a known issue (beyond our control), then close ticket here with a 
link in the faq back to this ticket

Original comment by sjsrey on 13 Jul 2012 at 6:24

GoogleCodeExporter commented 8 years ago

Original comment by sjsrey on 31 Jul 2012 at 4:20