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

Failed to precompile Plots on Julia v1.10.3 #4939

Open
WuSiren opened this issue May 18, 2024 · 5 comments
Open

Failed to precompile Plots on Julia v1.10.3 #4939

WuSiren opened this issue May 18, 2024 · 5 comments

Comments

@WuSiren
Copy link

WuSiren commented May 18, 2024

(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!
@elesar50
Copy link

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

@hydrosquall
Copy link

hydrosquall commented Aug 2, 2024

I opened a separate issue #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.

@elesar50
Copy link

elesar50 commented Aug 3, 2024

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.

@hydrosquall
Copy link

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

@RohanRajagopal
Copy link

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

@notthetup notthetup mentioned this issue Sep 12, 2024
7 tasks
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

4 participants