[Bug 275946] devel/pipx: cannot be run

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 26 Dec 2023 11:49:17 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275946

            Bug ID: 275946
           Summary: devel/pipx: cannot be run
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: alexey@ocaml.nl

pipx <whatever> =>
Traceback (most recent call last):
  File "/usr/local/bin/pipx", line 5, in <module>
    from pipx.main import cli
  File "/usr/local/lib/python3.9/site-packages/pipx/main.py", line 31, in
<module>
    from pipx.version import __version__
ImportError: cannot import name '__version__' from 'pipx.version'
(/usr/local/lib/python3.9/site-packages/pipx/version.py)


Indeed, there is no __version__ in pipx.version. Editing
/usr/local/lib/python3.9/site-packages/pipx/version.py to define __version__
(duplicating 'version' definition) fixes the things.

FreeBSD 14.0-p4, both the latest package and the port from the latest branch
❯ grep PORTVERSION /usr/ports/devel/py-pipx/Makefile
PORTVERSION=    1.3.3

-- 
You are receiving this mail because:
You are the assignee for the bug.