davidanthoff / Electron.jl

Julia wrapper for Electron
Other
87 stars 19 forks source link

Electron will not recompile on Mac (Apple Silicon) #120

Open bobaronoff opened 1 year ago

bobaronoff commented 1 year ago

Unable to install Electron or ElectronDisplay on my MacBook. The issue seems to be electrons_app - not quite sure what this is ...

Message:

julia> using ElectronDisplay
[ Info: Precompiling ElectronDisplay [d872a56f-244b-5cc9-b574-2017b5b909a8]
ERROR: LoadError: Cannot locate artifact 'electronjs_app' for aarch64-apple-darwin-libgfortran5-cxx11-julia_version+1.8.

Vesrion Info:

julia> versioninfo()
Julia Version 1.8.4
Commit 00177ebc4fc (2022-12-23 21:32 UTC)
Platform Info:
  OS: macOS (arm64-apple-darwin21.5.0)
  CPU: 10 × Apple M1 Max
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-13.0.1 (ORCJIT, apple-m1)
  Threads: 1 on 8 virtual cores
Environment:
  JULIA_EDITOR = code
  JULIA_NUM_THREADS = 

Any thoughts how to proceed? Thank you !!

CiaranOMara commented 1 year ago

I encountered the same issue.

julia> using Electron
[ Info: Precompiling Electron [a1bb12fb-d4d1-54b4-b10a-ee7951ef7ad3]
ERROR: LoadError: Cannot locate artifact 'electronjs_app' for aarch64-apple-darwin-libgfortran5-cxx11-julia_version+1.8.4 in '~/.julia/packages/Electron/ILvWR/Artifacts.toml'
julia> versioninfo()
Julia Version 1.8.4
Commit 00177ebc4fc (2022-12-23 21:32 UTC)
Platform Info:
  OS: macOS (arm64-apple-darwin21.5.0)
  CPU: 8 × Apple M1 Pro
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-13.0.1 (ORCJIT, apple-m1)
  Threads: 1 on 6 virtual cores
gabmifre commented 1 year ago

@bobaronoff @CiaranOMara If you are using Electron@3.1.2 because of DataVoyager, you need to copy the new section for Apple arm64 from the most recent Artifacts.toml, this:

[[electronjs_app]]
arch = "aarch64"
git-tree-sha1 = "12f3018147190ddc494f686e5fbefe8d84f16efb"
os = "macos"

    [[electronjs_app.download]]
    sha256 = "72dc4950584d28e47bc7cbbfb51382061cd438ad0f91c2e640ce07738841ccd7"
    url = "https://github.com/davidanthoff/ElectronBuilder/releases/download/v19.0.9%2B0/ElectronJS-19.0.9+0-aarch64-apple-darwin14.tar.gz"

And paste it in your local Artifacts.toml file which is located somewhere in ~/.julia/packages/Electron . Then, try ]precompile Electron and ]precompile DataVoyager in the Julia REPL.

This gets the packages to precompile but I haven't tested if DataVoyager works as intended yet. You can probably force DataVoyager to use the most recent Electron version but I don't know how to do that.

bobaronoff commented 1 year ago

Thank you!

ablaom commented 5 months ago

Running into this on a silcon mac as well:

ERROR: LoadError: Cannot locate artifact 'electronjs_app' for aarch64-apple-darwin-libgfortran5-cxx11-julia_version+1.10.3 in '/Users/anthony/.julia/packages/Electron/ILvWR/Artifacts.toml'

julia> versioninfo()
Julia Version 1.10.3
Commit 0b4590a5507 (2024-04-30 10:59 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: macOS (arm64-apple-darwin22.4.0)
  CPU: 8 × Apple M1
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-15.0.7 (ORCJIT, apple-m1)
Threads: 1 default, 0 interactive, 1 GC (on 4 virtual cores)
Environment:
  JULIA_PATH = /Users/anthony/.juliaup/bin/julia