Opened 21 months ago

Closed 21 months ago

Last modified 21 months ago

#67034 closed defect (fixed)

py311-sh: ModuleNotFoundError: No module named 'poetry'

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: tobypeterson
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc:
Port: py-sh

Description

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

Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pep517/wrappers.py", line 319, in _call_hook
    raise BackendUnavailable(data.get('traceback', ''))
pep517.wrappers.BackendUnavailable: Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pep517/in_process/_in_process.py", line 77, in _build_backend
    obj = import_module(mod_path)
          ^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1128, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1128, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1128, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1142, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'poetry'

ERROR Backend 'poetry.core.masonry.api' is not available.

Change History (3)

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

And py310-sh:

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

/opt/local/Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10: can't open file '/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_python_py-sh/py310-sh/work/sh-2.0.2/setup.py': [Errno 2] No such file or directory
Command failed:  cd "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_python_py-sh/py310-sh/work/sh-2.0.2" && /opt/local/Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10 setup.py --no-user-cfg build -j8 
Exit code: 2

comment:2 Changed 21 months ago by jmroot (Joshua Root)

Resolution: fixed
Status: assignedclosed

In 06b5cbc8364c3b1b32af39a826632fa85c0db34c/macports-ports (master):

py-sh: set correct build backend

Closes: #67034

comment:3 Changed 21 months ago by tobypeterson

Thanks jmr, that's exactly what I would have done.

Note: See TracTickets for help on using tickets.