Skip to first unread message

cok...@gmail.com

unread,
Feb 8, 2017, 5:37:30 PM2/8/17
to RSGISLib Support
Hi Everybody,

I've recently installed rsgislib via Anaconda and am getting an import error on libicui18n.so.58 per below.  This is running on Ubuntu 16.04 LTS desktop.  From what I can tell it seems like a QT (maybe QT Creator) version conflict.  I installed rsgislib per notes on this forum, and I'll list the packages that are installed.  I get the same error when I try to run tuiview.

Thanks for the help!

Brian Krzys.

##### error message

Python 3.5.2 |Continuum Analytics, Inc.| (default, Jul  2 2016, 17:53:06) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import rsgislib
>>> from rsgislib import imagecalibration
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/brian/anaconda3/envs/aster/lib/python3.5/site-packages/rsgislib/imagecalibration/__init__.py", line 10, in <module>
    from ._imagecalibration import *
ImportError: libicui18n.so.58: cannot open shared object file: No such file or directory

##### installation procedure

Create new environment - note each time you open a terminal you will need to activate the environment, add to .bash_profile if want to turn on by default. 
conda create --name osgeoenv python=3.5 
source activate osgeoenv 

conda install -c conda-forge gdal 
conda install -c conda-forge tuiview 
conda install -c conda-forge -c rios rsgislib 
conda install -c conda-forge -c rios rios 
conda install -c conda-forge -c rios arcsi 
conda install -c conda-forge scikit-learn 

##### conda packages list

# packages in environment at /home/brian/anaconda3/envs/aster:
#
arcsi                     1.0.0                    py35_0    rios
blas                      1.1                    openblas    conda-forge
boost                     1.62.0                   py35_0    conda-forge
cairo                     1.14.6                        0    conda-forge
cgal                      4.9                      py35_1    conda-forge
curl                      7.52.1                        0    conda-forge
cycler                    0.10.0                   py35_0    conda-forge
expat                     2.1.0                         2    conda-forge
fontconfig                2.11.1                        6    conda-forge
freetype                  2.6.3                         1    conda-forge
freexl                    1.0.2                         1    conda-forge
gdal                      2.1.3               np112py35_1    conda-forge
geos                      3.5.1                         1    conda-forge
gettext                   0.19.7                        1    conda-forge
giflib                    5.1.4                         0    conda-forge
glib                      2.51.0                        2    conda-forge
gmp                       6.1.2                         0    conda-forge
gsl                       2.1                           2    conda-forge
harfbuzz                  1.3.4                         0    conda-forge
hdf4                      4.2.12                        0    conda-forge
hdf5                      1.8.17                        9    conda-forge
icu                       56.1                          4    conda-forge
jpeg                      9b                            0    conda-forge
json-c                    0.12                          0    conda-forge
kealib                    1.4.6                         3    conda-forge
libdap4                   3.18.3                        2    conda-forge
libffi                    3.2.1                         3    conda-forge
libgcc                    5.2.0                         0  
libgfortran               3.0.0                         1  
libiconv                  1.14                          4    conda-forge
libnetcdf                 4.4.1.1                       2    conda-forge
libpng                    1.6.28                        0    conda-forge
libpq                     9.5.4                         3    conda-forge
libspatialite             4.3.0a                       14    conda-forge
libtiff                   4.0.6                         7    conda-forge
libxml2                   2.9.4                         3    conda-forge
matplotlib                2.0.0               np112py35_1    conda-forge
mkl                       2017.0.1                      0  
mpfr                      3.1.5                         0    conda-forge
muparser                  2.2.5                         2    conda-forge
numpy                     1.12.0          py35_blas_openblas_200  [blas_openblas]  conda-forge
openblas                  0.2.19                        0    conda-forge
openjpeg                  2.1.2                         2    conda-forge
openssl                   1.0.2k                        0  
pandas                    0.19.2              np112py35_1    conda-forge
pango                     1.40.3                        0    conda-forge
pcre                      8.39                          0    conda-forge
pip                       9.0.1                    py35_1  
pixman                    0.34.0                        0    conda-forge
proj4                     4.9.3                         2    conda-forge
py6s                      1.6.2                    py35_1    rios
pyparsing                 2.1.10                   py35_0    conda-forge
pyqt                      4.11.4                   py35_2    conda-forge
pysolar                   0.6                      py35_0    conda-forge
python                    3.5.2                         0  
python-dateutil           2.6.0                    py35_0    conda-forge
pytz                      2016.10                  py35_0    conda-forge
qt                        4.8.7                         4  
readline                  6.2                           2  
rios                      1.4.3                    py35_1    conda-forge
rsgislib                  3.1.0                    py35_0    rios
scikit-learn              0.18            np112py35_blas_openblas_204  [blas_openblas]  conda-forge
scipy                     0.18.1          np112py35_blas_openblas_201  [blas_openblas]  conda-forge
setuptools                27.2.0                   py35_0  
sip                       4.18                     py35_1    conda-forge
six                       1.10.0                   py35_1    conda-forge
sixs                      1.1                           0    conda-forge
sqlite                    3.13.0                        0  
tk                        8.5.18                        0  
tornado                   4.4.2                    py35_0    conda-forge
tuiview                   1.1.10              np112py35_0    conda-forge
util-linux                2.21                          0  
wheel                     0.29.0                   py35_0  
xerces-c                  3.1.4                         2    conda-forge
xz                        5.2.2                         1  
zlib                      1.2.8                         3  


vera...@googlemail.com

unread,
Feb 16, 2017, 3:45:43 AM2/16/17
to RSGISLib Support
I'm having the same Problem.
Did you find a solution yet?

Peter Scarth

unread,
Feb 18, 2017, 7:58:46 PM2/18/17
to RSGISLib Support
I'm having the same problem as well.
I tried conda install icu=58 which gives me libicui18n.so.58 but then I get: ImportError: libicui18n.so.56 - can't win. Looking into where this is coming from.
Peter

Peter Scarth

unread,
Feb 19, 2017, 6:35:58 AM2/19/17
to RSGISLib Support
Updating xerces-c to 3.1.4-2 fixed the problem for me.
conda install -c conda-forge xerces-c=3.1.4
I also needed to update matplotlib to 2.0.0 but you look OK.


On Thursday, 9 February 2017 08:37:30 UTC+10, cok...@gmail.com wrote:

Thiago Sanna Freire Silva

unread,
Feb 20, 2017, 4:12:10 AM2/20/17
to RSGISLib Support
Having the same problem, and updating xerces did not solve the problem for me.

cok...@gmail.com

unread,
Feb 20, 2017, 2:03:13 PM2/20/17
to RSGISLib Support
Thanks for the help, unfortunately updating xerces didn't solve the problem.

conda install -c conda-forge xerces-c=3.1.4
- this installed ok

Looking in my home directory (run sudo updatedb; locate libicui18n) the .58 stuff is there so I then just tried installing it in the environment ...

conda install icu=58
- this does not work, cannot find the package

conda install -c conda-forge icu=58
- produces conflict errors per below

conda install -c conda-forge icu=58
Fetching package metadata ...........
Solving package specifications: .

UnsatisfiableError: The following specifications were found to be in conflict:
  - arcsi -> rsgislib -> boost 1.62.* -> icu 56.*
  - icu 58*
Use "conda info <package>" to see the dependencies for each package.

Checked matplotlib and it is correct at 2.0.0

Wish I knew more about solving Python dependencies ...






Pete Bunting [pfb]

unread,
Feb 20, 2017, 2:07:27 PM2/20/17
to cok...@gmail.com, RSGISLib Support
Hi, 

Can you try updating boost. 

conda install -c conda-forge boost=1.63.0

Best wishes, 

Pete

****************************************************
* Dr Pete Bunting
* Reader 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
****************************************************
"Please consider the environment before printing this email or any documents attached”

--
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.
To post to this group, send email to rsgislib...@googlegroups.com.
Visit this group at https://groups.google.com/group/rsgislib-support.
For more options, visit https://groups.google.com/d/optout.



--------------------------------------------------------------------
Un o’r 4 prifysgol uchaf yn y DU a’r orau yng Nghymru am fodlonrwydd myfyrwyr.
(Arolwg Cenedlaethol y Myfyrwyr 2016)
www.aber.ac.uk

Top 4 UK university and best in Wales for student satisfaction
(National Student Survey 2016)
www.aber.ac.uk

Pete Bunting [pfb]

unread,
Feb 20, 2017, 3:45:40 PM2/20/17
to RSGISLib Support, spdlib-...@lists.sourceforge.net
Dear all, 

I have updated the rsgislib, arcsi and spdlib packages on my development conda channel so all the latest versions of all the dependencies are used. I believe this should have solve the libicui18n issue. 

Therefore, you can install the packages using the following commands:

conda install -c conda-forge -c au-eoed arcsi
conda install -c conda-forge -c au-eoed rsgislib
conda install -c conda-forge -c rios -c au-eoed spdlib

There are MacOS and Linux binaries available for python 3.5. Please let me know if this works or not.

Many thanks, 

Pete
****************************************************
* Dr Pete Bunting
* Reader 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
****************************************************
"Please consider the environment before printing this email or any documents attached”

Daniel Clewley

unread,
Feb 20, 2017, 4:51:48 PM2/20/17
to Pete Bunting, RSGISLib Support, spdlib-develop
Hi Pete,

Works for me under Linux (Fedora 25) and macOS.

For anyone wanting to install multiple packages (e.g., RSGISLib and SPDLib) is best to do at the same time (then the conda solver will try and match the dependencies), for example:

conda install -c au-eoed -c rios -c conda-forge arcsi spdlib tuiview

Thanks,

Dan

cok...@gmail.com

unread,
Feb 20, 2017, 10:24:22 PM2/20/17
to RSGISLib Support
Thanks Pete, unfortunately updating boost didn't solve the problem.  

I also created a new condo environment and tried your updated development installation notes and still no go, same error.

Above was/is under Ubuntu 16.04 LTS.

Also tried installation via updated new steps on OS X and get what seems to be the same error still, per below.

All of this is using the full Anaconda install, does anybody think it's worth it to try with a new build and miniconda?

Brian.

Error on OS X:

>>> import rsgislib                             
>>> from rsgislib import imagecalibration
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "//anaconda/envs/aster/lib/python3.5/site-packages/rsgislib/imagecalibration/__init__.py", line 10, in <module>
    from ._imagecalibration import *
ImportError: dlopen(//anaconda/envs/aster/lib/python3.5/site-packages/rsgislib/imagecalibration/_imagecalibration.cpython-35m-darwin.so, 2): Library not loaded: @rpath/libicui18n.58.dylib
  Referenced from: /anaconda/envs/aster/lib//libdap.23.dylib
  Reason: image not found

Pete Bunting [pfb]

unread,
Feb 21, 2017, 8:05:32 AM2/21/17
to RSGISLib Support, spdlib-...@lists.sourceforge.net
Dear all, 

I had reports of an error remaining on MacOS and others where people are installing into an existing environment. Therefore, I have rebuilt rsgislib and spdlib with a fix for the MacOS issue (doesn’t seem to be an issue on linux but I have updated that as well just in case). 

If you are still having problems once you update I would recommend you create a new environment, as show with the commands below:

conda create --name au-osgeo python=3.5
source activate au-osgeo
conda install -c au-eoed -c rios -c conda-forge arcsi rsgislib spdlib tuiview

Let me know if there are any existing problems after this update.

Many thanks, 

Pete

****************************************************
* Dr Pete Bunting
* Reader 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
****************************************************
"Please consider the environment before printing this email or any documents attached”

Pete Bunting [pfb]

unread,
Feb 21, 2017, 9:47:11 AM2/21/17
to RSGISLib Support, spdlib-...@lists.sourceforge.net
Dear all, 

If you have an existing environment setup an alternative (which I used on my laptop) is to update all your packages using the command below:

conda update -c au-eoed -c rios -c conda-forge --all

Best wishes, 

Pete

****************************************************
* Dr Pete Bunting
* Reader 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
****************************************************
"Please consider the environment before printing this email or any documents attached”

cok...@gmail.com

unread,
Feb 21, 2017, 10:00:02 PM2/21/17
to RSGISLib Support
Ok, finally working!  Specifically from the last posts I used:

conda create --name aster python=3.5
source activate aster
conda install -c au-eoed -c rios -c conda-forge arcsi rsgislib spdlib tuiview

This is working on OS X and Ubuntu 16.04 LTS desktop.

I think the post from Dan about doing all at the same time and letting the condo solver figure out the dependancies might have made a difference too.

Thanks Pete!
Reply all
Reply to author
Forward
0 new messages