Opened 10 years ago

Closed 10 years ago

#1428 closed enhancement (fixed)

Include GeoPandas on Live 8.5

Reported by: darkblueb Owned by: live-demo@…
Priority: normal Milestone: OSGeoLive8.5
Component: OSGeoLive Keywords: python, GeoPandas
Cc:

Description

on a current nightly, adding GeoPandas looked like this:

user@live12014:~$ sudo pip install geopandas
[sudo] password for user: 
Downloading/unpacking geopandas
  Downloading geopandas-0.1.1.tar.gz
  Running setup.py (path:/tmp/pip_build_root/geopandas/setup.py) egg_info for package geopandas
    
Requirement already satisfied (use --upgrade to upgrade): pandas in /usr/lib/python2.7/dist-packages (from geopandas)
Requirement already satisfied (use --upgrade to upgrade): shapely in /usr/lib/python2.7/dist-packages (from geopandas)
Requirement already satisfied (use --upgrade to upgrade): fiona in /usr/lib/python2.7/dist-packages (from geopandas)
Downloading/unpacking descartes (from geopandas)
  Downloading descartes-1.0.1.tar.gz
  Running setup.py (path:/tmp/pip_build_root/descartes/setup.py) egg_info for package descartes
    
Requirement already satisfied (use --upgrade to upgrade): pyproj in /usr/lib/python2.7/dist-packages (from geopandas)
Requirement already satisfied (use --upgrade to upgrade): python-dateutil in /usr/lib/python2.7/dist-packages (from pandas->geopandas)
Requirement already satisfied (use --upgrade to upgrade): pytz>=2011k in /usr/lib/python2.7/dist-packages (from pandas->geopandas)
Requirement already satisfied (use --upgrade to upgrade): numpy>=1.6.1 in /usr/lib/python2.7/dist-packages (from pandas->geopandas)
Requirement already satisfied (use --upgrade to upgrade): six in /usr/lib/python2.7/dist-packages (from fiona->geopandas)
Installing collected packages: geopandas, descartes
  Running setup.py install for geopandas
    
  Running setup.py install for descartes
    
Successfully installed geopandas descartes
Cleaning up...

Change History (5)

comment:1 by darkblueb, 10 years ago

kalxas has added a GeoPandas package earlier this year, but it is one version previous.. the Descarte plotting utility may need to be added as a dependancy.. Here is a detailed comparison between the GeoPandas package and what is commonly available today:

user@live12014:~$ locate geopandas
/usr/local/lib/python2.7/dist-packages/geopandas
/usr/local/lib/python2.7/dist-packages/geopandas-0.1.1.egg-info
/usr/local/lib/python2.7/dist-packages/geopandas/__init__.py
/usr/local/lib/python2.7/dist-packages/geopandas/__init__.pyc
/usr/local/lib/python2.7/dist-packages/geopandas/base.py
/usr/local/lib/python2.7/dist-packages/geopandas/base.pyc
/usr/local/lib/python2.7/dist-packages/geopandas/geocode.py
/usr/local/lib/python2.7/dist-packages/geopandas/geocode.pyc
/usr/local/lib/python2.7/dist-packages/geopandas/geodataframe.py
/usr/local/lib/python2.7/dist-packages/geopandas/geodataframe.pyc
/usr/local/lib/python2.7/dist-packages/geopandas/geoseries.py
/usr/local/lib/python2.7/dist-packages/geopandas/geoseries.pyc
/usr/local/lib/python2.7/dist-packages/geopandas/io
/usr/local/lib/python2.7/dist-packages/geopandas/plotting.py
/usr/local/lib/python2.7/dist-packages/geopandas/plotting.pyc
/usr/local/lib/python2.7/dist-packages/geopandas/version.py
/usr/local/lib/python2.7/dist-packages/geopandas/version.pyc
/usr/local/lib/python2.7/dist-packages/geopandas/io/__init__.py
/usr/local/lib/python2.7/dist-packages/geopandas/io/__init__.pyc
/usr/local/lib/python2.7/dist-packages/geopandas/io/file.py
/usr/local/lib/python2.7/dist-packages/geopandas/io/file.pyc
/usr/local/lib/python2.7/dist-packages/geopandas/io/sql.py
/usr/local/lib/python2.7/dist-packages/geopandas/io/sql.pyc
/usr/local/lib/python2.7/dist-packages/geopandas-0.1.1.egg-info/PKG-INFO
/usr/local/lib/python2.7/dist-packages/geopandas-0.1.1.egg-info/SOURCES.txt
/usr/local/lib/python2.7/dist-packages/geopandas-0.1.1.egg-info/dependency_links.txt
/usr/local/lib/python2.7/dist-packages/geopandas-0.1.1.egg-info/installed-files.txt
/usr/local/lib/python2.7/dist-packages/geopandas-0.1.1.egg-info/requires.txt
/usr/local/lib/python2.7/dist-packages/geopandas-0.1.1.egg-info/top_level.txt
user@live12014:~$ ls /usr/local/lib/python2.7/dist-packages/geopandas
base.py     geocode.pyc       geoseries.py   __init__.pyc  plotting.pyc
base.pyc    geodataframe.py   geoseries.pyc  io/           version.py
geocode.py  geodataframe.pyc  __init__.py    plotting.py   version.pyc

user@live12014:~$ dpkg --info python-geopandas_0.1.0-0~trusty2_i386.deb 
 new debian package, version 2.0.
 size 16108 bytes: control archive=1288 bytes.
     473 bytes,    13 lines      control              
    1648 bytes,    18 lines      md5sums              
     166 bytes,     9 lines   *  postinst             #!/bin/sh
     269 bytes,    14 lines   *  prerm                #!/bin/sh
 Package: python-geopandas
 Source: geopandas
 Version: 0.1.0-0~trusty2
 Architecture: i386
 Maintainer: Angelos Tzotsos <gcpp.kalxas@gmail.com>
 Installed-Size: 104
 Depends: python (>= 2.7), python-shapely, python-fiona, python-pyproj, python-six, python-rtree, python-numpy, python-pandas, debconf
 Section: science
 Priority: optional
 Homepage: https://github.com/geopandas/geopandas
 Description: This package contains the geopandas library
  .
  Python tools for geographic data

user@live12014:~$ mv python-geopandas_0.1.0-0~trusty2_i386.deb tmp/
user@live12014:~$ cd tmp

user@live12014:~/tmp$ dpkg -X python-geopandas_0.1.0-0~trusty2_i386.deb  .
./
./usr/
./usr/lib/
./usr/lib/python2.7/
./usr/lib/python2.7/dist-packages/
./usr/lib/python2.7/dist-packages/geopandas/
./usr/lib/python2.7/dist-packages/geopandas/plotting.py
./usr/lib/python2.7/dist-packages/geopandas/tools.py
./usr/lib/python2.7/dist-packages/geopandas/base.py
./usr/lib/python2.7/dist-packages/geopandas/io/
./usr/lib/python2.7/dist-packages/geopandas/io/file.py
./usr/lib/python2.7/dist-packages/geopandas/io/sql.py
./usr/lib/python2.7/dist-packages/geopandas/io/__init__.py
./usr/lib/python2.7/dist-packages/geopandas/geodataframe.py
./usr/lib/python2.7/dist-packages/geopandas/geocode.py
./usr/lib/python2.7/dist-packages/geopandas/geoseries.py
./usr/lib/python2.7/dist-packages/geopandas/__init__.py
./usr/lib/python2.7/dist-packages/geopandas/version.py
./usr/lib/python2.7/dist-packages/geopandas-0.1.0.egg-info/
./usr/lib/python2.7/dist-packages/geopandas-0.1.0.egg-info/PKG-INFO
./usr/lib/python2.7/dist-packages/geopandas-0.1.0.egg-info/top_level.txt
./usr/lib/python2.7/dist-packages/geopandas-0.1.0.egg-info/dependency_links.txt
./usr/lib/python2.7/dist-packages/geopandas-0.1.0.egg-info/requires.txt
./usr/lib/python2.7/dist-packages/geopandas-0.1.0.egg-info/SOURCES.txt
./usr/share/
./usr/share/doc/
./usr/share/doc/python-geopandas/
./usr/share/doc/python-geopandas/copyright
./usr/share/doc/python-geopandas/changelog.Debian.gz

comment:2 by darkblueb, 10 years ago

GeoPandas is now in the nightly PPA

 python-geopandas	0.1.1-0~trusty	Johan Van de Wauw (2014-12-22)

however, it fails to load (with this msg)

In [1]: import geopandas
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-c9ee6bd24dbc> in <module>()
----> 1 import geopandas

/usr/lib/python2.7/dist-packages/geopandas/__init__.py in <module>()
      4     __version__ = '0.1.1'
      5 
----> 6 from geopandas.geoseries import GeoSeries
      7 from geopandas.geodataframe import GeoDataFrame
      8 

/usr/lib/python2.7/dist-packages/geopandas/geoseries.py in <module>()
      4 import numpy as np
      5 from pandas import Series, DataFrame
----> 6 import pyproj
      7 from shapely.geometry import shape, Polygon, Point
      8 from shapely.geometry.collection import GeometryCollection

ImportError: No module named pyproj

comment:3 by Bas Couwenberg, 10 years ago

Temporary workaround is to install python-pyproj and/or python3-pyproj manually, the permanent fix is to add the dependency to the geopandas package.

comment:4 by kalxas, 10 years ago

works fine in nightly build [12107] since python-pyproj is required by pycsw, so it is installed.

import geopandas works for me.

comment:5 by kalxas, 10 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.