Skip to content

Conversation

@evetion
Copy link
Contributor

@evetion evetion commented Aug 31, 2023

Fixes #37. Also adds a render step to the PR workflow (but not publish). Otherwise we only test the installation, which is not that useful.

@evetion
Copy link
Contributor Author

evetion commented Aug 31, 2023

Well the PR is succesfull, but we run into nasty library linking errors later on:

 ERROR: LoadError: InitError: could not load library "/home/runner/.julia/artifacts/8a643038d2adde781829b4467a32afa307e23b51/lib/libproj.so"
/usr/lib/x86_64-linux-gnu/libcurl.so: version `CURL_4' not found (required by /home/runner/.julia/artifacts/8a643038d2adde781829b4467a32afa307e23b51/lib/libproj.

Locally stuff is also complaining, it might be because R, Python and Julia all use their own versions of GDAL libraries and place these things in the path. Python can't open fiona because gdal finds a library from julia first. Not sure how to fix this.

@Robinlovelace
Copy link
Owner

Fiona works fine in the python chunks. I sense that it links to the system installation of GDAL, not sure though. Is it possible to make Julia install packages linked to system installations? I would expect it to do that by default on Linux.

@Robinlovelace
Copy link
Owner

@evetion
Copy link
Contributor Author

evetion commented Aug 31, 2023

That's just the stacktrace. I use GeoDataFrames, which depends on ArchGDAL (GDAL wrapper), which depends on GDAL, which depends on GDAL_jll, which actually executes the C calls to the library.

Julia bundles its own libraries, also for binary packages, just like conda does.

@Robinlovelace
Copy link
Owner

Julia bundles its own libraries, also for binary packages, just like conda does.

Is it possible to link to system installation of GDAL? Probably worth checking it works on vanilla Ubuntu + Julia without Quarto, to help eliminate other possibilities that should help diagnose the cause, e.g. confirm that it's JuliaCall, not sure how that would trigger the issue though. Could try on another OS?

@Robinlovelace
Copy link
Owner

Looks like progress with the env. Good luck and 🤞 to getting this working!

@evetion
Copy link
Contributor Author

evetion commented Sep 17, 2024

Zombie PR, but look at this!

Screen.Recording.2024-09-17.at.16.23.41.mov

@Robinlovelace
Copy link
Owner

Woohoo

@felixcremer
Copy link

What made it work?

@evetion
Copy link
Contributor Author

evetion commented Sep 18, 2024

Here it was setting the LD library path empty in one of the first R cells. That prevented horrible linking issues when running spatial stuff.

Haven't seen those issues yet with our newer attempts, so fingers crossed.

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

Successfully merging this pull request may close these issues.

Install basic JuliaGeo packages

3 participants