Skip to content

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

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

Open
jahagirdar opened this issue Mar 17, 2025 · 3 comments
Labels
awaiting response Awaiting re-engagement by contributor

Comments

@jahagirdar
Copy link

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.                                                                                                       
~                                                                                                                          
@dukecat0
Copy link
Member

What is the version of pipx?

@jahagirdar
Copy link
Author

1.4.3

@dukecat0
Copy link
Member

Metadata version 0.5 was introduced in 1.6.0, can you try to upgrade pipx to the latest version and see if you still encounter this error?

@dukecat0 dukecat0 added the awaiting response Awaiting re-engagement by contributor label Apr 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting response Awaiting re-engagement by contributor
Projects
None yet
Development

No branches or pull requests

2 participants