-
Notifications
You must be signed in to change notification settings - Fork 42
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
import pyg_lib
fails due to OSError: dlopen ... (no such file, not in dyld cache)
on macOS
#217
Comments
Turns out a (partial) solution is available in the pytorch_geometric repo, which is simply uninstalling pyg-lib: pyg-team/pytorch_geometric#6530 (comment). Nevertheless keeping this issue open as this is likely to be undesirable behavior. |
Please see my comment in #211 (comment). |
That didn't work unfortunately, but I managed to resolve the issues by reinstalling all packages from source. I think that way it updates the
|
I hit the same issue today :( I tried many different things, but in all scenarios the final binary was searching for a Python folder in |
import pyg_lib
fails due to OSError: dlopen ... (no such file, not in dyld cache)
on macOS
It seems that even installing from Python official solves it, but the error message changes somewhat @rusty1s.
It seems that is still expecting packages elsewhere. I'm running this on M3 Pro Mac, using Python3.11.8, torch 2.3.0, torch_geometric >=2.5.3. Do you have any other proposal, please? |
🐛 Describe the bug
I'm unable to get pyg-lib to import on my Mac. It seems to affect both Intel and M1 Macs (I'm on an Intel, but an M1 user reported the same issue: #211 (comment)). The original issue in the thread may not be relevant, thus I'm opening a new issue.
Minimal example is simply importing pyg_lib:
In my case, I was importing
torch_geometric.graphgym.config
, resulting in the following stack trace:Environment
pyg-lib
version: 0.1.0/latest from source(0.1.0+pt113)pyg-lib
(conda
,pip
, source): Both, see belowThings I've tried:
The text was updated successfully, but these errors were encountered: