[GeoNode-users] osgeo module install problem

Paolo Pasquali paolo.pasquali at ithaca.polito.it
Thu Jul 9 00:34:58 PDT 2015


Hey all,
I think I am facing the same issue.
I am trying to install GeoNode on a fresh Ubuntu 14 in virtualenv but I get
the ImportError: No module named osgeo
So I've tried to pip install GDAL==1.10.0
but I get UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in
position 42: ordinal not in range(128)
and I am stuck here.

Thanks for your help!

Ciao

Paolo


On Wed, Jul 8, 2015 at 9:16 PM, Jeffrey Johnson <ortelius at gmail.com> wrote:

> I just ran into some of these same issues and the solution is in this
> script I am using.
>
>
> https://github.com/riskinfo-lk/riskinfo_lk2/blob/master/provision_geonode_dev.sh
>
> On Wed, Jul 8, 2015 at 11:27 AM, Vicente <deluca.vicente at gmail.com> wrote:
>
>> 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>*
>>
>>
>> _______________________________________________
>> geonode-users mailing list
>> geonode-users at lists.osgeo.org
>> http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users
>>
>>
>
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20150709/8a355d40/attachment.html>


More information about the geonode-users mailing list