This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Error installing WEST "No matching distribution found for west"

Hello,

I am getting several issues to install west, and samples look they don´t work without west... Any help ? Thanks

Here is the log from CMD.

Parents
  • Hello Heidi,

    yes I am using nRF Connect,When I try to install west  (on the step 2) is when I got this error...

     here is the ERROR

      WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('
    bject at 0x00000000042EBDF0>: Failed to establish a new connection: [WinError 10061] Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte')': /simple/west
    /                                                                                                                                                                                                  
      WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('
    bject at 0x00000000042EB460>: Failed to establish a new connection: [WinError 10061] Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte')': /simple/west
    /                                                                                                                                                                                                  
      WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('
    bject at 0x00000000042EBDC0>: Failed to establish a new connection: [WinError 10061] Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte')': /simple/west
    /                                                                                                                                                                                                  
      WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('
    bject at 0x00000000042EB730>: Failed to establish a new connection: [WinError 10061] Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte')': /simple/west
    /                                                                                                                                                                                                  
      WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('
    bject at 0x00000000042EB400>: Failed to establish a new connection: [WinError 10061] Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte')': /simple/west
    /                                                                                                                                                                                                  
      ERROR: Could not find a version that satisfies the requirement west (from versions: none)                                                                                                        
    ERROR: No matching distribution found for west                                                                                                                                                     
                                                                                                                                                                                                       
    

Reply Children
  • Hi,

    same issue, here the info:

    $ pip3 install -v west                                                                                                              
    Created temporary directory: C:\Users\alcala_an\AppData\Local\Temp\pip-ephem-wheel-cache-8g82hm5c                                   
    Created temporary directory: C:\Users\alcala_an\AppData\Local\Temp\pip-req-tracker-8ta1gff2                                         
    Created requirements tracker 'C:\\Users\\alcala_an\\AppData\\Local\\Temp\\pip-req-tracker-8ta1gff2'                                 
    Created temporary directory: C:\Users\alcala_an\AppData\Local\Temp\pip-install-x8t1vk7c                                             
    Collecting west                                                                                                                     
      1 location(s) to search for versions of west:                                                                                     
      * https://pypi.org/simple/west/                                                                                                   
      Getting page https://pypi.org/simple/west/                                                                                        
      Found index url https://pypi.org/simple                                                                                           
      Looking up "">pypi.org/.../" in the cache                                                                           
      Request header has "max_age" as 0, cache bypassed                                                                                 
      Starting new HTTPS connection (1): pypi.org:443                                                                                   
      Incremented Retry for (url='/simple/west/'): Retry(total=4, connect=None, read=None, redirect=None, status=None)                  
      WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionE
    pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000000003AEBFA0>: Failed to establish a new connection: [WinErro
    ] Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte')': /simple/west/                   
      Starting new HTTPS connection (2): pypi.org:443                                                                                   
    Cleaning up...                                                                                                                      
    Removed build tracker 'C:\\Users\\alcala_an\\AppData\\Local\\Temp\\pip-req-tracker-8ta1gff2'                                        
    ERROR: Operation cancelled by user                                                                                                  
    Exception information:                                                                                                              
    Traceback (most recent call last):                                                                                                  
      File "c:\python38\lib\site-packages\pip\_vendor\urllib3\util\connection.py", line 70, in create_connection                        
        sock.connect(sa)                                                                                                                
    ConnectionRefusedError: [WinError 10061] Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweiger
                                                                                                                                        
    During handling of the above exception, another exception occurred:                                                                 
                                                                                                                                        
    Traceback (most recent call last):                                                                                                  
      File "c:\python38\lib\site-packages\pip\_internal\cli\base_command.py", line 188, in main                                         
        status = self.run(options, args)                                                                                                
      File "c:\python38\lib\site-packages\pip\_internal\commands\install.py", line 345, in run                                          
        resolver.resolve(requirement_set)                                                                                               
      File "c:\python38\lib\site-packages\pip\_internal\legacy_resolve.py", line 196, in resolve                                        
        self._resolve_one(requirement_set, req)                                                                                         
      File "c:\python38\lib\site-packages\pip\_internal\legacy_resolve.py", line 359, in _resolve_one                                   
        abstract_dist = self._get_abstract_dist_for(req_to_install)                                                                     
      File "c:\python38\lib\site-packages\pip\_internal\legacy_resolve.py", line 305, in _get_abstract_dist_for                         
        abstract_dist = self.preparer.prepare_linked_requirement(                                                                       
      File "c:\python38\lib\site-packages\pip\_internal\operations\prepare.py", line 134, in prepare_linked_requirement                 
        req.populate_link(finder, upgrade_allowed, require_hashes)                                                                      
      File "c:\python38\lib\site-packages\pip\_internal\req\req_install.py", line 211, in populate_link                                 
        self.link = finder.find_requirement(self, upgrade)                                                                              
      File "c:\python38\lib\site-packages\pip\_internal\index.py", line 1200, in find_requirement                                       
        candidates = self.find_candidates(                                                                                              
      File "c:\python38\lib\site-packages\pip\_internal\index.py", line 1183, in find_candidates                                        
        candidates = self.find_all_candidates(project_name)                                                                             
      File "c:\python38\lib\site-packages\pip\_internal\index.py", line 1128, in find_all_candidates                                    
        for page in self._get_pages(url_locations, project_name):                                                                       
      File "c:\python38\lib\site-packages\pip\_internal\index.py", line 1282, in _get_pages                                             
        page = _get_html_page(location, session=self.session)                                                                           
      File "c:\python38\lib\site-packages\pip\_internal\index.py", line 234, in _get_html_page                                          
        resp = _get_html_response(url, session=session)                                                                                 
      File "c:\python38\lib\site-packages\pip\_internal\index.py", line 165, in _get_html_response                                      
        resp = session.get(                                                                                                             
      File "c:\python38\lib\site-packages\pip\_vendor\requests\sessions.py", line 546, in get                                           
        return self.request('GET', url, **kwargs)                                                                                       
      File "c:\python38\lib\site-packages\pip\_internal\download.py", line 624, in request                                              
        return super(PipSession, self).request(method, url, *args, **kwargs)                                                            
      File "c:\python38\lib\site-packages\pip\_vendor\requests\sessions.py", line 533, in request                                       
        resp = self.send(prep, **send_kwargs)                                                                                           
      File "c:\python38\lib\site-packages\pip\_vendor\requests\sessions.py", line 646, in send                                          
        r = adapter.send(request, **kwargs)                                                                                             
      File "c:\python38\lib\site-packages\pip\_vendor\cachecontrol\adapter.py", line 53, in send                                        
        resp = super(CacheControlAdapter, self).send(request, **kw)                                                                     
      File "c:\python38\lib\site-packages\pip\_vendor\requests\adapters.py", line 439, in send                                          
        resp = conn.urlopen(                                                                                                            
      File "c:\python38\lib\site-packages\pip\_vendor\urllib3\connectionpool.py", line 666, in urlopen                                  
        return self.urlopen(method, url, body, headers, retries,                                                                        
      File "c:\python38\lib\site-packages\pip\_vendor\urllib3\connectionpool.py", line 600, in urlopen                                  
        httplib_response = self._make_request(conn, method, url,                                                                        
      File "c:\python38\lib\site-packages\pip\_vendor\urllib3\connectionpool.py", line 344, in _make_request                            
        self._validate_conn(conn)                                                                                                       
      File "c:\python38\lib\site-packages\pip\_vendor\urllib3\connectionpool.py", line 843, in _validate_conn                           
        conn.connect()                                                                                                                  
      File "c:\python38\lib\site-packages\pip\_vendor\urllib3\connection.py", line 316, in connect                                      
        conn = self._new_conn()                                                                                                         
      File "c:\python38\lib\site-packages\pip\_vendor\urllib3\connection.py", line 159, in _new_conn                                    
        conn = connection.create_connection(                                                                                            
      File "c:\python38\lib\site-packages\pip\_vendor\urllib3\util\connection.py", line 70, in create_connection                        
        sock.connect(sa)                                                                                                                
    KeyboardInterrupt                                                                                                                   
    1 location(s) to search for versions of pip:                                                                                        
    * https://pypi.org/simple/pip/                                                                                                      
    Getting page https://pypi.org/simple/pip/                                                                                           
    Found index url https://pypi.org/simple                                                                                             
    Looking up "">pypi.org/.../" in the cache                                                                              
    Request header has "max_age" as 0, cache bypassed                                                                                   
    Starting new HTTPS connection (1): pypi.org:443                                                                                     
    Could not fetch URL https://pypi.org/simple/pip/: connection error: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exce
    th url: /simple/pip/ (Caused by NewConnectionError('
    Failed to establish a new connection: [WinError 10061] Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbin
    rweigerte')) - skipping                                                                                                             
    Config variable 'Py_DEBUG' is unset, Python ABI tag may be incorrect                                                                
    Given no hashes to check 0 links for project 'pip': discarding no candidates                                                        
  • From the log, it looks like you're not connected to the internet?

    Do you have the latest version of pip3?

  • It should be last version, I have installed some weeks ago for these tests...Can the issue be on the proxy side?  I will check with our technical team if they can find something...

    Thanks,

    Ana

  • I have the same issue but I am definitely connected to the internet. Would it be possible that my company's firewall is the one that's preventing a connection to west's servers? If so, would there be a way around this (i.e should I try installing it using my personal internet from home) ?

    C:\windows\system32>pip3 install -v west
    Created temporary directory: C:\Users\schmialf\AppData\Local\Temp\pip-ephem-wheel-cache-bstwm1ni
    Created temporary directory: C:\Users\schmialf\AppData\Local\Temp\pip-req-tracker-oqo5g7o8
    Created requirements tracker 'C:\\Users\\schmialf\\AppData\\Local\\Temp\\pip-req-tracker-oqo5g7o8'
    Created temporary directory: C:\Users\schmialf\AppData\Local\Temp\pip-install-vbuth_ef
    Collecting west
      1 location(s) to search for versions of west:
      * https://pypi.org/simple/west/
      Getting page https://pypi.org/simple/west/
      Found index url https://pypi.org/simple
      Looking up "https://pypi.org/simple/west/" in the cache
      Request header has "max_age" as 0, cache bypassed
      Starting new HTTPS connection (1): pypi.org:443
      Incremented Retry for (url='/simple/west/'): Retry(total=4, connect=None, read=None, redirect=None, status=None)
      WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000001D155F56CD0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/west/
      Starting new HTTPS connection (2): pypi.org:443
      Incremented Retry for (url='/simple/west/'): Retry(total=3, connect=None, read=None, redirect=None, status=None)
      WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000001D155F56D30>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/west/
      Starting new HTTPS connection (3): pypi.org:443
      Incremented Retry for (url='/simple/west/'): Retry(total=2, connect=None, read=None, redirect=None, status=None)
      WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000001D155F6C3D0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/west/
      Starting new HTTPS connection (4): pypi.org:443
      Incremented Retry for (url='/simple/west/'): Retry(total=1, connect=None, read=None, redirect=None, status=None)
      WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000001D155F6C820>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/west/
      Starting new HTTPS connection (5): pypi.org:443
      Incremented Retry for (url='/simple/west/'): Retry(total=0, connect=None, read=None, redirect=None, status=None)
      WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000001D155F6C760>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/west/
      Starting new HTTPS connection (6): pypi.org:443
      Could not fetch URL https://pypi.org/simple/west/: connection error: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/west/ (Caused by NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000001D155F6C640>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')) - skipping
      Config variable 'Py_DEBUG' is unset, Python ABI tag may be incorrect
      Given no hashes to check 0 links for project 'west': discarding no candidates
      ERROR: Could not find a version that satisfies the requirement west (from versions: none)
    Cleaning up...
    Removed build tracker 'C:\\Users\\schmialf\\AppData\\Local\\Temp\\pip-req-tracker-oqo5g7o8'
    ERROR: No matching distribution found for west
    Exception information:
    Traceback (most recent call last):
      File "c:\python38\lib\site-packages\pip\_internal\cli\base_command.py", line 188, in main
        status = self.run(options, args)
      File "c:\python38\lib\site-packages\pip\_internal\commands\install.py", line 345, in run
        resolver.resolve(requirement_set)
      File "c:\python38\lib\site-packages\pip\_internal\legacy_resolve.py", line 196, in resolve
        self._resolve_one(requirement_set, req)
      File "c:\python38\lib\site-packages\pip\_internal\legacy_resolve.py", line 359, in _resolve_one
        abstract_dist = self._get_abstract_dist_for(req_to_install)
      File "c:\python38\lib\site-packages\pip\_internal\legacy_resolve.py", line 305, in _get_abstract_dist_for
        abstract_dist = self.preparer.prepare_linked_requirement(
      File "c:\python38\lib\site-packages\pip\_internal\operations\prepare.py", line 134, in prepare_linked_requirement
        req.populate_link(finder, upgrade_allowed, require_hashes)
      File "c:\python38\lib\site-packages\pip\_internal\req\req_install.py", line 211, in populate_link
        self.link = finder.find_requirement(self, upgrade)
      File "c:\python38\lib\site-packages\pip\_internal\index.py", line 1227, in find_requirement
        raise DistributionNotFound(
    pip._internal.exceptions.DistributionNotFound: No matching distribution found for west
    1 location(s) to search for versions of pip:
    * https://pypi.org/simple/pip/
    Getting page https://pypi.org/simple/pip/
    Found index url https://pypi.org/simple
    Looking up "https://pypi.org/simple/pip/" in the cache
    Request header has "max_age" as 0, cache bypassed
    Starting new HTTPS connection (1): pypi.org:443
    Could not fetch URL https://pypi.org/simple/pip/: connection error: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000001D155F568E0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')) - skipping
    Config variable 'Py_DEBUG' is unset, Python ABI tag may be incorrect
    Given no hashes to check 0 links for project 'pip': discarding no candidates

    Greatly appreciate your help on this matter :))

    Thank you in advanced!!

Related