Opened 8 months ago

Closed 7 months ago

#69489 closed defect (fixed)

py37-importlib-resources @6.1.2: TypeError: Expected maxsize to be an integer or None

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: rdbisme (Ruben Di Battista)
Priority: Normal Milestone:
Component: ports Version: 2.9.1
Keywords: Cc: essandess (Steve Smith), cooljeanius (Eric Gallager)
Port: py37-importlib-resources

Description

https://build.macports.org/builders/ports-12_arm64-builder/builds/120331/steps/install-port/logs/stdio

Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
    main()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pyproject_hooks/_in_process/_in_process.py", line 335, in main
    json_out['return_val'] = hook(**hook_input['kwargs'])
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pyproject_hooks/_in_process/_in_process.py", line 252, in build_wheel
    metadata_directory)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/setuptools/build_meta.py", line 417, in build_wheel
    wheel_directory, config_settings)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/setuptools/build_meta.py", line 401, in _build_with_temp_dir
    self.run_setup()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/setuptools/build_meta.py", line 338, in run_setup
    exec(code, locals())
  File "<string>", line 1, in <module>
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/setuptools/__init__.py", line 107, in setup
    return distutils.core.setup(**attrs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 172, in setup
    ok = dist.parse_command_line()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 475, in parse_command_line
    args = self._parse_command_opts(parser, args)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/setuptools/dist.py", line 1142, in _parse_command_opts
    nargs = _Distribution._parse_command_opts(self, parser, args)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 534, in _parse_command_opts
    cmd_class = self.get_command_class(command)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/setuptools/dist.py", line 989, in get_command_class
    self.cmdclass[command] = cmdclass = ep.load()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/setuptools/_vendor/importlib_metadata/__init__.py", line 208, in load
    module = import_module(match.group('module'))
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 28, in <module>
    from .metadata import pkginfo_to_metadata
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/wheel/metadata.py", line 16, in <module>
    from .vendored.packaging.requirements import Requirement
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/wheel/vendored/packaging/requirements.py", line 7, in <module>
    from ._parser import parse_requirement as _parse_requirement
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/wheel/vendored/packaging/_parser.py", line 10, in <module>
    from ._tokenizer import DEFAULT_RULES, Tokenizer
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/wheel/vendored/packaging/_tokenizer.py", line 6, in <module>
    from .specifiers import Specifier
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/wheel/vendored/packaging/specifiers.py", line 16, in <module>
    from .utils import canonicalize_version
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/wheel/vendored/packaging/utils.py", line 8, in <module>
    from .tags import Tag, parse_tag
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/wheel/vendored/packaging/tags.py", line 26, in <module>
    from . import _manylinux, _musllinux
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/wheel/vendored/packaging/_manylinux.py", line 171, in <module>
    def _get_glibc_version() -> Tuple[int, int]:
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/functools.py", line 490, in lru_cache
    raise TypeError('Expected maxsize to be an integer or None')
TypeError: Expected maxsize to be an integer or None

Change History (3)

comment:1 Changed 8 months ago by jmroot (Joshua Root)

Cc: essandess added

This subport shouldn't have been updated past 5.12.0. https://importlib-resources.readthedocs.io/en/latest/history.html#v5-13-0

comment:2 Changed 7 months ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added

comment:3 Changed 7 months ago by jmroot (Joshua Root)

Resolution: fixed
Status: assignedclosed

In 293f09f4d483a511a112d2c468ac4f4df8950929/macports-ports (master):

py-importlib-resources: pin py3{6,7} versions

Support for these python versions was dropped upstream. Using latest
supported version for each.

Closes: #69489

Note: See TracTickets for help on using tickets.