Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Can't import Julia.Main due to architecture (M1 vs Intel)

Đang mở
#532 9 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
api

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện lỗi tại from julia import Main và kiểm tra kiến trúc được báo cáo bởi lỗi dlopen cùng với đầu ra của julia.install(). Được xem là hoàn tất khi việc import hoạt động với các bản cài đặt Julia và Python được báo cáo trên Apple M1, đồng thời sự không tương thích về kiến trúc đã được giải quyết hoặc chẩn đoán rõ ràng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Hi,
I'm trying to get pyjulia up and running but coming across the following issues. Any help would be appreciated.
I have installed both Julia (1.9.1) and Python (3.10) for M1 chip. I will give the output from Julia.install() below.
When I try to run:
from julia import Main

I get the following error:
OSError: dlopen(/Applications/Julia-1.9.app/Contents/Resources/julia/lib/libjulia.1.9.dylib, 0x000A): tried: '/Applications/Julia-1.9.app/Contents/Resources/julia/lib/libjulia.1.9.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Julia-1.9.app/Contents/Resources/julia/lib/libjulia.1.9.dylib' (no such file), '/Applications/Julia-1.9.app/Contents/Resources/julia/lib/libjulia.1.9.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))

My output from julia.install()

import julia
julia.install()
[ Info: Julia version info
Julia Version 1.9.1
Commit 147bdf428cd (2023-06-07 08:27 UTC)
Platform Info:
  OS: macOS (arm64-apple-darwin22.4.0)
  uname: Darwin 22.5.0 Darwin Kernel Version 22.5.0: Mon Apr 24 20:52:24 PDT 2023; root:xnu-8796.121.2~5/RELEASE_ARM64_T6000 x86_64 i386
  CPU: Apple M1 Pro: 
                 speed         user         nice          sys         idle          irq
       #1-10  2400 MHz     178375 s          0 s     105677 s    2108381 s          0 s
  Memory: 32.0 GB (327.453125 MB free)
  Uptime: 23966.0 sec
  Load Avg:  2.11083984375  2.26953125  2.78369140625
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-14.0.6 (ORCJIT, apple-m1)
  Threads: 1 on 8 virtual cores
Environment:
  PATH = /Users/m0a0hd6/Desktop/Ambient_Transition_Project/Julia_JuMP_Exploration/venv/bin:/Users/m0a0hd6/opt/anaconda3/bin:/Users/m0a0hd6/opt/anaconda3/condabin:/Applications/CPLEX_Studio_Beta211/cplex/bin/x86-64_osx:/opt/homebrew/bin:/opt/homebrew/sbin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/Library/Frameworks/Python.framework/Versions/3.8/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin:/usr/local/munki:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin
  MANPATH = /opt/homebrew/share/man::
  HOMEBREW_PREFIX = /opt/homebrew
  HOMEBREW_REPOSITORY = /opt/homebrew
  INFOPATH = /opt/homebrew/share/info:
  PYTHONPATH = /Applications/PyCharm CE.app/Contents/plugins/python-ce/helpers/third_party/thriftpy:/Applications/PyCharm CE.app/Contents/plugins/python-ce/helpers/pydev
  HOMEBREW_CELLAR = /opt/homebrew/Cellar
  XPC_FLAGS = 0x0
  HOME = /Users/m0a0hd6
[ Info: Julia executable: /Applications/Julia-1.9.app/Contents/Resources/julia/bin/julia
[ Info: Trying to import PyCall...
┌ Info: PyCall is already installed and compatible with Python executable.
│ 
│ PyCall:
│     python: /Users/m0a0hd6/Desktop/Ambient_Transition_Project/Julia_JuMP_Exploration/venv/bin/python
│     libpython: /Library/Frameworks/Python.framework/Versions/3.10/Python
│ Python:
│     python: /Users/m0a0hd6/Desktop/Ambient_Transition_Project/Julia_JuMP_Exploration/venv/bin/python
└     libpython: /Library/Frameworks/Python.framework/Versions/3.10/Python

Ngôn ngữ chính
Python
Star
893
Fork
101
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của JuliaPy/pyjulia

Tất cả issue của JuliaPy/pyjulia

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.