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

RequestsDependencyWarning: urllib3 (1.25.11) or chardet (3.0.4) doesn't match a supported version! #121

Open
sykim-etri opened this issue Apr 11, 2021 · 0 comments
Labels

Comments

@sykim-etri
Copy link
Member

  • 증상
    cb-operator 실행시 python 패키지(urllib3 or chardet) 관련하여 정상적으로 실행되지 않는 오류가 발생하였습니다.

  • 환경

$ cat os-release                                                                                                                                                                                                                                                                        [10:10:06] 
NAME="Ubuntu"
VERSION="18.04.4 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.4 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic
$ uname -a                                                                                                                                                                                                                                                                              [10:11:52] 
Linux develop 4.15.0-126-generic #129-Ubuntu SMP Mon Nov 23 18:53:38 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
  • 로그
$ ./operator run
CB_OPERATOR_MODE file does not exist.                                                                                                                                                                                                                                                               
                                                                                                                                                                                                                                                                                                    
[Options]                                                                                                                                                                                                                                                                                           
1: Docker Compose environment (Requires Docker and Docker Compose)                                                                                                                                                                                                                                  
2: Kubernetes environment (Requires Kubernetes cluster with Helm 3)                                                                                                                                                                                                                                 
                                                                                                                                                                                                                                                                                                    
Choose 1 or 2: 1                                                                                                                                                                                                                                                                                    
[1: Docker Compose environment (Requires Docker and Docker Compose)] selected.                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                    
CB_OPERATOR_MODE is set to: DockerCompose                                                                                                                                                                                                                                                           
To change CB_OPERATOR_MODE, just delete the CB_OPERATOR_MODE file and re-run the cb-operator.                                                                                                                                                                                                       
CB_OPERATOR_MODE: DockerCompose                                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                                                    
[Setup and Run Cloud-Barista]                                                                                                                                                                                                                                                                       
                                                                                                                                                                                                                                                                                                    
[Config path] ../docker-compose-mode-files/docker-compose.yaml                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                    
[sudo] password for xxx:                                                                                                                                                                                                                                                                          
/usr/lib/python2.7/dist-packages/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.25.11) or chardet (3.0.4) doesn't match a supported version!                                                                                                                                        
  RequestsDependencyWarning)                                                                                                                                                                                                                                                                        
Traceback (most recent call last):                                                                                                                                                                                                                                                                  
  File "/usr/bin/docker-compose", line 11, in <module>                                                                                                                                                                                                                                              
    load_entry_point('docker-compose==1.17.1', 'console_scripts', 'docker-compose')()                                                                                                                                                                                                               
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 480, in load_entry_point                                                                                                                                                                                                  
    return get_distribution(dist).load_entry_point(group, name)                                                                                                                                                                                                                                     
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2693, in load_entry_point                                                                                                                                                                                                 
    return ep.load()                                                                                                                                                                                                                                                                                
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2324, in load                                                                                                                                                                                                             
    return self.resolve()                                                                                                                                                                                                                                                                           
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2330, in resolve                                                                                                                                                                                                          
    module = __import__(self.module_name, fromlist=['__name__'], level=0)                                                                                                                                                                                                                           
  File "/usr/lib/python2.7/dist-packages/compose/cli/main.py", line 17, in <module>                                                                                                                                                                                                                 
    from . import errors                                                                                                                                                                                                                                                                            
  File "/usr/lib/python2.7/dist-packages/compose/cli/errors.py", line 11, in <module>                                                                                                                                                                                                               
    from docker.errors import APIError                                                                                                                                                                                                                                                              
  File "/usr/lib/python2.7/dist-packages/docker/__init__.py", line 2, in <module>                                                                                                                                                                                                                   
    from .api import APIClient                                                                                                                                                                                                                                                                      
  File "/usr/lib/python2.7/dist-packages/docker/api/__init__.py", line 2, in <module>                                                                                                                                                                                                               
    from .client import APIClient                                                                                                                                                                                                                                                                   
  File "/usr/lib/python2.7/dist-packages/docker/api/client.py", line 6, in <module>                                                                                                                                                                                                                 
    import requests                                                                                                                                                                                                                                                                                 
  File "/usr/lib/python2.7/dist-packages/requests/__init__.py", line 97, in <module>                                                                                                                                                                                                                
    from . import utils                                                                                                                                                                                                                                                                             
  File "/usr/lib/python2.7/dist-packages/requests/utils.py", line 26, in <module>                                                                                                                                                                                                                   
    from ._internal_utils import to_native_string                                                                                                                                                                                                                                                   
  File "/usr/lib/python2.7/dist-packages/requests/_internal_utils.py", line 11, in <module>                                                                                                                                                                                                         
    from .compat import is_py2, builtin_str, str                                                                                                                                                                                                                                                    
  File "/usr/lib/python2.7/dist-packages/requests/compat.py", line 47, in <module>                                                                                                                                                                                                                  
    from urllib3.packages.ordered_dict import OrderedDict                                                                                                                                                                                                                                           
ImportError: No module named ordered_dict                                                                                                                                                                                                                                                           
exit status 1                                                    
  • 해결한 방안
$ sudo pip install --upgrade requests
The directory '/home/xxx/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.                                            
The directory '/home/xxx/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.                                                   
Collecting requests                                                                                                                                                                                                                                                                                 
  Downloading https://files.pythonhosted.org/packages/29/c1/24814557f1d22c56d50280771a17307e6bf87b70727d975fd6b2ce6b014a/requests-2.25.1-py2.py3-none-any.whl (61kB)                                                                                                                                
    100% |████████████████████████████████| 61kB 741kB/s                                                                                                                                                                                                                                            
Collecting chardet<5,>=3.0.2 (from requests)                                                                                                                                                                                                                                                        
  Downloading https://files.pythonhosted.org/packages/19/c7/fa589626997dd07bd87d9269342ccb74b1720384a4d739a1872bd84fbe68/chardet-4.0.0-py2.py3-none-any.whl (178kB)                                                                                                                                 
    100% |████████████████████████████████| 184kB 2.4MB/s                                                                                                                                                                                                                                           
Collecting certifi>=2017.4.17 (from requests)                                                                                                                                                                                                                                                       
  Downloading https://files.pythonhosted.org/packages/5e/a0/5f06e1e1d463903cf0c0eebeb751791119ed7a4b3737fdc9a77f1cdfb51f/certifi-2020.12.5-py2.py3-none-any.whl (147kB)                                                                                                                             
    100% |████████████████████████████████| 153kB 3.3MB/s                                                                                                                                                                                                                                           
Collecting urllib3<1.27,>=1.21.1 (from requests)                                                                                                                                                                                                                                                    
  Downloading https://files.pythonhosted.org/packages/09/c6/d3e3abe5b4f4f16cf0dfc9240ab7ce10c2baa0e268989a4e3ec19e90c84e/urllib3-1.26.4-py2.py3-none-any.whl (153kB)                                                                                                                                
    100% |████████████████████████████████| 153kB 4.9MB/s                                                                                                                                                                                                                                           
Collecting idna<3,>=2.5 (from requests)                                                                                                                                                                                                                                                             
  Downloading https://files.pythonhosted.org/packages/a2/38/928ddce2273eaa564f6f50de919327bf3a00f091b5baba8dfa9460f3a8a8/idna-2.10-py2.py3-none-any.whl (58kB)                                                                                                                                      
    100% |████████████████████████████████| 61kB 5.1MB/s                                                                                                                                                                                                                                            
Installing collected packages: chardet, certifi, urllib3, idna, requests                                                                                                                                                                                                                            
  Found existing installation: chardet 3.0.4                                                                                                                                                                                                                                                        
    Not uninstalling chardet at /usr/lib/python2.7/dist-packages, outside environment /usr                                                                                                                                                                                                          
  Found existing installation: certifi 2018.1.18                                                                                                                                                                                                                                                    
    Not uninstalling certifi at /usr/lib/python2.7/dist-packages, outside environment /usr                                                                                                                                                                                                          
  Found existing installation: urllib3 1.25.11                                                                                                                                                                                                                                                      
    Uninstalling urllib3-1.25.11:                                                                                                                                                                                                                                                                   
      Successfully uninstalled urllib3-1.25.11                                                                                                                                                                                                                                                      
  Found existing installation: idna 2.6                                                                                                                                                                                                                                                             
    Not uninstalling idna at /usr/lib/python2.7/dist-packages, outside environment /usr                                                                                                                                                                                                             
  Found existing installation: requests 2.18.4                                                                                                                                                                                                                                                      
    Not uninstalling requests at /usr/lib/python2.7/dist-packages, outside environment /usr                                                                                                                                                                                                         
Successfully installed certifi-2020.12.5 chardet-4.0.0 idna-2.10 requests-2.25.1 urllib3-1.26.4                   
@sykim-etri sykim-etri added the question Further information is requested label Apr 11, 2021
@jihoon-seo jihoon-seo added FAQ and removed question Further information is requested labels Apr 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants