[Bug 261698] net/py-sshuttle does not build on FreeBSD 12.2 and Python 3.7

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 03 Feb 2022 19:51:50 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261698

            Bug ID: 261698
           Summary: net/py-sshuttle does not build on FreeBSD 12.2 and
                    Python 3.7
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: koobs@FreeBSD.org
          Reporter: 000.fbsd@quip.cz
          Assignee: koobs@FreeBSD.org
             Flags: maintainer-feedback?(koobs@FreeBSD.org)
 Attachment #231542 text/plain
         mime type:

Created attachment 231542
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=231542&action=edit
failed build log

I tried to run usual repository update with "poudriere bulk" with 12.2 jail
with Python 3.7 as default but it failed to build py37-sshuttle-0.78.5 in
configure stage. See attached full build log for details.

"python3.7: No module named pip" How is this possible?

py37-gdbm       databases/py-gdbm@py37
py37-sqlite3    databases/py-sqlite3@py37
py37-tkinter    x11-toolkits/py-tkinter@py37
===>   py37-sshuttle-0.78.5 depends on package: py37-setuptools_scm>0 - found
===>   Returning to build of py37-sshuttle-0.78.5
===>   py37-sshuttle-0.78.5 depends on package: py37-setuptools>0 - found
===>   py37-sshuttle-0.78.5 depends on file: /usr/local/bin/python3.7 - found
===========================================================================
=======================<phase: lib-depends    >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===========================================================================
=======================<phase: configure      >============================
===== env: NO_DEPENDS=yes USER=nobody UID=65534 GID=65534
===>  Configuring for py37-sshuttle-0.78.5
WARNING: The wheel package is not available.
/usr/local/bin/python3.7: No module named pip
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/setuptools/installer.py", line
75, in fetch_build_egg
    subprocess.check_call(cmd)
  File "/usr/local/lib/python3.7/subprocess.py", line 363, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/local/bin/python3.7', '-m',
'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w',
'/tmp/tmp2coa083c', '--quiet', 'tomli>=1.0.0']' returned non-zero exit status
1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "setup.py", line 67, in <module>
    keywords="ssh vpn",
  File "/usr/local/lib/python3.7/site-packages/setuptools/__init__.py", line
152, in setup
    _install_setup_requires(attrs)
  File "/usr/local/lib/python3.7/site-packages/setuptools/__init__.py", line
147, in _install_setup_requires
    dist.fetch_build_eggs(dist.setup_requires)
  File "/usr/local/lib/python3.7/site-packages/setuptools/dist.py", line 782,
in fetch_build_eggs
    replace_conflicting=True,
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line
768, in resolve
    replace_conflicting=replace_conflicting
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line
1051, in best_match
    return self.obtain(req, installer)
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line
1063, in obtain
    return installer(requirement)
  File "/usr/local/lib/python3.7/site-packages/setuptools/dist.py", line 838,
in fetch_build_egg
    return fetch_build_egg(self, req)
  File "/usr/local/lib/python3.7/site-packages/setuptools/installer.py", line
77, in fetch_build_egg
    raise DistutilsError(str(e)) from e
distutils.errors.DistutilsError: Command '['/usr/local/bin/python3.7', '-m',
'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w',
'/tmp/tmp2coa083c', '--quiet', 'tomli>=1.0.0']' returned non-zero exit status
1.
*** Error code 1

Stop.
make: stopped in /usr/ports/net/py-sshuttle
=>> Cleaning up wrkdir
===>  Cleaning for py37-sshuttle-0.78.5
build of net/py-sshuttle@py37 | py37-sshuttle-0.78.5 ended at Thu Feb  3
04:22:52 CET 2022
build time: 00:00:24

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