tonybaloney / Pyjion

Pyjion - A JIT for Python based upon CoreCLR
https://www.trypyjion.com
MIT License
1.42k stars 59 forks source link

ImportError using Pyjion 1.2.6 #477

Open smitht06 opened 2 years ago

smitht06 commented 2 years ago

Hi,

I saw others had this error and it was reported to be fixed in 1.2.2 but i am still getting it. I have MACOS 12.2 running M1 Pro:

pyjion Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyjion/init.py", line 90, in from ._pyjion import ( ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyjion/_pyjion.cpython-310-darwin.so, 0x0002): symbol not found in flat namespace '_getJit'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.10/bin/pyjion", line 5, in from pyjion.main import main File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyjion/init.py", line 106, in raise ImportError( ImportError: Failed to import the compiled Pyjion module (/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyjion/_pyjion.cpython-310-darwin.so). This normally means something went wrong during pip install and the binaries weren't compiled. Make sure you update pip before installing to get the right wheel. If that doesn't work, run pip in verbose mode, or file an issue at https://github.com/tonybaloney/pyjion/.

tonybaloney commented 2 years ago

Hi, this is actually a different issue. Which version of .net do you have installed?

smitht06 commented 2 years ago

6.0.101

Eureka-0 commented 2 years ago

I had .net6 and python3.10.2 and I used pip install pyjion. Then I encountered the same problem. Have you solved it?

gtmtg commented 2 years ago

Same issue here - installing through poetry

david-tao-as01 commented 2 years ago

Same issue here using pyjion 1.2.6 with python 3.10.4 and .net 6.0.103

SichangHe commented 2 years ago

Same issue with pip 22.2.2.

GoEdgar commented 1 year ago

Have the same issue on Mac M1 with pyjion 2.0.0 and .NET 7