Opened 33 hours ago

Closed 32 hours ago

Last modified 32 hours ago

#71296 closed defect (duplicate)

py312-pyerfa @2.0.1.5: TypeError: expected string or bytes-like object, got 'NoneType'

Reported by: brolcz Owned by: Schamschula (Marius Schamschula)
Priority: Normal Milestone:
Component: ports Version: 2.10.4
Keywords: Cc:
Port: py312-pyerfa

Description

Hello. I get an error when I try to install py312-pyerfa. I am using mac os 12.7.6. Thank you.

The log is attached below.

Attachments (2)

main.log (128.5 KB) - added by brolcz 33 hours ago.
main.2.log (45.6 KB) - added by brolcz 32 hours ago.

Download all attachments as: .zip

Change History (7)

Changed 33 hours ago by brolcz

Attachment: main.log added

comment:1 Changed 33 hours ago by Schamschula (Marius Schamschula)

I'm not sure what is going on here. The MacPorts build bots had a clean build for both arm64 and x86_64 for macOS 12.

Last edited 33 hours ago by Schamschula (Marius Schamschula) (previous) (diff)

comment:2 Changed 33 hours ago by ryandesign (Ryan Carsten Schmidt)

Cc: mps@… removed
Keywords: mps@macports.org removed
Owner: set to Schamschula
Status: newassigned
Summary: py312-pyerfa @2.0.1.5 installing errorpy312-pyerfa @2.0.1.5: TypeError: expected string or bytes-like object, got 'NoneType'

The error in the log is:

* Getting build dependencies for wheel...
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'

You reported the same error in another port in #71290.

comment:3 Changed 32 hours ago by ryandesign (Ryan Carsten Schmidt)

Resolution: duplicate
Status: assignedclosed

Let's handle it in the other ticket.

comment:4 Changed 32 hours ago by jmroot (Joshua Root)

The attached log is for scipy not pyerfa.

comment:5 in reply to:  4 Changed 32 hours ago by brolcz

Replying to jmroot:

The attached log is for scipy not pyerfa.

Sorry about that! I had submitted a ticket for scipy recently so I accidentally sent that log file again. I'll submit the pyerfa one.

Changed 32 hours ago by brolcz

Attachment: main.2.log added
Note: See TracTickets for help on using tickets.