Plots.jl icon indicating copy to clipboard operation
Plots.jl copied to clipboard

Failed to precompile Plots on Julia v1.10.3

Open WuSiren opened this issue 1 year ago • 6 comments

(jl_B3P9L6) pkg> add Plots
   Resolving package versions...

...

        Info Packages marked with ⌃ and ⌅ have new versions available. Those with ⌃ may be upgradable, but those with ⌅ are restricted by compatibility constraints from upgrading. To see why use `status --outdated -m`       
Precompiling project...
  ✗ BinaryProvider
  ✗ FFMPEG
  ✗ Plots
  ✗ Plots → FileIOExt
  ✗ Plots → UnitfulExt
  ✗ Plots → GeometryBasicsExt
  0 dependencies successfully precompiled in 41 seconds. 297 already precompiled.
  6 dependencies errored.
  For a report of the errors see `julia> err`. To retry use `pkg> precompile`
julia> err
PkgPrecompileError: The following 1 direct dependency failed to precompile:

Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80]

Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] to "C:\\Users\\name\\.julia\\compiled\\v1.10\\Plots\\jl_67B7.tmp".
Deps path: C:\Users\name\.julia\packages\FFMPEG\guN1x\src\..\deps\deps.jl
ERROR: LoadError: FFMPEG not installed properly, run `] build FFMPEG`, restart Julia and try again

...

ERROR: LoadError: Failed to precompile FFMPEG [c87230d0-a227-11e9-1b43-d7ebe4e7570a] to "C:\\Users\\name\\.julia\\compiled\\v1.10\\FFMPEG\\jl_7BB6.tmp".

...

(jl_B3P9L6) pkg> build FFMPEG
    Building FFMPEG → `C:\Users\name\.julia\scratchspaces\44cfe95a-1eb2-52ea-b672-e2afdf69b78f\9143266ba77d3313a4cf61d8333a1970e8c5d8b6\build.log`
ERROR: Error building `FFMPEG`: 
ERROR: LoadError: Unable to open libLLVM!

WuSiren avatar May 18 '24 06:05 WuSiren

Hi there, I just got exactly the same error as Wusiren. If it helps my system is:

CsSystemFamily : Legion Pro 7 16IRX9H OsOperatingSystemSKU : WindowsHome OsVersion : 10.0.22631 PS C:\Users\elesa> nvidia-smi Wed Jul 31 18:46:43 2024 +-----------------------------------------------------------------------------------------+ | NVIDIA-SMI 551.83 Driver Version: 551.83 CUDA Version: 12.4 | |-----------------------------------------+------------------------+----------------------+ | GPU Name TCC/WDDM | Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. | | | | MIG M. | |=========================================+========================+======================| | 0 NVIDIA GeForce RTX 4080 ... WDDM | 00000000:01:00.0 On | N/A | | N/A 42C P8 5W / 105W | 1013MiB / 12282MiB | 3% Default | | | | N/A | +-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=========================================================================================| | 0 N/A N/A 2108 C+G ...2txyewy\StartMenuExperienceHost.exe N/A | | 0 N/A N/A 5944 C+G ...t.LockApp_cw5n1h2txyewy\LockApp.exe N/A | | 0 N/A N/A 9620 C+G ...nt.CBS_cw5n1h2txyewy\SearchHost.exe N/A | | 0 N/A N/A 10468 C+G ...__8wekyb3d8bbwe\WindowsTerminal.exe N/A | | 0 N/A N/A 13400 C+G C:\Windows\explorer.exe N/A | | 0 N/A N/A 15368 C+G ...ekyb3d8bbwe\PhoneExperienceHost.exe N/A | | 0 N/A N/A 16180 C+G ...siveControlPanel\SystemSettings.exe N/A | | 0 N/A N/A 16572 C+G ...5n1h2txyewy\ShellExperienceHost.exe N/A | | 0 N/A N/A 18700 C+G ...crosoft\Edge\Application\msedge.exe N/A | | 0 N/A N/A 21536 C+G ...on\127.0.2651.74\msedgewebview2.exe N/A | +-----------------------------------------------------------------------------------------+ any advice will be more than welcome as Im using mainly Makie but also GLMakie and there are 3 Plots dependencies: after "add GLMakie": all compiled except: Building ModernGL → C:\Users\elesa\.julia\scratchspaces\44cfe95a-1eb2-52ea-b672-e2afdf69b78f\b76ea40b5c0f45790ae09492712dd326208c28b2\build.log Precompiling project... ✗ Plots → FileIOExt ✗ Plots → UnitfulExt ✗ Plots → GeometryBasicsExt 4 dependencies successfully precompiled in 33 seconds. 338 already precompiled. 3 skipped during auto due to previous errors. Thanks in advance

elesar50 avatar Jul 31 '24 16:07 elesar50

I opened a separate issue https://github.com/JuliaPlots/Plots.jl/issues/4968 for a similar FFMPEG error as @WuSiren , except on Julia 1.10.4 . If I find a fix in that thread that applies to 1.10.3, I'll mention it here too.

hydrosquall avatar Aug 02 '24 22:08 hydrosquall

Hi I just installed Julia 1.10.4 on the same laptop but on Ubuntu 24.04 (I installed it alongside with windows as dual boot) and compiled Plots without any issue.

elesar50 avatar Aug 03 '24 16:08 elesar50

I closed the other issue thread as restarting my computer (and by extension, the Julia session) fixed my installation.

hydrosquall avatar Aug 04 '24 00:08 hydrosquall

This fixes the issue on Windows, if anyone requires a solution. I don't know if this is a robust fix though.

https://stackoverflow.com/a/76677719

RohanRajagopal avatar Sep 11 '24 07:09 RohanRajagopal

I also can't get Plots to precompile on my Intel Mac.

hbsmith avatar Feb 13 '25 09:02 hbsmith