ltechkorea / mlperf-inference

Reference implementations of MLPerf™ inference benchmarks
Other
0 stars 0 forks source link

[BUG] launchpadlib 1.10.13 requires testresources, which is not installed. #66

Closed byounghak36 closed 3 years ago

byounghak36 commented 3 years ago

Describe the bug

A clear and concise description of what the bug is.

Screenshots or Logs

If applicable, add screenshots to help explain your problem.

$ pip install tensorflow-gpu                                                                                                                                                        
Defaulting to user installation because normal site-packages is not writeable                                                                                                       
Collecting tensorflow-gpu                                                                                                                                                           
  Downloading tensorflow_gpu-2.5.0-cp38-cp38-manylinux2010_x86_64.whl (454.4 MB)                                                                                                    
     |████████████████████████████████| 454.4 MB 344 bytes/s                                                                                                                        
Collecting google-pasta~=0.2                                                                                                                                                        
  Downloading google_pasta-0.2.0-py3-none-any.whl (57 kB)                                                                                                                           
     |████████████████████████████████| 57 kB 8.1 MB/s                                                                                                                              
Collecting numpy~=1.19.2                                                                                                                                                            
  Downloading numpy-1.19.5-cp38-cp38-manylinux2010_x86_64.whl (14.9 MB)                                                                                                             
     |████████████████████████████████| 14.9 MB 1.2 MB/s                                                                                                                            
Collecting wheel~=0.35                                                                                                                                                              
  Downloading wheel-0.36.2-py2.py3-none-any.whl (35 kB)                                                                                                                             
Collecting astunparse~=1.6.3                                                                                                                                                        
  Downloading astunparse-1.6.3-py2.py3-none-any.whl (12 kB)                                                                                                                         
Collecting termcolor~=1.1.0                                                                                                                                                         
  Downloading termcolor-1.1.0.tar.gz (3.9 kB)                                                                                                                                       
Collecting wrapt~=1.12.1                                                                                                                                                            
  Downloading wrapt-1.12.1.tar.gz (27 kB)                                                                                                                                           
Requirement already satisfied: absl-py~=0.10 in ./.local/lib/python3.8/site-packages (from tensorflow-gpu) (0.13.0)                                                                 
Collecting opt-einsum~=3.3.0                                                                                                                                                        
  Downloading opt_einsum-3.3.0-py3-none-any.whl (65 kB)                                                                                                                             
     |████████████████████████████████| 65 kB 6.2 MB/s                                                                                                                              
Collecting tensorboard~=2.5                                                                                                                                                         
  Downloading tensorboard-2.5.0-py3-none-any.whl (6.0 MB)                                                                                                                           
     |████████████████████████████████| 6.0 MB 8.4 MB/s                                                                                                                             
Collecting tensorflow-estimator<2.6.0,>=2.5.0rc0                                                                                                                                    
  Downloading tensorflow_estimator-2.5.0-py2.py3-none-any.whl (462 kB)                                                                                                              
     |████████████████████████████████| 462 kB 9.2 MB/s                                                                                                                             
Collecting six~=1.15.0                                                                                                                                                              
  Downloading six-1.15.0-py2.py3-none-any.whl (10 kB)                                                                                                                               
Collecting grpcio~=1.34.0                                                                                                                                                           
  Downloading grpcio-1.34.1-cp38-cp38-manylinux2014_x86_64.whl (4.0 MB)                                                                                                             
     |████████████████████████████████| 4.0 MB 9.1 MB/s                                                                                                                             
Collecting h5py~=3.1.0                                                                                                                                                              
  Downloading h5py-3.1.0-cp38-cp38-manylinux1_x86_64.whl (4.4 MB)                                                                                                                   
     |████████████████████████████████| 4.4 MB 9.5 MB/s                                                                                                                             
Collecting typing-extensions~=3.7.4                                                                                                                                                 
  Downloading typing_extensions-3.7.4.3-py3-none-any.whl (22 kB)                                                                                                                    
Collecting keras-nightly~=2.5.0.dev                                                                                                                                                 
  Downloading keras_nightly-2.5.0.dev2021032900-py2.py3-none-any.whl (1.2 MB)                                                                                                       
     |████████████████████████████████| 1.2 MB 9.4 MB/s                                                                                                                             
Collecting gast==0.4.0                                                                                                                                                              
  Downloading gast-0.4.0-py3-none-any.whl (9.8 kB)                                                                                                                                  
Collecting keras-preprocessing~=1.1.2                                                                                                                                               
  Downloading Keras_Preprocessing-1.1.2-py2.py3-none-any.whl (42 kB)                                                                                                                
     |████████████████████████████████| 42 kB 3.3 MB/s                                                                                                                              
Collecting flatbuffers~=1.12.0                                                                                                                                                      
  Downloading flatbuffers-1.12-py2.py3-none-any.whl (15 kB)                                                                                                                         
Collecting protobuf>=3.9.2                                                                                                                                                          
  Downloading protobuf-3.17.3-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.0 MB)                                                                                         
     |████████████████████████████████| 1.0 MB 9.3 MB/s                                                                                                                             
Requirement already satisfied: requests<3,>=2.21.0 in /usr/lib/python3/dist-packages (from tensorboard~=2.5->tensorflow-gpu) (2.22.0)                                               
Collecting tensorboard-plugin-wit>=1.6.0                                                                                                                                            
  Downloading tensorboard_plugin_wit-1.8.0-py3-none-any.whl (781 kB)                                                                                                                
     |████████████████████████████████| 781 kB 9.0 MB/s                                                                                                                             
Requirement already satisfied: setuptools>=41.0.0 in /usr/lib/python3/dist-packages (from tensorboard~=2.5->tensorflow-gpu) (45.2.0)                                                
Requirement already satisfied: markdown>=2.6.8 in /usr/lib/python3/dist-packages (from tensorboard~=2.5->tensorflow-gpu) (3.1.1)                                                    
Collecting google-auth<2,>=1.6.3                                                                                                                                                    
  Downloading google_auth-1.32.1-py2.py3-none-any.whl (147 kB)                                                                                                                      
     |████████████████████████████████| 147 kB 9.5 MB/s                                                                                                                             
Collecting tensorboard-data-server<0.7.0,>=0.6.0                                                                                                                                    
  Downloading tensorboard_data_server-0.6.1-py3-none-manylinux2010_x86_64.whl (4.9 MB)                                                                                              
     |████████████████████████████████| 4.9 MB 8.7 MB/s                                                                                                                             
Collecting werkzeug>=0.11.15                                                                                                                                                        
  Downloading Werkzeug-2.0.1-py3-none-any.whl (288 kB)                                                                                                                              
     |████████████████████████████████| 288 kB 8.4 MB/s                                                                                                                             
Collecting google-auth-oauthlib<0.5,>=0.4.1                                                                                                                                         
  Downloading google_auth_oauthlib-0.4.4-py2.py3-none-any.whl (18 kB)                                                                                                               
Collecting cachetools<5.0,>=2.0.0                                                                                                                                                   
  Downloading cachetools-4.2.2-py3-none-any.whl (11 kB)                                                                                                                             
Requirement already satisfied: pyasn1-modules>=0.2.1 in /usr/lib/python3/dist-packages (from google-auth<2,>=1.6.3->tensorboard~=2.5->tensorflow-gpu) (0.2.1)                       
Collecting rsa<5,>=3.1.4                                                                                                                                                            
  Downloading rsa-4.7.2-py3-none-any.whl (34 kB)                                                                                                                                    
Collecting requests-oauthlib>=0.7.0                                                                                                                                                 
  Downloading requests_oauthlib-1.3.0-py2.py3-none-any.whl (23 kB)                                                                                                                  
Requirement already satisfied: oauthlib>=3.0.0 in /usr/lib/python3/dist-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib<0.5,>=0.4.1->tensorboard~=2.5->tensorflow-gpu)
 (3.1.0)                                                                                                                                                                            
Requirement already satisfied: pyasn1>=0.1.3 in /usr/lib/python3/dist-packages (from rsa<5,>=3.1.4->google-auth<2,>=1.6.3->tensorboard~=2.5->tensorflow-gpu) (0.4.2)                
Building wheels for collected packages: termcolor, wrapt                                                                                                                            
  Building wheel for termcolor (setup.py) ... done                                                                                                                                  
  Created wheel for termcolor: filename=termcolor-1.1.0-py3-none-any.whl size=4830 sha256=005a8af76eca92a1511f49c40ff5a70d6bb720b9aa0a52fe6de2fb78539ac1ec                          
  Stored in directory: /home/tanssg/.cache/pip/wheels/a0/16/9c/5473df82468f958445479c59e784896fa24f4a5fc024b0f501                                                                   
  Building wheel for wrapt (setup.py) ... done                                                                                                                                      
  Created wheel for wrapt: filename=wrapt-1.12.1-cp38-cp38-linux_x86_64.whl size=78560 sha256=824a5cc982ed19c45e0948ab2e9973a112fa969ea29782067b7c0cd8541a0d45                      
  Stored in directory: /home/tanssg/.cache/pip/wheels/5f/fd/9e/b6cf5890494cb8ef0b5eaff72e5d55a70fb56316007d6dfe73                                                                   
Successfully built termcolor wrapt                                                                                                                                                  
Installing collected packages: six, rsa, cachetools, requests-oauthlib, google-auth, wheel, werkzeug, tensorboard-plugin-wit, tensorboard-data-server, protobuf, numpy, grpcio, goog
le-auth-oauthlib, wrapt, typing-extensions, termcolor, tensorflow-estimator, tensorboard, opt-einsum, keras-preprocessing, keras-nightly, h5py, google-pasta, gast, flatbuffers, ast
unparse, tensorflow-gpu                                                                                                                                                             
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.      
launchpadlib 1.10.13 requires testresources, which is not installed.                                                                                                                
Successfully installed astunparse-1.6.3 cachetools-4.2.2 flatbuffers-1.12 gast-0.4.0 google-auth-1.32.1 google-auth-oauthlib-0.4.4 google-pasta-0.2.0 grpcio-1.34.1 h5py-3.1.0 keras
-nightly-2.5.0.dev2021032900 keras-preprocessing-1.1.2 numpy-1.19.5 opt-einsum-3.3.0 protobuf-3.17.3 requests-oauthlib-1.3.0 rsa-4.7.2 six-1.15.0 tensorboard-2.5.0 tensorboard-data
-server-0.6.1 tensorboard-plugin-wit-1.8.0 tensorflow-estimator-2.5.0 tensorflow-gpu-2.5.0 termcolor-1.1.0 typing-extensions-3.7.4.3 werkzeug-2.0.1 wheel-0.36.2 wrapt-1.12.1       

Possible Solution

  1. launchpadlib 1.10.13 이 필요하지 않은 lib라면 설치하지 않을예정
  2. 아래 링크와같이 python 재설치 필요 https://gist.github.com/y56/0540d22a1db40dacc7fbbb93c866821e
  3. 또는 로컬에서 실행하지않고 이미 tensorflow가 설치되어있는 도커에서 실행해도 문제없음
byounghak36 commented 3 years ago
byounghak36 commented 3 years ago

아래 명령어를 실행하여 testresources를 설치하고 문제해결

pip install testresources