[GeoNode-devel] [GeoNode-users] osgeo module install problem

Patrick Dufour pjdufour.dev at gmail.com
Mon Jun 27 13:58:13 PDT 2016


I just build GDAL python bindings from source.  It's straight forward and
mostly repeatable across platforms.  Not as easy as PIP for sure.

https://github.com/pjdufour/geonode-devops/blob/master/ansible/roles/geonode/tasks/gdal.yml

Regards,
Patrick


On Mon, Jun 27, 2016 at 7:03 PM, Francesco Bartoli <xbartolone at gmail.com>
wrote:

> Hi devs,
>
> this issue still occurred with the current master branch and I have
> managed that in a virtualenv only by applying the workaround suggested by
> Paolo. For this reason I’ve created a small PR [1] in the documentation to
> avoiding that.
>
> If you agreed then someone can merge.
>
> Thx
>
> Francesco
>
> [1] #2527 <https://github.com/GeoNode/geonode/pull/2527>
>
> Il giorno 09/lug/2015, alle ore 15:16, Vicente <deluca.vicente at gmail.com>
> ha scritto:
>
> You are right Paolo Corti, in my case I have gdal 1.11.2 installed by QGIS.
> The following documentation is mostly right:
> http://geonode.readthedocs.org/en/latest/tutorials/devel/install_devmode/gdal_install.html
> Pay attention to point 3:
> $ pip install --no-install GDAL==1.10.0
> $ nano build/GDAL/setup.cfg
>
> First download, not install, then edit setup.cfg to get the gdal file
> configuration from the system, gdal 1.11.2 in my case.
>
> The error in the above documentation is on how to download and install the
> library, $pip install --no-download GDAL==1.10.0 just not work because I
> never could locate the package downloaded by $ pip install --no-install
> GDAL==1.10.0.
>
> These were my steps to move forward:
>
> 1) In my (venv) download with wget the right gdal library
> 2) Edit setup.cfg like doc
> 3) Compile with $python setup.py build_ext --include-dirs=/usr/include/gdal
> 4) Move to gdal dir and run $pip install .
> 5) Get a fresh coffee
>
> Saludos!
>
>
> On Thu, Jul 9, 2015 at 5:29 AM, Simone Dalmasso <simone.dalmasso at gmail.com
> > wrote:
>
>> For me the steps in the Jeff's script work well. although pygdal seems
>> good.
>>
>> 2015-07-09 9:57 GMT+02:00 Paolo Pasquali <paolo.pasquali at ithaca.polito.it
>> >:
>>
>>> Sorry Paolo,
>>> I've just seen your reply after sending my email.
>>> The pip install pygdal==1.10.1 works for me so I was able to run paver
>>> sync.
>>>
>>> Thank you!
>>>
>>> Ciao
>>>
>>> P.
>>>
>>>
>>>
>>>
>>> On Thu, Jul 9, 2015 at 9:43 AM, Paolo Corti <pcorti at gmail.com> wrote:
>>>
>>>> On Thu, Jul 9, 2015 at 9:34 AM, Paolo Pasquali <
>>>> paolo.pasquali at ithaca.polito.it> wrote:
>>>>
>>>>> 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
>>>> if you did not customize things, Ubuntu 14 LTS comes with GDAL 1.10.1,
>>>> therefore try to install pygdal 1.10.1 (there is not the corresponding
>>>> package for gdal)
>>>>
>>>> $ yolk -V gdal
>>>> GDAL 2.0.0
>>>> (env)capooti at ubuntu:~/git/github$ yolk -V pygdal
>>>> pygdal 1.11.2.1
>>>> pygdal 1.11.1.1
>>>> pygdal 1.11.0.1
>>>> pygdal 1.10.1.1
>>>> pygdal 1.10.0.1
>>>> pygdal 1.9.2.1
>>>> pygdal 1.8.1.1
>>>>
>>>> not sure why previous gdal versions where removed for the gdal package.
>>>> cheers
>>>> p
>>>>
>>>> [1]
>>>> [2]
>>>>
>>>> --
>>>> Paolo Corti
>>>> Geospatial software developer
>>>> web: http://www.paolocorti.net
>>>> twitter: @capooti
>>>> skype: capooti
>>>>
>>>
>>>
>>> _______________________________________________
>>> geonode-users mailing list
>>> geonode-users at lists.osgeo.org
>>> http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users
>>>
>>>
>>
>>
>> --
>> Simone
>>
>> _______________________________________________
>> geonode-users mailing list
>> geonode-users at lists.osgeo.org
>> http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users
>>
>>
>
>
> --
>
> [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-devel mailing list
> geonode-devel at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geonode-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20160627/daf25d56/attachment.html>


More information about the geonode-devel mailing list