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

Use Julia environment #40

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Use Julia environment #40

wants to merge 9 commits into from

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!

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
2 participants