Bug 266994 - databases/py-pgxnclient: Fails to run: ModuleNotFoundError: No module named 'six' (missing dependency)
Summary: databases/py-pgxnclient: Fails to run: ModuleNotFoundError: No module named '...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Li-Wen Hsu
URL:
Keywords: needs-qa
Depends on:
Blocks:
 
Reported: 2022-10-12 16:51 UTC by Daniel Ziltener
Modified: 2022-10-13 00:44 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (lwhsu)
koobs: merge-quarterly?


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Ziltener 2022-10-12 16:51:14 UTC
It seems the port is currently completely broken. I installed it using "pkg install pgxnclient". 

System: FreeBSD 13.1.

This is the output I am getting when launching pgxnclient (no matter if and what arguments I give it):

Traceback (most recent call last):
  File "/usr/local/bin/pgxnclient", line 33, in <module>
    sys.exit(load_entry_point('pgxnclient==1.3.2', 'console_scripts', 'pgxnclient')())
  File "/usr/local/bin/pgxnclient", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/local/lib/python3.9/importlib/metadata.py", line 86, in load
    module = import_module(match.group('module'))
  File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/usr/local/lib/python3.9/site-packages/pgxnclient/__init__.py", line 11, in <module>
    from pgxnclient.spec import Spec
  File "/usr/local/lib/python3.9/site-packages/pgxnclient/spec.py", line 12, in <module>
    from six.moves.urllib.parse import unquote_plus
ModuleNotFoundError: No module named 'six'
Comment 1 Daniel Ziltener 2022-10-12 16:55:15 UTC
Sorry for the immediate commenting on it. But I checked, and all it needs is an additional dependency, it depends on devel/py-six.
Comment 2 commit-hook freebsd_committer freebsd_triage 2022-10-13 00:43:41 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=149401ac863afd620c0151565770866439404650

commit 149401ac863afd620c0151565770866439404650
Author:     Li-Wen Hsu <lwhsu@FreeBSD.org>
AuthorDate: 2022-10-13 00:42:33 +0000
Commit:     Li-Wen Hsu <lwhsu@FreeBSD.org>
CommitDate: 2022-10-13 00:42:33 +0000

    databases/py-pgxnclient: Add missing RUN_DEPENDS

    PR:             266994
    Reported by:    Daniel Ziltener <dziltener@lyrion.ch>

 databases/py-pgxnclient/Makefile | 2 ++
 1 file changed, 2 insertions(+)
Comment 3 commit-hook freebsd_committer freebsd_triage 2022-10-13 00:44:42 UTC
A commit in branch 2022Q4 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=22cdc573029a9eb25cd374fd0907940276364a8b

commit 22cdc573029a9eb25cd374fd0907940276364a8b
Author:     Li-Wen Hsu <lwhsu@FreeBSD.org>
AuthorDate: 2022-10-13 00:42:33 +0000
Commit:     Li-Wen Hsu <lwhsu@FreeBSD.org>
CommitDate: 2022-10-13 00:43:51 +0000

    databases/py-pgxnclient: Add missing RUN_DEPENDS

    PR:             266994
    Reported by:    Daniel Ziltener <dziltener@lyrion.ch>

    (cherry picked from commit 149401ac863afd620c0151565770866439404650)

 databases/py-pgxnclient/Makefile | 2 ++
 1 file changed, 2 insertions(+)
Comment 4 Li-Wen Hsu freebsd_committer freebsd_triage 2022-10-13 00:44:54 UTC
Fixed. Thanks for the report!