Skip to content

Segfault on first install #257

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

Closed
ohadle opened this issue Jan 17, 2023 · 3 comments
Closed

Segfault on first install #257

ohadle opened this issue Jan 17, 2023 · 3 comments

Comments

@ohadle
Copy link

ohadle commented Jan 17, 2023

Hi,
I installed juliacall using poetry add juliacall, then opened an existing ipython session, ran the first command and got a segfault. Details:
Shell:

✗ poetry add juliacall
Using version ^0.9.10 for juliacall

Updating dependencies
Resolving dependencies... (2.3s)

Writing lock file

Package operations: 3 installs, 1 update, 0 removals

  • Installing semantic-version (2.10.0)
  • Installing juliapkg (0.1.9)
  • Updating dtlearn (0.0.0 /Users/ohad/repos/ml-builder/dtlearn -> 0.0.1 /Users/ohad/repos/ml-builder/dtlearn)
  • Installing juliacall (0.9.10)

Ipython:

In [4]: from juliacall import Main as jl
[juliapkg] Locating Julia ^1.6.1
[juliapkg] Querying Julia versions from https://julialang-s3.julialang.org/bin/versions.json
[juliapkg] WARNING: About to install Julia 1.8.5 to /Users/ohad/repos/ml-builder/ml-e2e/.venv/julia_env/pyjuliapkg/install.
[juliapkg]   If you use juliapkg in more than one environment, you are likely to have Julia
[juliapkg]   installed in multiple locations. It is recommended to install JuliaUp
[juliapkg]   (https://github.com/JuliaLang/juliaup) or Julia (https://julialang.org/downloads)
[juliapkg]   yourself.
[juliapkg] Downloading Julia from https://julialang-s3.julialang.org/bin/mac/aarch64/1.8/julia-1.8.5-macaarch64.dmg
             downloaded 17.6 MB of 103.3 MB
             downloaded 44.2 MB of 103.3 MB
             downloaded 70.2 MB of 103.3 MB
             downloaded 94.6 MB of 103.3 MB
             download complete
[juliapkg] Verifying download
[juliapkg] Installing Julia 1.8.5 to /Users/ohad/repos/ml-builder/ml-e2e/.venv/julia_env/pyjuliapkg/install
[juliapkg] Using Julia 1.8.5 at /Users/ohad/repos/ml-builder/ml-e2e/.venv/julia_env/pyjuliapkg/install/bin/julia
[juliapkg] Using Julia project at /Users/ohad/repos/ml-builder/ml-e2e/.venv/julia_env
[juliapkg] Installing packages:
           julia> import Pkg
           julia> Pkg.add([Pkg.PackageSpec(name="PythonCall", uuid="6099a3de-0909-46bc-b1f4-468b9a2dfc0d")])
           julia> Pkg.resolve()
  Installing known registries into `~/.julia`
    Updating registry at `~/.julia/registries/General.toml`
   Resolving package versions...
   Installed TableTraits ───────────────── v1.0.1
   Installed JSON3 ─────────────────────── v1.12.0
   Installed MicroMamba ────────────────── v0.1.12
   Installed Parsers ───────────────────── v2.5.3
   Installed Scratch ───────────────────── v1.1.1
   Installed Tables ────────────────────── v1.10.0
   Installed Preferences ───────────────── v1.3.0
   Installed DataAPI ───────────────────── v1.14.0
   Installed micromamba_jll ────────────── v1.0.0+0
   Installed DataValueInterfaces ───────── v1.0.0
   Installed IteratorInterfaceExtensionsv1.0.0
   Installed Pidfile ───────────────────── v1.3.0
   Installed PythonCall ────────────────── v0.9.10
   Installed OrderedCollections ────────── v1.4.1
   Installed JLLWrappers ───────────────── v1.4.1
   Installed UnsafePointers ────────────── v1.0.0
   Installed CondaPkg ──────────────────── v0.2.15
   Installed StructTypes ───────────────── v1.10.0
   Installed Requires ──────────────────── v1.3.0
   Installed MacroTools ────────────────── v0.5.10
   Installed SnoopPrecompile ───────────── v1.0.3
    Updating `~/repos/ml-builder/ml-e2e/.venv/julia_env/Project.toml`
  [6099a3de] + PythonCall v0.9.10
    Updating `~/repos/ml-builder/ml-e2e/.venv/julia_env/Manifest.toml`
  [992eb4ea] + CondaPkg v0.2.15
  [9a962f9c] + DataAPI v1.14.0
  [e2d170a0] + DataValueInterfaces v1.0.0
  [82899510] + IteratorInterfaceExtensions v1.0.0
  [692b3bcd] + JLLWrappers v1.4.1
  [0f8b85d8] + JSON3 v1.12.0
  [1914dd2f] + MacroTools v0.5.10
  [0b3b1443] + MicroMamba v0.1.12
  [bac558e1] + OrderedCollections v1.4.1
  [69de0a69] + Parsers v2.5.3
  [fa939f87] + Pidfile v1.3.0
  [21216c6a] + Preferences v1.3.0
  [6099a3de] + PythonCall v0.9.10
  [ae029012] + Requires v1.3.0
  [6c6a2e73] + Scratch v1.1.1
  [66db9d55] + SnoopPrecompile v1.0.3
  [856f2bd8] + StructTypes v1.10.0
  [3783bdb8] + TableTraits v1.0.1
  [bd369af6] + Tables v1.10.0
  [e17b2a0c] + UnsafePointers v1.0.0
  [f8abcde7] + micromamba_jll v1.0.0+0
  [0dad84c5] + ArgTools v1.1.1
  [56f22d72] + Artifacts
  [2a0f44e3] + Base64
  [ade2ca70] + Dates
  [f43a241f] + Downloads v1.6.0
  [7b1f6079] + FileWatching
  [b77e0a4c] + InteractiveUtils
  [4af54fe1] + LazyArtifacts
  [b27032c2] + LibCURL v0.6.3
  [76f85450] + LibGit2
  [8f399da3] + Libdl
  [37e2e46d] + LinearAlgebra
  [56ddb016] + Logging
  [d6f4376e] + Markdown
  [a63ad114] + Mmap
  [ca575930] + NetworkOptions v1.2.0
  [44cfe95a] + Pkg v1.8.0
  [de0858da] + Printf
  [3fa0cd96] + REPL
  [9a3f8284] + Random
  [ea8e919c] + SHA v0.7.0
  [9e88b42a] + Serialization
  [6462fe0b] + Sockets
  [fa267f1f] + TOML v1.0.0
  [a4e569a6] + Tar v1.10.1
  [8dfed614] + Test
  [cf7118a7] + UUIDs
  [4ec0a83e] + Unicode
  [e66e0078] + CompilerSupportLibraries_jll v1.0.1+0
  [deac9b47] + LibCURL_jll v7.84.0+0
  [29816b5a] + LibSSH2_jll v1.10.2+0
  [c8ffd9c3] + MbedTLS_jll v2.28.0+0
  [14a3606d] + MozillaCACerts_jll v2022.2.1
  [4536629a] + OpenBLAS_jll v0.3.20+0
  [83775a58] + Zlib_jll v1.2.12+3
  [8e850b90] + libblastrampoline_jll v5.1.1+0
  [8e850ede] + nghttp2_jll v1.48.0+0
  [3f19e933] + p7zip_jll v17.4.0+0
Precompiling project...
  ✓ DataValueInterfacesZlib_jllIteratorInterfaceExtensionsDataAPIMbedTLS_jllCompilerSupportLibraries_jllUnsafePointersRequiresOrderedCollectionsTableTraitsLibSSH2_jllScratchPidfilePreferencesStructTypesSnoopPrecompileJLLWrappersTablesmicromamba_jllMacroToolsOpenBLAS_jlllibblastrampoline_jllParsersMicroMambaJSON3CondaPkgPythonCall
  27 dependencies successfully precompiled in 13 seconds
  No Changes to `~/repos/ml-builder/ml-e2e/.venv/julia_env/Project.toml`
  No Changes to `~/repos/ml-builder/ml-e2e/.venv/julia_env/Manifest.toml`
Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)
@ohadle
Copy link
Author

ohadle commented Jan 17, 2023

When I reopen Ipython and retry the command I immediately get a segfault.

@cjdoris
Copy link
Collaborator

cjdoris commented Jan 20, 2023

I've only got time to support problems using Tier 1 versions of Julia I'm afraid - whereas ARM Macs only have Tier 2 support right now. This is because the problem is likely to do with Julia itself and not PythonCall.

You could try running things in x86 mode with arch -x86_64 ... (see here: https://medium.com/swlh/run-x86-terminal-apps-like-homebrew-on-your-new-m1-mac-73bdc9b0f343)

@ohadle
Copy link
Author

ohadle commented Jan 25, 2023

Thanks!

@cjdoris cjdoris closed this as completed Feb 28, 2023
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

2 participants