Bug 278405 - math/py-networkx: 'import networkx' fails: TypeError: entry_points() got an unexpected keyword argument 'group'
Summary: math/py-networkx: 'import networkx' fails: TypeError: entry_points() got an u...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Wen Heping
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-17 08:38 UTC by Yuri Victorovich
Modified: 2024-11-25 23:46 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (wen)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yuri Victorovich freebsd_committer freebsd_triage 2024-04-17 08:38:03 UTC
After this port was updated to 3.3 'import networkx' fails:

$ python3.9
Python 3.9.18 (main, Mar 21 2024, 01:12:30) 
[Clang 16.0.6 (https://github.com/llvm/llvm-project.git llvmorg-16.0.6-0-g7cbf1 on freebsd14
Type "help", "copyright", "credits" or "license" for more information.
>>> import networkx
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.9/site-packages/networkx/__init__.py", line 19, in <module>
    from networkx import utils
  File "/usr/local/lib/python3.9/site-packages/networkx/utils/__init__.py", line 7, in <module>
    from networkx.utils.backends import *
  File "/usr/local/lib/python3.9/site-packages/networkx/utils/backends.py", line 258, in <module>
    backends = _get_backends("networkx.backends")
  File "/usr/local/lib/python3.9/site-packages/networkx/utils/backends.py", line 234, in _get_backends
    items = entry_points(group=group)
TypeError: entry_points() got an unexpected keyword argument 'group'
>>>
Comment 1 wen 2024-04-19 00:51:42 UTC
It was caused by networkx-3.3 dropped support python-3.9.

I shall revert the update.

wen
Comment 2 commit-hook freebsd_committer freebsd_triage 2024-04-19 01:31:58 UTC
A commit in branch main references this bug:

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

commit e5d740a35713b7225e01783682f2e03b540b0029
Author:     Wen Heping <wen@FreeBSD.org>
AuthorDate: 2024-04-19 01:25:42 +0000
Commit:     Wen Heping <wen@FreeBSD.org>
CommitDate: 2024-04-19 01:30:34 +0000

    math/py-networkx: Revert 296825744fb5

    networkx-3.3 dropped python3.9, it build well but failed run.

    PR:             278405
    Reported by:    yuri@

 math/py-networkx/Makefile | 4 ++--
 math/py-networkx/distinfo | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)