Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libgdal.so.20: undefined symbol: _ZN6kmldom5ParseERKSsPSs #98

Closed
snowman2 opened this issue Jan 16, 2019 · 18 comments
Closed

libgdal.so.20: undefined symbol: _ZN6kmldom5ParseERKSsPSs #98

snowman2 opened this issue Jan 16, 2019 · 18 comments

Comments

@snowman2
Copy link
Member

This is for those who may run into this issue for a pointer to the resolution.

conda:
current version: 4.5.4

Issue:

<module>
    import rasterio
  File "/opt/conda/envs/testenv/lib/python3.6/site-packages/rasterio/__init__.py", line 23, in <module>
    from rasterio._base import gdal_version
ImportError: /opt/conda/envs/testenv/lib/python3.6/site-packages/rasterio/../../../libgdal.so.20: undefined symbol: _ZN11xercesc_3_211InputSource11setEncodingEPKt
rasterio-1.0.9
libgdal-2.2.4

Related to: conda-forge/fiona-feedstock#68

@snowman2
Copy link
Member Author

Ah, actually, looks like the resolution is a year old. Hmmm, must be related.

@snowman2
Copy link
Member Author

Yep, definitely related. Solution: remove defaults channel

@GreatEmerald
Copy link

Same issue here, but all the packages are from conda-forge already...

@GreatEmerald
Copy link

Solution that worked for me:

conda install --channel conda-forge --override-channels "gdal>2.2.4"

i.e. use newer GDAL (that installs 2.3)

@snowman2
Copy link
Member Author

Ran into this: undefined symbol: _ZN11xercesc_3_211InputSource11setEncodingEPKt

And as @GreatEmerald said, libgdal=2.3.* fixes this.

@ocefpaf
Copy link
Member

ocefpaf commented Jan 18, 2019

Something may be badly pinned and hence the downgrades b/c conda tries to wiggle its way out of complex solutions. I will try to identify which one and remove it.

@MatCast
Copy link

MatCast commented Jan 18, 2019

I was having the same problem, @GreatEmerald solution worked for me too.

@mariusvniekerk
Copy link
Member

@conda-forge-admin please rerender

@conda-forge-linter
Copy link

Hi! This is the friendly automated conda-forge-webservice.

I've rerendered the recipe as requested, but nothing actually changed.

@jhamman
Copy link
Member

jhamman commented Jan 24, 2019

@ocefpaf / @mariusvniekerk - the re-render on this repo didn't do anything? What's the next step towards addressing the problems described here?

@shoyer
Copy link

shoyer commented Jan 24, 2019

Does something more need to be done to cause the "re-render" to occur? I'm still seeing segfaults when rasterio is installed on readthedocs (for xarray's doc build, see pydata/xarray#2705)

@jhamman
Copy link
Member

jhamman commented Jan 24, 2019

@shoyer and I are clearly thinking on the same wave length right now :)

@snowman2
Copy link
Member Author

One thing I have noticed is that specific builds of rasterio get pinned to specific versions of GDAL. So, to use the fixed pin for libgdal, you need the most recent version of rasterio.

@ocefpaf
Copy link
Member

ocefpaf commented Jan 24, 2019

@shoyer and @jhamman I'm trying to figure which version/build number of rasterio is the problematic one but I cannot find a package list for the env in https://readthedocs.org/projects/xray/builds/8443648

@snowman2 you reported rasterio-1.0.9 and libgdal-2.2.4, I can try to rebuild rasterio-1.0.9 but the latest version, rasterio-1.0.13, installs libgdal-2.4.0 and works as expected. I just tested:

conda create --name TEST --channel conda-forge python=3.7 rasterio
conda activate TEST
python -c 'import rasterio; print(rasterio.__version__)'

@snowman2
Copy link
Member Author

Ah yes. The version 1.0.9 did not work. I had to use 1.0.13.

@ocefpaf
Copy link
Member

ocefpaf commented Jan 24, 2019

Ah yes. The version 1.0.9 did not work. I had to use 1.0.13.

I removed that one from the main channel. Thanks!

@ocefpaf
Copy link
Member

ocefpaf commented Jan 29, 2019

@snowman2 are you still experiencing this? I so please re-open but I removed the offending package and the latest updates should have taken care of that.

@ocefpaf ocefpaf closed this as completed Jan 29, 2019
@snowman2
Copy link
Member Author

All is good now. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants