JuliaPy / JuliaPy/PyCall.jl

Specifying a pyenv virtual environment Python version fails on mac M1 due to incompatible architecture

Open
#996 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
1.5k
Forks
186
PR merge metrics
No merged PRs in 30d

Description

Hello!

I am trying to build PyCall using a pyenv virtualenv, but I get the following error from `dlopen`
```shell
could not load library ".../.pyenv/versions/3.9.10/lib/libpython3.9.dylib" (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')
```
https://github.com/JuliaPy/PyCall.jl/blob/e81f9193d607c1b7c6c53bfbec9fde0bb13b5d3f/deps/buildutils.jl#L46

Complete output:
```shell
dlopen(/Users/pierreguilmin/.pyenv/versions/3.9.10/lib/libpython3.9.dylib) ==> ErrorException("could not load library \"/Users/pierreguilmin/.pyenv/versions/3.9.10/lib/libpython3.9.dylib\"\ndlopen(/Users/pierreguilmin/.pyenv/versions/3.9.10/lib/libpython3.9.dylib, 0x0009): tried: '/Users/pierreguilmin/.pyenv/versions/3.9.10/lib/libpython3.9.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.