Comments (6)
@liudaotan Is your Mac M1 chip or Intel core? It seems to be an architecture issue and mostly produced on new M1 Mac.
from pykale.
@pz-white Could you look into this issue on MacOS to see how to resolve the issue? Thanks.
from pykale.
I have a similar issues on the same step (Mac), but every thing goes well on my windows.
The environment:
active environment : base
active env location : /opt/anaconda3
shell level : 1
user config file : /Users/liudaotan/.condarc
populated config files : /Users/liudaotan/.condarc
conda version : 4.9.2
conda-build version : 3.20.5
python version : 3.8.5.final.0
virtual packages : __osx=10.16=0
__unix=0=0
__archspec=1=x86_64
base environment : /opt/anaconda3 (writable)
channel URLs : https://repo.anaconda.com/pkgs/main/osx-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/osx-64
https://repo.anaconda.com/pkgs/r/noarch
package cache : /opt/anaconda3/pkgs
/Users/liudaotan/.conda/pkgs
envs directories : /opt/anaconda3/envs
/Users/liudaotan/.conda/envs
platform : osx-64
user-agent : conda/4.9.2 requests/2.24.0 CPython/3.8.5 Darwin/20.3.0 OSX/10.16
UID:GID : 501:20
netrc file : None
offline mode : False
- PyTorch Version (e.g., 1.0): 1.7.1
- OS (e.g., Linux): mac
- How you installed PyTorch (`conda`, `pip`, source): pip
- Build command you used (if compiling from source):
- Python version: 3.8.5
- CUDA/cuDNN version: null
- GPU models and configuration: null
- Any other relevant information:
torch-cluster 1.5.9 pypi_0 pypi
torch-geometric 1.6.3 pypi_0 pypi
torch-scatter 2.0.6 pypi_0 pypi
torch-sparse 0.6.8 pypi_0 pypi
** Stack trace/error message **
Traceback (most recent call last):
File "main.py", line 6, in <module>
from model import get_model
File "/Users/liudaotan/pykale/examples/bindingdb_deepdta/model.py", line 1, in <module>
from kale.embed.seq_nn import CNNEncoder
File "/Users/liudaotan/Desktop/pykale/kale/embed/seq_nn.py", line 7, in <module>
from torch_geometric.nn import GCNConv, global_max_pool
File "/opt/anaconda3/lib/python3.8/site-packages/torch_geometric/__init__.py", line 2, in <module>
import torch_geometric.nn
File "/opt/anaconda3/lib/python3.8/site-packages/torch_geometric/nn/__init__.py", line 2, in <module>
from .data_parallel import DataParallel
File "/opt/anaconda3/lib/python3.8/site-packages/torch_geometric/nn/data_parallel.py", line 5, in <module>
from torch_geometric.data import Batch
File "/opt/anaconda3/lib/python3.8/site-packages/torch_geometric/data/__init__.py", line 1, in <module>
from .data import Data
File "/opt/anaconda3/lib/python3.8/site-packages/torch_geometric/data/data.py", line 8, in <module>
from torch_sparse import coalesce, SparseTensor
File "/opt/anaconda3/lib/python3.8/site-packages/torch_sparse/__init__.py", line 12, in <module>
torch.ops.load_library(importlib.machinery.PathFinder().find_spec(
File "/opt/anaconda3/lib/python3.8/site-packages/torch/_ops.py", line 105, in load_library
ctypes.CDLL(path)
File "/opt/anaconda3/lib/python3.8/ctypes/__init__.py", line 381, in __init__
self._handle = _dlopen(self._name, mode)
OSError: dlopen(/opt/anaconda3/lib/python3.8/site-packages/torch_sparse/_version.so, 6): no suitable image found. Did find:
/opt/anaconda3/lib/python3.8/site-packages/torch_sparse/_version.so: mach-o, but wrong architecture
/opt/anaconda3/lib/python3.8/site-packages/torch_sparse/_version.so: mach-o, but wrong architecture
from pykale.
@liu-mei-chen, do you have multiple pytorch packages? The error seems that the libtorch_cpu.dylib in torch cannot be loaded.
from pykale.
@liudaotan Is your Mac M1 chip or Intel core? It seems to be an architecture issue and mostly produced on new M1 Mac.
Yes, you are right, my Mac is m1 chip.
from pykale.
@liu-mei-chen, do you have multiple pytorch packages? The error seems that the libtorch_cpu.dylib in torch cannot be loaded.
yeah, I installed pytorch twice, although only one version was shown. I had recreated the environment, everything is working now. Thank you
from pykale.
Related Issues (20)
- PyTorch 2.0 HOT 1
- [Bug] Error raised by version mismatch between PyTorch and Lightning while running tutorial HOT 2
- [Bug] Error raised rdkit from kale\prepdata\chem_transform.py on windows, python 3.10 (with ubuntu no error)
- [Bug] Error raised by 'np.float' which was a deprecated alias for the builtin 'float'.
- Merging all the cnn modules such as seq_nn.py, attention_cnn.py into one cnn.py module
- Refactor QBin to be one level up from Pykale repo, under the pykale umbrella HOT 2
- [Refactor] Considering the incorporation of the OneHotEncoder from scikit-learn into PyKale HOT 3
- [Refactor] Merge all evaluation metrics into one module HOT 3
- [Feature Request] Consider input parameter validation in PyKale
- [Refactor] Merge modules `losses`, `distance`, and `metrics` to one HOT 8
- Changelog workflow runs failed
- Support to load parameters from a saved checkpoint HOT 1
- Quantile Binning Refactor HOT 7
- [Refactor] Let one config file contain all hyperparameters. HOT 3
- [Bug] Testing data is downloaded into different directory paths
- [Feature Request] Optimizing functional test time with pytest-testmon HOT 1
- Incorrect loss and accuracy found in the digit_dann example
- [Refactor] GitHub actions caching HOT 1
- Module visibility issues
- [Refactor] Modifying add_protonet PR to align with the demo data download separation. HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pykale.