New port: internetarchive can't find schema

contextnerror contextnerror at outlook.com
Mon Apr 29 08:49:58 UTC 2024


I am trying to make a port for https://github.com/jjjake/internetarchive
It depends on schema, so I have made a port for that locally and added it as a dependency.
However when I try to run after install it gives an error about schema:

$ ia configure
Traceback (most recent call last):
  File "/opt/local/bin/ia", line 5, in <module>
    from internetarchive.cli.ia import main
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/internetarchive/cli/__init__.py", line 26, in <module>
    from internetarchive.cli import (
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/internetarchive/cli/ia.py", line 72, in <module>
    from schema import Or, Schema, SchemaError  # type: ignore[import]
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named ‘schema'

What might I need to change? I’m attaching my local ports below.
(I also updated py-jsonpatch to use 3.12, but there’s a PR open for that right now.)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: internetarchive
Type: application/octet-stream
Size: 1107 bytes
Desc: not available
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20240429/6dc40301/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: py-schema
Type: application/octet-stream
Size: 948 bytes
Desc: not available
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20240429/6dc40301/attachment-0001.obj>


More information about the macports-dev mailing list