[MacPorts] #71290: py312-scipy @1.14.1: TypeError: expected string or bytes-like object, got 'NoneType' (was: py312-scipy @1.14.1 install failure)

MacPorts noreply at macports.org
Tue Nov 12 02:19:19 UTC 2024


#71290: py312-scipy @1.14.1: TypeError: expected string or bytes-like object, got
'NoneType'
--------------------------+-----------------------
  Reporter:  brolcz       |      Owner:  michaelld
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.10.4
Resolution:               |   Keywords:
      Port:  py312-scipy  |
--------------------------+-----------------------
Changes (by ryandesign):

 * cc: reneeotten@… (removed)
 * keywords:  michaelld at macports.org =>
 * status:  new => assigned
 * owner:  (none) => michaelld


Comment:

 The log says the problem is:

 {{{
 Traceback (most recent call last):
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12
 /site-packages/build/__main__.py", line 178, in _handle_build_error
     yield
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12
 /site-packages/build/__main__.py", line 429, in main
     built = build_call(
             ^^^^^^^^^^^
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12
 /site-packages/build/__main__.py", line 238, in build_package
     out = _build(isolation, srcdir, outdir, distribution, config_settings,
 skip_dependency_check, installer)
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12
 /site-packages/build/__main__.py", line 172, in _build
     return _build_in_current_env(srcdir, outdir, distribution,
 config_settings, skip_dependency_check)
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12
 /site-packages/build/__main__.py", line 151, in _build_in_current_env
     missing = builder.check_dependencies(distribution, config_settings or
 {})
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12
 /site-packages/build/_builder.py", line 243, in check_dependencies
     return {u for d in dependencies for u in check_dependency(d)}
                                              ^^^^^^^^^^^^^^^^^^^
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12
 /site-packages/build/_util.py", line 59, in check_dependency
     yield from check_dependency(other_req_string, (*ancestral_req_strings,
 normalised_req_string), req.extras)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12
 /site-packages/build/_util.py", line 53, in check_dependency
     if req.specifier and not req.specifier.contains(dist.version,
 prereleases=True):
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12
 /site-packages/packaging/specifiers.py", line 917, in contains
     item = Version(item)
            ^^^^^^^^^^^^^
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12
 /site-packages/packaging/version.py", line 200, in __init__
     match = self._regex.search(version)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
 TypeError: expected string or bytes-like object, got 'NoneType'
 ERROR expected string or bytes-like object, got 'NoneType'
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/71290#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list