Closed ChrisOMills closed 7 months ago
Same here
I'm looking into this... I've been seeing this dlopen
error for MacOS >14.2.1...
We've seen this problem on the CI pipeline too but haven't yet been able to reproduce it locally, @ogencoglu what CPU and OS are you on?
I also have seen this documented in very very few places, one of the only others is in an issue report in the LIEF project
We've seen this problem on the CI pipeline too but haven't yet been able to reproduce it locally, @ogencoglu what CPU and OS are you on?
MacBook Pro M2
As it turns out, the issue is that you need Xcode >= 15.3 when running on MacOS > 14.2, and that's not default on the GitHub runners. I'll make a new release for this fix.
Looks like an error was introduced for MacOS with version 1.5.40. Running vision 1.5.39 works fine on my Mac with a M3 processor, but 1.5.40 give the following error:
(scs-soc-workflow-py3.12) chrismills@Chriss-MacBook-Pro scs-soc-workflow % scalene
from scalene.main import main
File "/Users/chrismills/Library/Caches/pypoetry/virtualenvs/scs-soc-workflow-ypgl0ILn-py3.12/lib/python3.12/site-packages/scalene/main.py", line 4, in
from scalene import scalene_profiler
File "/Users/chrismills/Library/Caches/pypoetry/virtualenvs/scs-soc-workflow-ypgl0ILn-py3.12/lib/python3.12/site-packages/scalene/scalene_profiler.py", line 82, in
from scalene.scalene_json import ScaleneJSON
File "/Users/chrismills/Library/Caches/pypoetry/virtualenvs/scs-soc-workflow-ypgl0ILn-py3.12/lib/python3.12/site-packages/scalene/scalene_json.py", line 17, in
from scalene.crdp import rdp
ImportError: dlopen(/Users/chrismills/Library/Caches/pypoetry/virtualenvs/scs-soc-workflow-ypgl0ILn-py3.12/lib/python3.12/site-packages/scalene/crdp.abi3.so, 0x0002): bad bind opcode 0x00
Traceback (most recent call last): File "/Users/chrismills/Library/Caches/pypoetry/virtualenvs/scs-soc-workflow-ypgl0ILn-py3.12/bin/scalene", line 5, in
Discussed in https://github.com/plasma-umass/scalene/discussions/820