rasterio ImportError: version `GLIBCXX_3.4.30' not found


alec.glen.ostrander@...
 

Hello, I'm struggling to figure out an issue with my installation of rasterio, any help is greatly appreciated!

I've had rasterio installed and working cleanly for a month, but today when I ran my code, I received the following error:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/opt/conda/lib/python3.9/site-packages/rasterio/__init__.py", line 9, in <module>
    from rasterio._base import gdal_version
ImportError: /opt/conda/lib/python3.9/site-packages/rasterio/../../.././libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /opt/conda/lib/python3.9/site-packages/rasterio/../../.././libtiledb.so.2.8)

I've tried reinstalling a few times without luck, and confirmed that GLIBCXX_3.4.30 does not exist on my machine (I have versions 3.4.1-29). But I'm a bit beyond my depth trying to figure out how to fix it.


alec.glen.ostrander@...
 

Seems like it might be a bug, related to https://forum.manjaro.org/t/latest-firefox-has-possible-dependency-issue-with-missing-glibcxx-3-4-30/111179?


Herzmann, Daryl E [AGRON]
 

Greetings,

How did you install rasterio ? Via conda or pip ? Does `conda list rasterio` show it coming from conda-forge? Which version of Linux is this?

daryl

________________________________________
From: main@rasterio.groups.io <main@rasterio.groups.io> on behalf of alec.glen.ostrander via groups.io <alec.glen.ostrander@...>
Sent: Thursday, May 19, 2022 3:08 PM
To: main@rasterio.groups.io
Subject: [rasterio] rasterio ImportError: version `GLIBCXX_3.4.30' not found

Hello, I'm struggling to figure out an issue with my installation of rasterio, any help is greatly appreciated!

I've had rasterio installed and working cleanly for a month, but today when I ran my code, I received the following error:

Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/opt/conda/lib/python3.9/site-packages/rasterio/__init__.py", line 9, in <module>
from rasterio._base import gdal_version
ImportError: /opt/conda/lib/python3.9/site-packages/rasterio/../../.././libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /opt/conda/lib/python3.9/site-packages/rasterio/../../.././libtiledb.so.2.8)

I've tried reinstalling a few times without luck, and confirmed that GLIBCXX_3.4.30 does not exist on my machine (I have versions 3.4.1-29). But I'm a bit beyond my depth trying to figure out how to fix it.


alec.glen.ostrander@...
 

Installed via conda; `conda list rasterio` does show it coming from conda-forge.

The OS is Ubuntu 20.04.4 LTS running in Docker. It should be reproducible with the following commands:
```

docker run -dit --name jbase jupyter/base-notebook

docker exec jbase conda install rasterio

docker exec jbase python -c "import rasterio"

```