Re: [GeoNode-users] osgeo module install problem

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: [GeoNode-users] osgeo module install problem

xbartolone
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

Il giorno 09/lug/2015, alle ore 15:16, Vicente <[hidden email]> ha scritto:

You are right Paolo Corti, in my case I have gdal 1.11.2 installed by QGIS.
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 <[hidden email]> 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 <[hidden email]>:
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 <[hidden email]> wrote:
On Thu, Jul 9, 2015 at 9:34 AM, Paolo Pasquali <[hidden email]> 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@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
[hidden email]
http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users




--
Simone 

_______________________________________________
geonode-users mailing list
[hidden email]
http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users




--
MANTA
 
Vicente Deluca
<a href="tel:%2B54%2011%206091%204579" value="+541160914579" style="color:rgb(17,85,204)" target="_blank">+54 11 6091 4579
_______________________________________________
geonode-users mailing list
[hidden email]
http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users


_______________________________________________
geonode-devel mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/geonode-devel
Reply | Threaded
Open this post in threaded view
|

Re: [GeoNode-users] osgeo module install problem

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


Regards,
Patrick


On Mon, Jun 27, 2016 at 7:03 PM, Francesco Bartoli <[hidden email]> 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

Il giorno 09/lug/2015, alle ore 15:16, Vicente <[hidden email]> ha scritto:

You are right Paolo Corti, in my case I have gdal 1.11.2 installed by QGIS.
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 <[hidden email]> 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 <[hidden email]>:
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 <[hidden email]> wrote:
On Thu, Jul 9, 2015 at 9:34 AM, Paolo Pasquali <[hidden email]> 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@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
[hidden email]
http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users




--
Simone 

_______________________________________________
geonode-users mailing list
[hidden email]
http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users




--
MANTA
 
Vicente Deluca
<a href="tel:%2B54%2011%206091%204579" value="+541160914579" style="color:rgb(17,85,204)" target="_blank">+54 11 6091 4579
_______________________________________________
geonode-users mailing list
[hidden email]
http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users


_______________________________________________
geonode-devel mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/geonode-devel



_______________________________________________
geonode-devel mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/geonode-devel