[Python-modules-team] Bug#878082: python3-pip: TypeError

Laurent Bonnaud L.Bonnaud at laposte.net
Tue Mar 31 17:44:31 BST 2020


Hi,

thank you for this new package version and attempt to fix this bug!  

Unfortunately I am still getting an exception on my system:

Package: python3-pip
Version: 20.0.2-2

# pip3 list --outdated
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
ERROR: Exception:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pip/_internal/cli/base_command.py", line 186, in _main
    status = self.run(options, args)
  File "/usr/lib/python3/dist-packages/pip/_internal/commands/list.py", line 158, in run
    packages = self.get_outdated(packages, options)
  File "/usr/lib/python3/dist-packages/pip/_internal/commands/list.py", line 165, in get_outdated
    return [
  File "/usr/lib/python3/dist-packages/pip/_internal/commands/list.py", line 167, in <listcomp>
    if dist.latest_version > dist.parsed_version
TypeError: '>' not supported between instances of 'Version' and 'Version'

or

# python3 -m pip list --outdated 
ERROR: Exception:
Traceback (most recent call last):                                                                                  
  File "/usr/lib/python3/dist-packages/pip/_internal/cli/base_command.py", line 186, in _main                       
    status = self.run(options, args)                                                                                
  File "/usr/lib/python3/dist-packages/pip/_internal/commands/list.py", line 158, in run                            
    packages = self.get_outdated(packages, options)                                                                 
  File "/usr/lib/python3/dist-packages/pip/_internal/commands/list.py", line 165, in get_outdated                   
    return [                                                                                                        
  File "/usr/lib/python3/dist-packages/pip/_internal/commands/list.py", line 167, in <listcomp>                     
    if dist.latest_version > dist.parsed_version                                                                    
TypeError: '>' not supported between instances of 'Version' and 'Version'         

-- 
Laurent.



More information about the Python-modules-team mailing list