conda rsgislib gdal issues

264 views
Skip to first unread message

Alexandra Mates

unread,
Jul 1, 2014, 10:26:35 AM7/1/14
to rsgislib...@googlegroups.com
First few issues with the rsgislib conda install:

The installation of anaconda, arcsi, tuiview as per http://spectraldifferences.wordpress.com/ went ok. I then tried to run a python script that calls gdal_rasterize through subprocess.call(). Returned ''ERROR 4: Unable to open EPSG support file gcs.csv'', same as here https://groups.google.com/a/continuum.io/forum/#!msg/anaconda/608MwtlekKk/ERYdk-rTGLcJ. Tried Jonathan Helums's fix. Seems to have worked but now the interpreter is unhappy with the imported modules (from rsgislib import classification, ...):

Traceback (most recent call last):
  File "runProject_29Jun.py", line 7, in <module>
    from rsgislib import classification, imageutils, segmentation, rastergis
  File "/home/envsys/anaconda3/lib/python3.4/site-packages/rsgislib/classification/__init__.py", line 6, in <module>
    from ._classification import *
ImportError: /home/envsys/anaconda3/lib/python3.4/site-packages/rsgislib/classification/../../../.././librsgis_rastergis.so.2.0.0: undefined symbol: _ZN31GDALDefaultRasterAttributeTableC1ERKS_

If I remove classification from import list, it is unhappy with the next module, i.e. imageutils.

I installed anaconda & rsgislib on Ubuntu 13.10 saucy.

I considered the google group to be a good place to post issues, just in case I'm missing something obvious, e.g. I need to change my python syntax from 2.7 to 3.4? In any case, I'm happy to post on a more official bug tracker webpage if there is any :-)



Pete Bunting

unread,
Jul 1, 2014, 10:40:41 AM7/1/14
to Alexandra Mates, rsgislib...@googlegroups.com
Hi Alex,

Did you install from the https://conda.binstar.org/osgeo url? We just updated to this version over the weekend.

I have tried in on a couple of debian based versions of linux and it worked OK. However, I just installed with miniconda so can I suggest you try deleting your anaconda installation and trying miniconda?

Cheers,

Pete

****************************************************
* Dr Pete Bunting
* Senior Lecturer in Remote Sensing
* Earth Observation and Ecosystem Dynamics Group
* Department of Geography and Earth Sciences
* Aberystwyth University
* Aberystwyth
* Ceredigion
* SY23 3DB
* UK
*
* Ph: +44 (0) 1970 622615
* Mob: +44 (0) 7917 842743
* Email: p...@aber.ac.uk
* ORCID: http://orcid.org/0000-0002-7435-0148
****************************************************
> RSPSoc 2014 - 2nd -5th September
>
> --
> You received this message because you are subscribed to the Google Groups "RSGISLib Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rsgislib-suppo...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Daniel Clewley

unread,
Jul 1, 2014, 11:57:07 AM7/1/14
to Pete Bunting, Alexandra Mates, rsgislib...@googlegroups.com
Hi Alex,

You only need to do the second part of Jonathan Helums's fix (exporting the GDAL_DATA variable) as the GDAL build installed with RSGSLib keeps the data directory. Installing 'gdal-data' also installs the Continuum GDAL package (1.10.0), which is incompatible with the latest version of RSGISLib (hence the errors you're getting).

Myself and Pete have done some more work on the conda RSGISLib build and uploaded to a shared account. Pete's advice of deleting anaconda and starting again (installing from osgeo) is probably the easiest. You should be OK to use the full anaconda package but if you run into problems try miniconda and just install packages as you need them.

Thanks for reporting the problems to the mailing list - I think this is the best place for conda related discussion. If you need to report an issue, our fork of conda-recipes is probably the best place to do this:

https://github.com/danclewley/conda-recipes

Thanks,

Dan

Alexandra Mates

unread,
Jul 3, 2014, 6:15:13 PM7/3/14
to rsgislib...@googlegroups.com, peteb...@mac.com, alexand...@envsys.co.uk
This worked for me, removing the 3 from the suggested default installation path 
>> To unsubscribe from this group and stop receiving emails from it, send an email to rsgislib-support+unsubscribe@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups "RSGISLib Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rsgislib-support+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.


Reply all
Reply to author
Forward
0 new messages