question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] can't install with ROCm

See original GitHub issue

It happened just during pip install for deepspeed-0.6.5:

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [8 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-ruwdavjo/deepspeed_caadfe808785436583e97206db673e2c/setup.py", line 39, in <module>
          rocm_version = OpBuilder.installed_rocm_version()
        File "/tmp/pip-install-ruwdavjo/deepspeed_caadfe808785436583e97206db673e2c/op_builder/builder.py", line 192, in installed_rocm_version
          with open('/opt/rocm/.info/version-dev', 'r') as file:
      FileNotFoundError: [Errno 2] No such file or directory: '/opt/rocm/.info/version-dev'
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

I have ROCm but it is installed into the system, not into /opt/rocm and I have no version-dev file. ROCm PyTorch is working fine. It’s Gentoo Linux.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mrwyattiicommented, Jul 19, 2022

Thanks for testing that for me. I’ll get this PR merged

0reactions
stalkergcommented, Jul 19, 2022

Also your way in PR looks like working fine:

>>> import torch
>>> torch.__version__.split("rocm")[1]
'5.1.1'
Read more comments on GitHub >

github_iconTop Results From Across the Web

error while installing ROCM in ubuntu 20.04 #1112 - GitHub
after adding the rocm repository, when i run the sudo apt get i get the error like E: Type 'gpg' is not known...
Read more >
Failed to install ROCm on Ubuntu 20.04 [closed]
I've been having the same issue as well. The only way I found to fix it is to roll back to the 5.6.0-1042-oem...
Read more >
Error installing amd rocm : r/linuxquestions - Reddit
Trying to install rocm-dkms gives me this server@server-ms-7917:~$ sudo apt install rocm-dkms Reading package lists.
Read more >
ROCm Installation v4.3 — ROCm 4.5.0 documentation
Installing a ROCm Package from a Debian Repository¶ · Run the following code to ensure that your system is up to date: ·...
Read more >
AMD ROCm Version History — ROCm 4.5.0 documentation
You can install the SQLite3 Python module using the pip utility and set env var ROCP_PYTHON_VERSION to the Python version, which includes the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found