-
-
Notifications
You must be signed in to change notification settings - Fork 306
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
Can't precompile Makie, CairoMakie and FFMPEG #3123
Comments
Could this be related: #3028 ? |
The logs I get only show FFMPEG v0.4.1, which is the latest version, while in that issue FFMPEG v0.2.4 breaks stuff and FFMPEG v0.4.1 is listed as the "good version". However, indeed, this seems to be related to FFMPEG... BTW, Plots.jl installs FFMPEG v0.4.1 as well (along with FreeType2_jll v2.13.1+0), but everything precompiles fine. However, Plots installs FFMPEG_jll v4.4.2+2, and Pkg says it can be updated:
...yet |
Huh, maybe we haven't updated the compat: https://github.com/JuliaGraphics/FreeType.jl/blob/master/Project.toml#L11C21-L11C21 |
Fixed by JuliaPackaging/Yggdrasil#7164 |
And yes, relaxing the compat there would also be helpful. I believe that's what's holding FreeType2_jll back everywhere wrecking havoc: |
I am having a probably related issue. At first I thought it could be related to vscode REPL, so I opened an issue there: julia-vscode/julia-vscode#3386 (see link for error trace). But actually in another project on the vscode REPL I got Makie working fine. So there is some issue with that particular project, some particular combination of dependencies, I'm not sure what. |
@36a, after updating |
Unfortunately, it's not. |
Can you post the error and the manifest ? |
It's tricky. It happens in a stacked environment. If I have Makie as a explicit dependency of my project, there is no error. However if I load Makie without it being a direct dependency of my project (so it's loaded from the stacked global env), it fails with this error (same as the OP) Any ideas? Not sure how to provide more info here. |
I think we need to move this to Julia, since this is unlikely a makie issue... |
Did you cut a new release after JuliaGraphics/FreeType.jl#45? |
I don't see how that's a Julia issue. It'd be more useful to know the version of the packages in @3f6a's environment (well, mainly FreeType2_jll and FFMPEG_jll) |
@SimonDanisch I have updated and as far as I can tell, I should have the freshly registered FreeType 4.1.0. @giordano As I said getting the versions is a bit tricky because the issue only happens when I try to load Makie through the stacked env (and thus these versions are not listed in Manifest). Anyhow, here is the full error stacktrace I get: https://gist.github.com/3f6a/7e631cc863131afc58a08f870d66bcae. You can see there it's attempting to load
So I looked into |
The project file isn't much helpful, we need the manifest.
Not much. |
Here is the manifest of my active project (note this does not mention Makie, FFMPEG, ..., which come from the global env): https://gist.github.com/3f6a/7e631cc863131afc58a08f870d66bcae#file-manifest-toml Here is the manifest of my global environment (.julia/environments/v1.9/Manifest.toml): https://gist.github.com/3f6a/7e631cc863131afc58a08f870d66bcae#file-manifest-global-toml. |
I am seeing this error too. I have setup a small example at https://github.com/cossio/JuliaStackedEnvFFMPEGIssue. Can someone try it out and see if they have the error too? Probably has to be on Mac with Apple Silicon. The issue seems to happen in a stacked environment. In the linked repo, there is a parent environment which has Makie installed. Then the error is triggered by trying to load Makie from the nested environment at the subdirectory |
You can't possibly get an error about
if you use FreeType2_jll 2.13.1, since FreeType2_jll 2.13.1 does provide libfreetype.6.dylib with compat version 27.0.0 |
You're right, I have a different error. You think it's unrelated? Should I open a new issue? |
You do have OpenSSL 1.1 in your environment, I don't know what we should have to do more. |
That's in the parent environment. If I try to load Makie from the parent environment, it works. |
I don't know how package resolution works with stacked environments, that might be a different error then (maybe in Pkg?). |
I have simplified the stacked environments, now I have only a combination of Issue opened: JuliaLang/julia#51115 |
Everything seems to be working fine for me. I upgraded FreeType2_jll from v2.10.4+0 to v2.13.1+0, CairoMakie works fine, as it did after this, I think:
However, I'm not using any stacked environments and don't really know what they are, so maybe it's specific to this kind of env. |
]activate --temp; add Makie
)I can't precompile Makie, CairoMakie and FFMPEG, even after deleting
~/.julia
and installing Julia from scratch:Seems like the main culprit is libfreetype:
However, I do have the appropriate libfreetype:
I guess Julia uses libfreetype from
FreeType2_jll v2.10.4+0
. BTW, CairoMakie causes v2.10.4 to be installed, even though v2.13.1 is available. Not sure whether this is related.If I nuke the Julia installation and reinstall it from scratch again and then install only FFMPEG, it installs fine:
Running
add CairoMakie
afteradd FFMPEG
installs CairoMakie v0.6.2. Installation succeeds, but v0.6.2 is extremely outdated:Running
update
downgrades FreeType2, and precompilation fails again:Software versions involved
The text was updated successfully, but these errors were encountered: