ROCm / tensorflow-upstream

TensorFlow ROCm port
https://tensorflow.org
Apache License 2.0
685 stars 93 forks source link

SIMPLE installation fails with setuptools related error #1343

Open gggh000 opened 3 years ago

gggh000 commented 3 years ago

Simple installation fails with setuptools error even though it is installed:

System information

pip3 install --user tensorflow-rocm --upgrade Collecting tensorflow-rocm Downloading https://files.pythonhosted.org/packages/80/01/9d2d4640f13ade200712aed598c71d9bd948474388b90057f3d7f40c9bb0/tensorflow_rocm-2.4.2-cp36-cp36m-manylinux1_x86_64.whl (335.4MB) 100% |████████████████████████████████| 335.4MB 5.0kB/s Collecting absl-py~=0.10 (from tensorflow-rocm) Downloading https://files.pythonhosted.org/packages/92/c9/ef0fae29182d7a867d203f0eff8296b60da92098cc41db33a434f4be84bf/absl_py-0.12.0-py3-none-any.whl (129kB) 100% |████████████████████████████████| 133kB 236kB/s Collecting protobuf>=3.9.2 (from tensorflow-rocm) Downloading https://files.pythonhosted.org/packages/8c/78/3bccd7f228179b382441644f1692cdce6e0f46b0422e61a39915c98b3287/protobuf-3.15.8-cp36-cp36m-manylinux1_x86_64.whl (1.0MB) 100% |████████████████████████████████| 1.0MB 100kB/s Collecting h5py~=2.10.0 (from tensorflow-rocm) Downloading https://files.pythonhosted.org/packages/60/06/cafdd44889200e5438b897388f3075b52a8ef01f28a17366d91de0fa2d05/h5py-2.10.0-cp36-cp36m-manylinux1_x86_64.whl (2.9MB) 100% |████████████████████████████████| 2.9MB 80kB/s Collecting tensorboard~=2.4 (from tensorflow-rocm) Downloading https://files.pythonhosted.org/packages/44/f5/7feea02a3fb54d5db827ac4b822a7ba8933826b36de21880518250b8733a/tensorboard-2.5.0-py3-none-any.whl (6.0MB) 100% |████████████████████████████████| 6.0MB 75kB/s Collecting tensorflow-estimator<2.5.0,>=2.4.0 (from tensorflow-rocm) Downloading https://files.pythonhosted.org/packages/74/7e/622d9849abf3afb81e482ffc170758742e392ee129ce1540611199a59237/tensorflow_estimator-2.4.0-py2.py3-none-any.whl (462kB) 100% |████████████████████████████████| 471kB 104kB/s Collecting wheel~=0.35 (from tensorflow-rocm) Downloading https://files.pythonhosted.org/packages/65/63/39d04c74222770ed1589c0eaba06c05891801219272420b40311cd60c880/wheel-0.36.2-py2.py3-none-any.whl Collecting google-pasta~=0.2 (from tensorflow-rocm) Downloading https://files.pythonhosted.org/packages/a3/de/c648ef6835192e6e2cc03f40b19eeda4382c49b5bafb43d88b931c4c74ac/google_pasta-0.2.0-py3-none-any.whl (57kB) 100% |████████████████████████████████| 61kB 116kB/s Collecting keras-preprocessing~=1.1.2 (from tensorflow-rocm) Downloading https://files.pythonhosted.org/packages/79/4c/7c3275a01e12ef9368a892926ab932b33bb13d55794881e3573482b378a7/Keras_Preprocessing-1.1.2-py2.py3-none-any.whl (42kB) 100% |████████████████████████████████| 51kB 97kB/s Collecting astunparse~=1.6.3 (from tensorflow-rocm) Downloading https://files.pythonhosted.org/packages/2b/03/13dde6512ad7b4557eb792fbcf0c653af6076b81e5941d36ec61f7ce6028/astunparse-1.6.3-py2.py3-none-any.whl Collecting wrapt~=1.12.1 (from tensorflow-rocm) Downloading https://files.pythonhosted.org/packages/82/f7/e43cefbe88c5fd371f4cf0cf5eb3feccd07515af9fd6cf7dbf1d1793a797/wrapt-1.12.1.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'setuptools'

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-28ldqx_t/wrapt/

Describe the problem

Provide the exact sequence of commands / steps that you executed before running into the problem

Any other info / logs Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

sunway513 commented 3 years ago

Hi @gggh000 , can you help provide the python3-setuptools package version on your system? Here's the version we have been using in the rocm/tensorflow docker container:

$:~/tensorflow-upstream$ drun rocm/tensorflow
root@5a78c0704eef:/root# apt --installed list | grep setuptools

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

python-setuptools/bionic,now 39.0.1-2 all [installed,automatic]
python3-setuptools/bionic,now 39.0.1-2 all [installed,automatic]
gggh000 commented 3 years ago

i retried and it is working now, not sure why it did not last time. I will do several times over again to see if i can repro.

gggh000 commented 3 years ago

python3-setuptools showing as follows. After installation of this package, tflow installation moved forward but another fail (see link below) root@nonroot-Standard-PC-i440FX-PIIX-1996:~/ROCm-4.2# dpkg -l python3-setuptools Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-=======================-================-================-==================================================== un python3-setuptools (no description available)

https://u.pcloud.link/publink/show?code=XZvLxnXZWH4PI4LjMikowHUcd1YjXRIDEz70