Skip to content
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 error #426

Open
yizhihenpidehou opened this issue Apr 8, 2023 · 1 comment
Open

import error #426

yizhihenpidehou opened this issue Apr 8, 2023 · 1 comment

Comments

@yizhihenpidehou
Copy link

📚 Installation

Environment

  • OS: mac os 12.5 (21G72)
  • Python version: 3.9
  • PyTorch version: 2.0.0
  • CUDA/cuDNN version: none
  • How did you try to install CogDL (wheel, source): wheel
  • Any other relevant information:

Checklist

  • [yes ] I followed the installation guide.
  • [ I do not have CUDA in my MacBook pro] I set up CUDA correctly.
  • [ No] I do have multiple CUDA versions on my machine.
    Error information:

import subprocess
subprocess.check_output(["hipconfig", "--rocmpath"])

Additional context

Traceback (most recent call last):
File "", line 1, in
File "/Users/yizhihenpidehou/miniconda3/envs/env_eg/lib/python3.9/subprocess.py", line 424, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/Users/yizhihenpidehou/miniconda3/envs/env_eg/lib/python3.9/subprocess.py", line 505, in run
with Popen(*popenargs, **kwargs) as process:
File "/Users/yizhihenpidehou/miniconda3/envs/env_eg/lib/python3.9/subprocess.py", line 951, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/Users/yizhihenpidehou/miniconda3/envs/env_eg/lib/python3.9/subprocess.py", line 1821, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
NotADirectoryError: [Errno 20] Not a directory: 'hipconfig'

import cogdl
Traceback (most recent call last):
File "", line 1, in
File "/Users/yizhihenpidehou/miniconda3/envs/env_eg/lib/python3.9/site-packages/cogdl/init.py", line 3, in
from .experiments import experiment
File "/Users/yizhihenpidehou/miniconda3/envs/env_eg/lib/python3.9/site-packages/cogdl/experiments.py", line 15, in
from cogdl.utils import set_random_seed, tabulate_results
File "/Users/yizhihenpidehou/miniconda3/envs/env_eg/lib/python3.9/site-packages/cogdl/utils/init.py", line 1, in
from .utils import *
File "/Users/yizhihenpidehou/miniconda3/envs/env_eg/lib/python3.9/site-packages/cogdl/utils/utils.py", line 16, in
from .graph_utils import coo2csr_index
File "/Users/yizhihenpidehou/miniconda3/envs/env_eg/lib/python3.9/site-packages/cogdl/utils/graph_utils.py", line 7, in
from cogdl.operators.sample import coo2csr_cpu, coo2csr_cpu_index
File "/Users/yizhihenpidehou/miniconda3/envs/env_eg/lib/python3.9/site-packages/cogdl/operators/sample.py", line 2, in
from torch.utils.cpp_extension import load
File "/Users/yizhihenpidehou/miniconda3/envs/env_eg/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 19, in
from .hipify import hipify_python
File "/Users/yizhihenpidehou/miniconda3/envs/env_eg/lib/python3.9/site-packages/torch/utils/hipify/hipify_python.py", line 34, in
from .cuda_to_hip_mappings import CUDA_TO_HIP_MAPPINGS
File "/Users/yizhihenpidehou/miniconda3/envs/env_eg/lib/python3.9/site-packages/torch/utils/hipify/cuda_to_hip_mappings.py", line 34, in
rocm_path = subprocess.check_output(["hipconfig", "--rocmpath"]).decode("utf-8")
File "/Users/yizhihenpidehou/miniconda3/envs/env_eg/lib/python3.9/subprocess.py", line 424, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/Users/yizhihenpidehou/miniconda3/envs/env_eg/lib/python3.9/subprocess.py", line 505, in run
with Popen(*popenargs, **kwargs) as process:
File "/Users/yizhihenpidehou/miniconda3/envs/env_eg/lib/python3.9/subprocess.py", line 951, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/Users/yizhihenpidehou/miniconda3/envs/env_eg/lib/python3.9/subprocess.py", line 1821, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
NotADirectoryError: [Errno 20] Not a directory: 'hipconfig'

@cenyk1230
Copy link
Member

Hi @yizhihenpidehou ,

抱歉,我们没有对mac os做深入的测试。不知道你能否新建一个PyTorch 1.x的环境再尝试一下,看起来是PyTorch的问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants