#68897 closed defect (fixed)

py-rpds-py is marked noarch but installs an extension module

Reported by: dyne2meter Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc: stromnov (Andrey Stromnov), johankytt, pmetzger (Perry E. Metzger)
Port: py-rpds-py

Description

This is what I get when I try to open a jupyter notebook as usual with jupyter-notebook-3.11:

Traceback (most recent call last):
  File "/opt/local/bin/jupyter-notebook-3.11", line 5, in <module>
    from notebook.notebookapp import main
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/notebook/notebookapp.py", line 79, in <module>
    from .services.contents.manager import ContentsManager
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/notebook/services/contents/manager.py", line 17, in <module>
    from nbformat import sign, validate as validate_nb, ValidationError
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/nbformat/__init__.py", line 11, in <module>
    from . import v1, v2, v3, v4
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/nbformat/v4/__init__.py", line 39, in <module>
    from .convert import downgrade, upgrade
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/nbformat/v4/convert.py", line 13, in <module>
    from .. import validator
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/nbformat/validator.py", line 13, in <module>
    from .json_compat import ValidationError, _validator_for_name, get_current_validator
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/nbformat/json_compat.py", line 11, in <module>
    import jsonschema
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/jsonschema/__init__.py", line 13, in <module>
    from jsonschema._format import FormatChecker
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/jsonschema/_format.py", line 11, in <module>
    from jsonschema.exceptions import FormatError
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/jsonschema/exceptions.py", line 16, in <module>
    from referencing.exceptions import Unresolvable as _Unresolvable
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/referencing/__init__.py", line 4, in <module>
    from referencing._core import Anchor, Registry, Resource, Specification
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/referencing/_core.py", line 8, in <module>
    from rpds import HashTrieMap, HashTrieSet, List
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/rpds/__init__.py", line 1, in <module>
    from .rpds import *
ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/rpds/rpds.cpython-311-darwin.so, 2): no suitable image found.  Did find:
	/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/rpds/rpds.cpython-311-darwin.so: mach-o, but wrong architecture
	/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/rpds/rpds.cpython-311-darwin.so: mach-o, but wrong architecture

I'm betting this has something to do with one of the several minor updates that have been installed in the past week such as py311-platformdirs. Anyway, notebooks are broken on two systems I have updated lately, High Sierra and Mojave.

Change History (4)

comment:1 Changed 11 months ago by ryandesign (Ryan Carsten Schmidt)

Well what architecture are you building for and what is the architecture of /opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/rpds/rpds.cpython-311-darwin.so?

comment:2 Changed 11 months ago by dyne2meter

I'm building for Intel, but the arch of that .so is arm64. I have no recollection of doing anything but installing or updating with defaults.

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

Cc: johankytt pmetzger added
Port: py-rpds-py added; py311-jupyter removed
Summary: jupyter notebook is brokenpy-rpds-py is marked noarch but installs an extension module

py-rpds-py was created with supported_archs noarch set, which indicates that it installs no architecture-specific files. But clearly it installs the extension module rpds.cpython-311-darwin.so which is architecture-specific.

comment:4 Changed 11 months ago by jmroot (Joshua Root)

Owner: set to jmroot
Resolution: fixed
Status: newclosed

In 86f641b2f471605cf75f8f65f2898c404039a7a2/macports-ports (master):

py-rpds-py: not noarch

Closes: #68897

Note: See TracTickets for help on using tickets.