AttributeError: module 'rsgislib.tools' has no attribute 'mapping'

82 views
Skip to first unread message

iron...@gmail.com

unread,
Nov 1, 2022, 7:12:56 AM11/1/22
to RSGISLib Support
Hello I am trying one of the tutotrial notebooks on your github.
When i am trying to import the following 

# Import the RSGISLib plotting module for reading the # image data into numpy arrays for display. 
import rsgislib.tools.mapping

I get the error  module 'rsgislib.tools' has no attribute 'mapping'.

Has anything changed in the rsgislib??

Peter Bunting

unread,
Nov 1, 2022, 8:40:54 AM11/1/22
to iron...@gmail.com, RSGISLib
Hi,

What version of RSGISLib are you running? The notebooks should all be running with the latest version of rsgislib from conda-forge, which is 5.0.11.

Cheers, Pete
> --
> 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 view this discussion on the web, visit https://groups.google.com/d/msgid/rsgislib-support/759318f3-309b-468d-a121-a519bc38bcc9n%40googlegroups.com.

iron...@gmail.com

unread,
Nov 1, 2022, 8:48:17 AM11/1/22
to RSGISLib Support
I just found that I have the 5.0.8 version.
The conda forge initial install failed so it automatically installed a frozen resolve .
Will try to upgrade.

Thank you

Peter Bunting

unread,
Nov 1, 2022, 9:00:21 AM11/1/22
to iron...@gmail.com, RSGISLib
Try creating a new environment and install mamba and installing using mamba rather than conda as it is better at solving the dependencies - it is also quicker as well.

conda install mamba -n base -c conda-forge

conda create --name rsgislib-env python=3.10

mamba install -c conda-forge rsgislib gdal h5py scikit-learn scikit-image matplotlib pandas geopandas statsmodels scipy rasterio

pip install matplotlib_scalebar
> To view this discussion on the web, visit https://groups.google.com/d/msgid/rsgislib-support/d5c8cf87-8cff-463e-8b3a-0f305095b1a3n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages