ImportError: No module named osgeo

7,241 views
Skip to first unread message

Juan Carlos Ballesteros

unread,
Mar 8, 2013, 6:15:41 AM3/8/13
to car...@googlegroups.com
Hi all,

after a new installation of cartodb, when i import a shape file from the cartodb site, i have an error in the terminal where is running:

 QUEUE=* bundle exec rake resque:work

That is the error:

  File "/home/localidata/cartodb20/lib/importer/misc/shp_normalizer.py", line 7, in <module>
    from osgeo import osr
ImportError: No module named osgeo

I follow all the steps of the manual.

Thank you!!!

Juan Carlos Ballesteros

unread,
Mar 8, 2013, 8:33:25 AM3/8/13
to car...@googlegroups.com
If you uninstall GDAL and install manually, that problem desapears.

Follow that steps:

sudo apt-get remove gdal-bin
cd /usr/local/src
 
 wget http://download.osgeo.org/gdal/gdal-1.9.0.tar.gz
 tar xvfz gdal-1.9.0.tar.gz
 cd gdal-1.9.0
./configure --with-python
make
sudo make install

Javier Santana

unread,
Mar 8, 2013, 8:37:38 AM3/8/13
to car...@googlegroups.com
you should install python modules in python_requirements.txt

pip install -r python_requirements.txt




--
 
---
You received this message because you are subscribed to the Google Groups "cartodb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cartodb+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
www.cartodb.com
Map, analyze and build applications with your data

Sandro Santilli

unread,
Mar 8, 2013, 8:42:52 AM3/8/13
to car...@googlegroups.com
On Fri, Mar 08, 2013 at 02:37:38PM +0100, Javier Santana wrote:
> you should install python modules in python_requirements.txt
>
> pip install -r python_requirements.txt

It seems to be missing GDAL:
https://github.com/CartoDB/cartodb20/blob/develop/python_requirements.txt

--strk;

Javier Santana

unread,
Mar 8, 2013, 8:45:35 AM3/8/13
to car...@googlegroups.com


--

---
You received this message because you are subscribed to the Google Groups "cartodb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cartodb+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Sandro Santilli

unread,
Mar 8, 2013, 9:11:31 AM3/8/13
to car...@googlegroups.com
Oops, it seems I can't read up to 7 lines :)
Sorry for the noise --strk;

Juan Carlos Ballesteros

unread,
Mar 11, 2013, 12:00:42 PM3/11/13
to cartodb
I launch the virtual machine, to he initial state.

When I update python requeriment, and then i launch the pip install,
appears that error

Obtaining python-varnish==0.1.2 from git+https://github.com/RealGeeks/
python-varnish.git@0971d6024fbb2614350853a5e0f8736ba3fb1f0d#egg=python-
varnish==0.1.2 (from -r python_requirements.txt (line 6))
Cloning https://github.com/RealGeeks/python-varnish.git (to
0971d6024fbb2614350853a5e0f8736ba3fb1f0d) to ./src/python-varnish
error: The requested URL returned error: 401 while accessing
https://github.com/RealGeeks/python-varnish.git/info/refs

fatal: HTTP request failed
Complete output from command /usr/bin/git clone -q
https://github.com/RealGeeks/python-varnish.git /home/localidata/
cartodb20/src/python-varnish:


On 8 mar, 15:11, Sandro Santilli <s...@vizzuality.com> wrote:
> Oops, it seems I can't read up to 7 lines :)
> Sorry for the noise --strk;
>
>
>
>
>
>
>
> On Fri, Mar 08, 2013 at 02:45:35PM +0100, Javier Santana wrote:
> >https://github.com/CartoDB/cartodb20/blob/develop/python_requirements...
>
> > On Fri, Mar 8, 2013 at 2:42 PM, Sandro Santilli <s...@vizzuality.com> wrote:
>
> > > On Fri, Mar 08, 2013 at 02:37:38PM +0100, Javier Santana wrote:
> > > > you should install python modules in python_requirements.txt
>
> > > > pip install -r python_requirements.txt
>
> > > It seems to be missing GDAL:
> > >https://github.com/CartoDB/cartodb20/blob/develop/python_requirements...
>
> > > --strk;
Reply all
Reply to author
Forward
0 new messages