Giter VIP home page Giter VIP logo

Comments (6)

peizhenbai avatar peizhenbai commented on May 20, 2024 2

@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.

haipinglu avatar haipinglu commented on May 20, 2024 1

@pz-white Could you look into this issue on MacOS to see how to resolve the issue? Thanks.

from pykale.

liudaotan avatar liudaotan commented on May 20, 2024

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.

peizhenbai avatar peizhenbai commented on May 20, 2024

@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 avatar liudaotan commented on May 20, 2024

@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 avatar liu-mei-chen commented on May 20, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.