Open sammarfy opened 4 years ago
Seems to be caused by the recent numba
version. It may help to install an earlier release, e.g. numba==0.50.1
.
Update the pip
version to 20.3.3
, it works for me.
The reason it comes from numba
Hi, I am getting the same errors when trying to get lastest version of torch_geometric. I followed your comments and now I am getting the following. I hope you can help!
Thanks
`Traceback (most recent call last):
File "/tmp/pip-build-pwlo09e3/llvmlite/ffi/build.py", line 191, in
error: command '/home/pgd721/work/my_env_research/bin/python3' failed with exit status 1
Failed building wheel for llvmlite running build [0/1874] got version from file /tmp/pip-build-pwlo09e3/llvmlite/llvmlite/_version.py {'version': '0.35.0', 'ful l': 'ea23b026930cc00824c907172383f54c9d438e6b'} running build_ext /home/pgd721/work/my_env_research/bin/python3 /tmp/pip-build-pwlo09e3/llvmlite/ffi/build.py LLVM version... 6.0.0
Traceback (most recent call last):
File "/tmp/pip-build-pwlo09e3/llvmlite/ffi/build.py", line 191, in <module>
main()
File "/tmp/pip-build-pwlo09e3/llvmlite/ffi/build.py", line 181, in main
main_posix('linux', '.so')
File "/tmp/pip-build-pwlo09e3/llvmlite/ffi/build.py", line 143, in main_posix
raise RuntimeError(msg)
RuntimeError: Building llvmlite requires LLVM 10.0.x or 9.0.x, got '6.0.0'. Be sure to set LLVM_CONFIG
to the right executable path. Read the documentation at http://llvmlite.pydata.org/ for more information about building llvmlite.
error: command '/home/pgd721/work/my_env_research/bin/python3' failed with exit status 1
----------------------------------------
Rolling back uninstall of llvmlite Found existing installation: rdflib 4.2.2 Uninstalling rdflib-4.2.2: Successfully uninstalled rdflib-4.2.2 Found existing installation: pytz 2019.1 Uninstalling pytz-2019.1: Successfully uninstalled pytz-2019.1 Found existing installation: python-dateutil 2.8.0 Uninstalling python-dateutil-2.8.0: Successfully uninstalled python-dateutil-2.8.0 Found existing installation: pandas 0.24.2 Uninstalling pandas-0.24.2: Successfully uninstalled pandas-0.24.2 Found existing installation: Jinja2 2.10.1 Uninstalling Jinja2-2.10.1: Successfully uninstalled Jinja2-2.10.1 Found existing installation: llvmlite 0.33.0 Uninstalling llvmlite-0.33.0: Successfully uninstalled llvmlite-0.33.0 Running setup.py install for llvmlite ... error Complete output from command /home/pgd721/work/my_env_research/bin/python3 -u -c "import setuptools, t okenize;file='/tmp/pip-build-pwlo09e3/llvmlite/setup.py';f=getattr(tokenize, 'open', open)(file);c ode=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/ pip-0cvcrg6m-record/install-record.txt --single-version-externally-managed --compile --install-headers /ho me/pgd721/work/my_env_research/include/site/python3.6/llvmlite: Command "/home/pgd721/work/my_env_research/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/p ip-build-pwlo09e3/llvmlite/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r \n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-0cvcrg6m-record/inst all-record.txt --single-version-externally-managed --compile --install-headers /home/pgd721/work/my_env_re search/include/site/python3.6/llvmlite" failed with error code 1 in /tmp/pip-build-pwlo09e3/llvmlite/`
Ubuntu 18.04 Python 3.6.9 GCC 8.4.0 pytorch 1.6.0 cuda 10.0 llvmlite 0.31 is already installed in the system.
maruf@dmgpu:~$ pip3 install torch-geometric Collecting torch-geometric Collecting requests (from torch-geometric) Using cached https://files.pythonhosted.org/packages/45/1e/0c169c6a5381e241ba7404532c16a21d86ab872c9bed8bdcd4c423954103/requests-2.24.0-py2.py3-none-any.whl Collecting googledrivedownloader (from torch-geometric) Using cached https://files.pythonhosted.org/packages/3a/5c/485e8724383b482cc6c739f3359991b8a93fb9316637af0ac954729545c9/googledrivedownloader-0.4-py2.py3-none-any.whl Collecting rdflib (from torch-geometric) Using cached https://files.pythonhosted.org/packages/d0/6b/6454aa1db753c0f8bc265a5bd5c10b5721a4bb24160fb4faf758cf6be8a1/rdflib-5.0.0-py3-none-any.whl Collecting networkx (from torch-geometric) Using cached https://files.pythonhosted.org/packages/9b/cd/dc52755d30ba41c60243235460961fc28022e5b6731f16c268667625baea/networkx-2.5-py3-none-any.whl Collecting numpy (from torch-geometric) Using cached https://files.pythonhosted.org/packages/b8/e5/a64ef44a85397ba3c377f6be9c02f3cb3e18023f8c89850dd319e7945521/numpy-1.19.2-cp36-cp36m-manylinux1_x86_64.whl Collecting pandas (from torch-geometric) Using cached https://files.pythonhosted.org/packages/1c/11/e1f53db0614f2721027aab297c8afd2eaf58d33d566441a97ea454541c5e/pandas-1.1.2-cp36-cp36m-manylinux1_x86_64.whl Collecting tqdm (from torch-geometric) Using cached https://files.pythonhosted.org/packages/0a/0e/ea53a3d6f1eb2cc31162c9ae89555cc26a3986e5559781f0b0df75aea5cf/tqdm-4.50.0-py2.py3-none-any.whl Collecting scikit-learn (from torch-geometric) Using cached https://files.pythonhosted.org/packages/5c/a1/273def87037a7fb010512bbc5901c31cfddfca8080bc63b42b26e3cc55b3/scikit_learn-0.23.2-cp36-cp36m-manylinux1_x86_64.whl Collecting h5py (from torch-geometric) Using cached https://files.pythonhosted.org/packages/60/06/cafdd44889200e5438b897388f3075b52a8ef01f28a17366d91de0fa2d05/h5py-2.10.0-cp36-cp36m-manylinux1_x86_64.whl Collecting ase (from torch-geometric) Using cached https://files.pythonhosted.org/packages/51/78/edadb45c7f26f8fbb99da81feadb561c26bb0393b6c5d1ac200ecdc12d61/ase-3.20.1-py3-none-any.whl Collecting jinja2 (from torch-geometric) Using cached https://files.pythonhosted.org/packages/30/9e/f663a2aa66a09d838042ae1a2c5659828bb9b41ea3a6efa20a20fd92b121/Jinja2-2.11.2-py2.py3-none-any.whl Collecting numba (from torch-geometric) Collecting torch (from torch-geometric) Using cached https://files.pythonhosted.org/packages/38/53/914885a93a44b96c0dd1c36f36ff10afe341f091230aad68f7228d61db1e/torch-1.6.0-cp36-cp36m-manylinux1_x86_64.whl Collecting scipy (from torch-geometric) Using cached https://files.pythonhosted.org/packages/2b/a8/f4c66eb529bb252d50e83dbf2909c6502e2f857550f22571ed8556f62d95/scipy-1.5.2-cp36-cp36m-manylinux1_x86_64.whl Collecting certifi>=2017.4.17 (from requests->torch-geometric) Using cached https://files.pythonhosted.org/packages/5e/c4/6c4fe722df5343c33226f0b4e0bb042e4dc13483228b4718baf286f86d87/certifi-2020.6.20-py2.py3-none-any.whl Collecting idna<3,>=2.5 (from requests->torch-geometric) Using cached https://files.pythonhosted.org/packages/a2/38/928ddce2273eaa564f6f50de919327bf3a00f091b5baba8dfa9460f3a8a8/idna-2.10-py2.py3-none-any.whl Collecting chardet<4,>=3.0.2 (from requests->torch-geometric) Using cached https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 (from requests->torch-geometric) Using cached https://files.pythonhosted.org/packages/9f/f0/a391d1463ebb1b233795cabfc0ef38d3db4442339de68f847026199e69d7/urllib3-1.25.10-py2.py3-none-any.whl Collecting pyparsing (from rdflib->torch-geometric) Using cached https://files.pythonhosted.org/packages/8a/bb/488841f56197b13700afd5658fc279a2025a39e22449b7cf29864669b15d/pyparsing-2.4.7-py2.py3-none-any.whl Collecting six (from rdflib->torch-geometric) Using cached https://files.pythonhosted.org/packages/ee/ff/48bde5c0f013094d729fe4b0316ba2a24774b3ff1c52d924a8a4cb04078a/six-1.15.0-py2.py3-none-any.whl Collecting isodate (from rdflib->torch-geometric) Using cached https://files.pythonhosted.org/packages/9b/9f/b36f7774ff5ea8e428fdcfc4bb332c39ee5b9362ddd3d40d9516a55221b2/isodate-0.6.0-py2.py3-none-any.whl Collecting decorator>=4.3.0 (from networkx->torch-geometric) Using cached https://files.pythonhosted.org/packages/ed/1b/72a1821152d07cf1d8b6fce298aeb06a7eb90f4d6d41acec9861e7cc6df0/decorator-4.4.2-py2.py3-none-any.whl Collecting pytz>=2017.2 (from pandas->torch-geometric) Using cached https://files.pythonhosted.org/packages/4f/a4/879454d49688e2fad93e59d7d4efda580b783c745fd2ec2a3adf87b0808d/pytz-2020.1-py2.py3-none-any.whl Collecting python-dateutil>=2.7.3 (from pandas->torch-geometric) Using cached https://files.pythonhosted.org/packages/d4/70/d60450c3dd48ef87586924207ae8907090de0b306af2bce5d134d78615cb/python_dateutil-2.8.1-py2.py3-none-any.whl Collecting threadpoolctl>=2.0.0 (from scikit-learn->torch-geometric) Using cached https://files.pythonhosted.org/packages/f7/12/ec3f2e203afa394a149911729357aa48affc59c20e2c1c8297a60f33f133/threadpoolctl-2.1.0-py3-none-any.whl Collecting joblib>=0.11 (from scikit-learn->torch-geometric) Using cached https://files.pythonhosted.org/packages/fc/c9/f58220ac44a1592f79a343caba12f6837f9e0c04c196176a3d66338e1ea8/joblib-0.17.0-py3-none-any.whl Collecting matplotlib>=2.0.0 (from ase->torch-geometric) Using cached https://files.pythonhosted.org/packages/cd/d6/8c4dfb23151d5a494c66ebbfdb5c8c433b44ec07fae52da5939fcda0943f/matplotlib-3.3.2-cp36-cp36m-manylinux1_x86_64.whl Collecting MarkupSafe>=0.23 (from jinja2->torch-geometric) Using cached https://files.pythonhosted.org/packages/b2/5f/23e0023be6bb885d00ffbefad2942bc51a620328ee910f64abe5a8d18dd1/MarkupSafe-1.1.1-cp36-cp36m-manylinux1_x86_64.whl Collecting llvmlite<0.35,>=0.34.0.dev0 (from numba->torch-geometric) Using cached https://files.pythonhosted.org/packages/0b/96/07bfa93a103fb9e3e9ae7f9f7c6687ae714aee66b6f3000da3fad71e0aa2/llvmlite-0.34.0.tar.gz Collecting setuptools (from numba->torch-geometric) Using cached https://files.pythonhosted.org/packages/44/a6/7fb6e8b3f4a6051e72e4e2218889351f0ee484b9ee17e995f5ccff780300/setuptools-50.3.0-py3-none-any.whl Collecting future (from torch->torch-geometric) Collecting kiwisolver>=1.0.1 (from matplotlib>=2.0.0->ase->torch-geometric) Using cached https://files.pythonhosted.org/packages/ae/23/147de658aabbf968324551ea22c0c13a00284c4ef49a77002e91f79657b7/kiwisolver-1.2.0-cp36-cp36m-manylinux1_x86_64.whl Collecting cycler>=0.10 (from matplotlib>=2.0.0->ase->torch-geometric) Using cached https://files.pythonhosted.org/packages/f7/d2/e07d3ebb2bd7af696440ce7e754c59dd546ffe1bbe732c8ab68b9c834e61/cycler-0.10.0-py2.py3-none-any.whl Collecting pillow>=6.2.0 (from matplotlib>=2.0.0->ase->torch-geometric) Using cached https://files.pythonhosted.org/packages/30/bf/92385b4262178ca22b34f82e0e09c2922eb351fe39f3cc7b8ba9ea555b41/Pillow-7.2.0-cp36-cp36m-manylinux1_x86_64.whl Building wheels for collected packages: llvmlite Running setup.py bdist_wheel for llvmlite ... error Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-9zv3ptxx/llvmlite/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/tmpjuipwi32pip-wheel- --python-tag cp36: running bdist_wheel /usr/bin/python3 /tmp/pip-build-9zv3ptxx/llvmlite/ffi/build.py LLVM version... Traceback (most recent call last): File "/tmp/pip-build-9zv3ptxx/llvmlite/ffi/build.py", line 105, in main_posix out = subprocess.check_output([llvm_config, '--version']) File "/usr/lib/python3.6/subprocess.py", line 356, in check_output *kwargs).stdout File "/usr/lib/python3.6/subprocess.py", line 423, in run with Popen(popenargs, **kwargs) as process: File "/usr/lib/python3.6/subprocess.py", line 729, in init restore_signals, start_new_session) File "/usr/lib/python3.6/subprocess.py", line 1364, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'llvm-config': 'llvm-config'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/tmp/pip-build-9zv3ptxx/llvmlite/ffi/build.py", line 191, in
main()
File "/tmp/pip-build-9zv3ptxx/llvmlite/ffi/build.py", line 181, in main
main_posix('linux', '.so')
File "/tmp/pip-build-9zv3ptxx/llvmlite/ffi/build.py", line 108, in main_posix
"to the path for llvm-config" % (llvm_config,))
RuntimeError: llvm-config failed executing, please point LLVM_CONFIG to the path for llvm-config
error: command '/usr/bin/python3' failed with exit status 1
Failed building wheel for llvmlite Running setup.py clean for llvmlite Failed to build llvmlite Installing collected packages: certifi, idna, chardet, urllib3, requests, googledrivedownloader, pyparsing, six, isodate, rdflib, decorator, networkx, numpy, pytz, python-dateutil, pandas, tqdm, threadpoolctl, scipy, joblib, scikit-learn, h5py, kiwisolver, cycler, pillow, matplotlib, ase, MarkupSafe, jinja2, llvmlite, setuptools, numba, future, torch, torch-geometric Running setup.py install for llvmlite ... error Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-9zv3ptxx/llvmlite/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-txeptqdu-record/install-record.txt --single-version-externally-managed --compile --user --prefix=: running install running build got version from file /tmp/pip-build-9zv3ptxx/llvmlite/llvmlite/_version.py {'version': '0.34.0', 'full': 'c5889c9e98c6b19d5d85ebdd982d64a03931f8e2'} running build_ext /usr/bin/python3 /tmp/pip-build-9zv3ptxx/llvmlite/ffi/build.py LLVM version... Traceback (most recent call last): File "/tmp/pip-build-9zv3ptxx/llvmlite/ffi/build.py", line 105, in main_posix out = subprocess.check_output([llvm_config, '--version']) File "/usr/lib/python3.6/subprocess.py", line 356, in check_output *kwargs).stdout File "/usr/lib/python3.6/subprocess.py", line 423, in run with Popen(popenargs, **kwargs) as process: File "/usr/lib/python3.6/subprocess.py", line 729, in init restore_signals, start_new_session) File "/usr/lib/python3.6/subprocess.py", line 1364, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'llvm-config': 'llvm-config'
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-9zv3ptxx/llvmlite/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-txeptqdu-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-9zv3ptxx/llvmlite/