silpol / pyspatialite

Automatically exported from code.google.com/p/pyspatialite
zlib License
0 stars 0 forks source link

pip installation fails. #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use Ubuntu 11.10
2. sudo aptitude install build-essential gcc g++ make dkms python-setuptools 
python-dev dpkg-dev -y
3. sudo aptitude install libgeos-3.2.2 libgeos-dev libproj0 libproj-dev -y
4. sudo pip install pyspatialite

What is the expected output? What do you see instead?

Expected output is to have pip build and successfully install.
This has worked in the past.

Over the past several days, I've seen the following errors:

$ pip install pyspatialite 
Downloading/unpacking pyspatialite 
  Downloading pyspatialite-2.6.1.tar.gz (74Kb): 74Kb downloaded 
  Running setup.py egg_info for package pyspatialite 
Installing collected packages: pyspatialite 
  Running setup.py install for pyspatialite 
    Downloading amalgation. 
    Traceback (most recent call last): 
      File "<string>", line 1, in <module> 
      File "/home/ME/build/pyspatialite/setup.py", line 207, in 
<module> 
        main() 
      File "/home/ME/build/pyspatialite/setup.py", line 204, in main 
        setup(**get_setup_args()) 
      File "/usr/lib/python2.7/distutils/core.py", line 152, in setup 
        dist.run_commands() 
      File "/usr/lib/python2.7/distutils/dist.py", line 953, in 
run_commands 
        self.run_command(cmd) 
      File "/usr/lib/python2.7/distutils/dist.py", line 972, in 
run_command 
        cmd_obj.run() 
      File "/home/ME/.virtualenvs/MYVIRTUALENV/local/lib/python2.7/ 
site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/ 
install.py", line 56, in run 
      File "/usr/lib/python2.7/distutils/command/install.py", line 
601, in run 
        self.run_command('build') 
      File "/usr/lib/python2.7/distutils/cmd.py", line 326, in 
run_command 
        self.distribution.run_command(command) 
      File "/usr/lib/python2.7/distutils/dist.py", line 972, in 
run_command 
        cmd_obj.run() 
      File "/usr/lib/python2.7/distutils/command/build.py", line 128, 
in run 
        self.run_command(cmd_name) 
      File "/usr/lib/python2.7/distutils/cmd.py", line 326, in 
run_command 
        self.distribution.run_command(command) 
      File "/usr/lib/python2.7/distutils/dist.py", line 972, in 
run_command 
        cmd_obj.run() 
      File "/usr/lib/python2.7/distutils/command/build_ext.py", line 
340, in run 
        self.build_extensions() 
      File "/usr/lib/python2.7/distutils/command/build_ext.py", line 
449, in build_extensions 
        self.build_extension(ext) 
      File "/home/ME/.virtualenvs/MYVIRTUALENV/build/pyspatialite/ 
setup.py", line 116, in build_extension 
        get_amalgamation() 
      File "/home/ME/.virtualenvs/MYVIRTUALENV/build/pyspatialite/ 
setup.py", line 97, in get_amalgamation 
        download_file = pattern.findall(download_page)[0] 
    IndexError: list index out of range 

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

2.6.1
Ubuntu 11.10

Thanks in advance for looking into this!

Original issue reported on code.google.com by mapes...@gmail.com on 4 Jan 2012 at 3:47

GoogleCodeExporter commented 8 years ago
The problem is that the download page has changed. As a temporary solution 
download the files yourself from 
http://www.gaia-gis.it/gaia-sins/libspatialite-sources/ and put it in the 
amalgamation folder in /pyspatialite/. 

The installer itself will be broken until the owner fixes the setup.py script.

Original comment by mikael.m...@gmail.com on 11 Jan 2012 at 8:19

GoogleCodeExporter commented 8 years ago
This has been fixed, and there are now source branches for spatialite 2.3.1, 
2.4.0-RC4, and 3.0.1.  Releases are being distributed through pypi instead of 
here now.

pip install pyspatialite will by default use 3.0.1.  To use a different 
version, please download it from pypi (see the downloads tab above).

Original comment by lok...@gmail.com on 11 Jan 2012 at 11:17

GoogleCodeExporter commented 8 years ago
This is not fixed, if you pip install pyspatialite today you get exactly the 
error above

Original comment by bluesk...@gmail.com on 27 Oct 2013 at 2:33

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Please Fix this error in the setup.py  It will make the life of many developers 
easyer.

Thanks in advance.

Original comment by tobiassc...@gmail.com on 15 Nov 2013 at 3:07