Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 08 Aug 2021 23:16:02 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 257695] www/py-requests-toolbelt: Build fails with Python 3.10
Message-ID:  <bug-257695-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D257695

            Bug ID: 257695
           Summary: www/py-requests-toolbelt: Build fails with Python 3.10
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: sunpoet@FreeBSD.org
          Reporter: yasu@utahime.org
             Flags: maintainer-feedback?(sunpoet@FreeBSD.org)
          Assignee: sunpoet@FreeBSD.org

While testing Python 3.10 I found build of www/py-requests-toolbelt
fails with 3.10 as default Python.

----------------------------------------------------------------------
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<phase=
: build          >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D
=3D=3D=3D>  Building for py310-requests-toolbelt-0.9.1
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "setup.py", line 41, in <module>
    setup(
  File "/usr/local/lib/python3.10/site-packages/setuptools/__init__.py", li=
ne
153, in setup
    return distutils.core.setup(**attrs)
  File "/usr/local/lib/python3.10/distutils/core.py", line 134, in setup
    ok =3D dist.parse_command_line()
  File "/usr/local/lib/python3.10/distutils/dist.py", line 483, in
parse_command_line
    args =3D self._parse_command_opts(parser, args)
  File "/usr/local/lib/python3.10/site-packages/setuptools/dist.py", line 1=
009,
in _parse_command_opts
    nargs =3D _Distribution._parse_command_opts(self, parser, args)
  File "/usr/local/lib/python3.10/distutils/dist.py", line 539, in
_parse_command_opts
    cmd_class =3D self.get_command_class(command)
  File "/usr/local/lib/python3.10/site-packages/setuptools/dist.py", line 8=
48,
in get_command_class
    self.cmdclass[command] =3D cmdclass =3D ep.load()
  File "/usr/local/lib/python3.10/site-packages/pkg_resources/__init__.py",
line 2450, in load
    return self.resolve()
  File "/usr/local/lib/python3.10/site-packages/pkg_resources/__init__.py",
line 2456, in resolve
    module =3D __import__(self.module_name, fromlist=3D['__name__'], level=
=3D0)
  File "/usr/local/lib/python3.10/site-packages/sphinx/setup_command.py", l=
ine
20, in <module>
    from sphinx.application import Sphinx
  File "/usr/local/lib/python3.10/site-packages/sphinx/application.py", line
32, in <module>
    from sphinx.config import Config
  File "/usr/local/lib/python3.10/site-packages/sphinx/config.py", line 23,=
 in
<module>
    from sphinx.util import logging
  File "/usr/local/lib/python3.10/site-packages/sphinx/util/__init__.py", l=
ine
35, in <module>
    from sphinx.util import smartypants  # noqa
  File "/usr/local/lib/python3.10/site-packages/sphinx/util/smartypants.py",
line 33, in <module>
    from sphinx.util.docutils import __version_info__ as docutils_version
  File "/usr/local/lib/python3.10/site-packages/sphinx/util/docutils.py", l=
ine
31, in <module>
    from sphinx.util.typing import RoleFunction
  File "/usr/local/lib/python3.10/site-packages/sphinx/util/typing.py", line
34, in <module>
    from types import Union as types_Union
ImportError: cannot import name 'Union' from 'types'
(/usr/local/lib/python3.10/types.py)
*** Error code 1

Stop.
----------------------------------------------------------------------

Full build log:
https://www.utahime.org/FreeBSD/poudriere/data/logs/bulk/130amd64-default-p=
ython310/2021-08-09_07h57m47s/logs/py310-requests-toolbelt-0.9.1.log

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-257695-7788>