Skip to content

Unknown metadata version 0.5. Perhaps it was installed with a later version of pipx. #1619

@jahagirdar

Description

@jahagirdar

I have upgraded my distro and as a result python3.10 was replaced by python3.12.3
When I run pipx reinstall-all I get

pre-commit: Unknown metadata version 0.5. Perhaps it was installed with a later version of pipx.
git-changelog: Unknown metadata version 0.5. Perhaps it was installed with a later version of pipx.
duty: Unknown metadata version 0.5. Perhaps it was installed with a later version of pipx.
....

I get the same error with list uninstall

Log file for one of the commands is as below

  1     77.5ms (setup:858): 2025-03-17 10:45:32                                                                                                
  2     77.5ms (setup:859): /home/vijayvithal/.local/bin/pipx uninstall bugwarrior                                                               3     77.6ms (setup:860): pipx version is 1.4.3                                                                                              
  4     77.6ms (setup:861): Default python interpreter is '/usr/bin/python3'                                                                   
  5     77.7ms (run_pipx_command:186): Virtual Environment location is /home/vijayvithal/.local/share/pipx/venvs/bugwarrior                      6     77.9ms (cli:924): PipxError: bugwarrior: Unknown metadata version 0.5. Perhaps it was installed with a later version of pipx.            7 Traceback (most recent call last):                                                                                                           8   File "/usr/lib/python3/dist-packages/pipx/main.py", line 921, in cli                                                                       9     return run_pipx_command(parsed_pipx_args)                                                                                              
 10         ¦  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                              
 11   File "/usr/lib/python3/dist-packages/pipx/main.py", line 277, in run_pipx_command                                                        
 12     return commands.uninstall(venv_dir, constants.LOCAL_BIN_DIR, constants.LOCAL_MAN_DIR, verbose)                                         
 13         ¦  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                          14   File "/usr/lib/python3/dist-packages/pipx/commands/uninstall.py", line 135, in uninstall                                                  15     venv = Venv(venv_dir, verbose=verbose)                                                                                                  16         ¦  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                  17   File "/usr/lib/python3/dist-packages/pipx/venv.py", line 91, in __init__                                                                 
 18     self.pipx_metadata = PipxMetadata(venv_dir=path)                                                                                        19         ¦       ¦       ¦^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                       
 20   File "/usr/lib/python3/dist-packages/pipx/pipx_metadata_file.py", line 79, in __init__                                                    21     self.read()                                                                                                                            
 22   File "/usr/lib/python3/dist-packages/pipx/pipx_metadata_file.py", line 154, in read                                                      
 23     self.from_dict(json.load(pipx_metadata_fh, object_hook=_json_decoder_object_hook))                                                     
 24   File "/usr/lib/python3/dist-packages/pipx/pipx_metadata_file.py", line 109, in from_dict                                                 
 25     input_dict = self._convert_legacy_metadata(input_dict)                                                                                 
 26         ¦       ¦^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                 
 27   File "/usr/lib/python3/dist-packages/pipx/pipx_metadata_file.py", line 100, in _convert_legacy_metadata                                  
 28     raise PipxError(                                                                                                                       
 29 pipx.util.PipxError: bugwarrior: Unknown metadata version 0.5. Perhaps it was installed with a later version of pipx.                      
 30     78.7ms (cli:932): pipx finished.                                                                                                       
~                                                                                                                          

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting responseAwaiting re-engagement by contributorbugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions