[GeoNode-users] osgeo module install problem

Vicente deluca.vicente at gmail.com
Wed Jul 8 11:27:48 PDT 2015


Thanks Simone, the problem was indeed the gdal library, I can't install
from my virtualenv.
If I run *#pip install gdal*, the error is  *#include file "cpl_port.h",
file not found.*
If I try to build from source (GDAL 2.0,
https://pypi.python.org/packages/source/G/GDAL/GDAL-2.0.0.tar.gz) with the
following command setup.py #python build_ext - include-dirs = / usr /
include / gdal /, the error is error:* command 'x86_64-linux-gnu-gcc'
failed with exit status 1*

These errors gdal just happen within a virtualenv.

Thank You!

On Sun, Jun 7, 2015 at 4:40 PM, Simone Dalmasso <simone.dalmasso at gmail.com>
wrote:

> Hi, you are missing the gdal python bindings, a "pip install gdal" should
> fix it.
>
> Hope it helps, ciao
>
> 2015-06-07 17:59 GMT+02:00 Vicente <deluca.vicente at gmail.com>:
>
>> Good afternoon,
>> If I run the following line from my command line, the answer is successful
>>
>> $ sudo apt-get -y install libgdal1h libgdal-dev python-gdal
>>
>> But if I run from the session virtualenv, the answer is No module named
>> osgeo.
>>
>> I have just added the following session variables in my .bashrc:
>> export VIRTUALENVWRAPPER_PYTHON = / usr / bin / python
>> export WORKON_HOME = ~ / .venvs
>> source /usr/local/bin/virtualenvwrapper.sh
>> export PIP_DOWNLOAD_CACHE = $ HOME / .pip-downloads
>>
>> Both session with virtualenv or outside, the python to run is the same,
>> Python 2.7.6 (default, Mar 22 2014, 22:59:56)
>>
>> The result is that I can not run because there is paver start the osgeo
>> module from within the session obviously.
>>
>> Thanks!
>>
>> --
>>
>> [image: MANTA] <http://www.estudiomanta.com/>
>>
>>
>>
>> Vicente Deluca
>>
>> *+54 11 6091 4579 <%2B54%2011%206091%204579>*
>>
>>
>> _______________________________________________
>> geonode-users mailing list
>> geonode-users at lists.osgeo.org
>> http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users
>>
>>
>
>
> --
> Simone
>



-- 

[image: MANTA] <http://www.estudiomanta.com/>



Vicente Deluca

*+54 11 6091 4579 <%2B54%2011%206091%204579>*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20150708/5126c66e/attachment.html>


More information about the geonode-users mailing list