Bug 270549 - devel/py-poetry-core: Does not install py files since switching to pep517
Summary: devel/py-poetry-core: Does not install py files since switching to pep517
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-30 18:43 UTC by Rainer Hurling
Modified: 2023-08-13 10:18 UTC (History)
7 users (show)

See Also:
bugzilla: maintainer-feedback? (sunpoet)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rainer Hurling freebsd_committer freebsd_triage 2023-03-30 18:43:30 UTC
If I try to update textproc/py-rich, I get


===>  Building for py39-rich-13.3.3_1
* Getting build dependencies for wheel...

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/pyproject_hooks/_impl.py", line 321, in _call_hook
    raise BackendUnavailable(data.get('traceback', ''))
pyproject_hooks._impl.BackendUnavailable: Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/pyproject_hooks/_in_process/_in_process.py", line 77, in _build_backend
    obj = import_module(mod_path)
  File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'poetry.core.masonry.api'

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


textproc/py-rich seems to expect the module 'poetry.core.masonry.api' belonging to devel/py-poetry-core(?), but this port does not install .py files anymore. This happens since the change from distutils to pep517 ...


BTW, there are newer versions of py-poetry-core at Github[1].

[1] https://github.com/python-poetry/poetry-core/releases/tag/1.5.2
Comment 1 Po-Chuan Hsieh freebsd_committer freebsd_triage 2023-04-05 17:51:26 UTC
I cannot reproduce this error. Could you please reinstall py-poetry-core and check the corresponding file (/usr/local/lib/python3.9/site-packages/poetry/core/masonry/api.py)?

On my box:
% ls -la /usr/local/lib/python3.11/site-packages/poetry/core/masonry/api.py
-rw-r--r--  1 root  wheel  2549 Apr  5 03:38 /usr/local/lib/python3.11/site-packages/poetry/core/masonry/api.py
Comment 2 Rainer Hurling freebsd_committer freebsd_triage 2023-04-06 05:39:38 UTC
(In reply to Po-Chuan Hsieh from comment #1)

Unfortunately, this does not help on recent 14.0-CURRENT :(

#ls -la /usr/local/lib/python3.11/site-packages/poetry/core/masonry/api.py
ls: /usr/local/lib/python3.11/site-packages/poetry/core/masonry/api.py: No such file or directory
Comment 3 Marco Beishuizen 2023-04-06 13:54:50 UTC
Same problem on 13.2-STABLE.
Comment 4 alt2600 2023-04-07 01:45:38 UTC
busted on 13.1 amd64 live-system, stages and installs null package, no python code at all

pkg info -l py39-poetry-core
py39-poetry-core-1.4.0_2:
        /usr/local/lib/python3.9/site-packages/poetry_core-1.4.0.dist-info/LICENSE
        /usr/local/lib/python3.9/site-packages/poetry_core-1.4.0.dist-info/METADATA
        /usr/local/lib/python3.9/site-packages/poetry_core-1.4.0.dist-info/RECORD
        /usr/local/lib/python3.9/site-packages/poetry_core-1.4.0.dist-info/WHEEL
        /usr/local/share/licenses/py39-poetry-core-1.4.0_2/LICENSE
        /usr/local/share/licenses/py39-poetry-core-1.4.0_2/MIT
        /usr/local/share/licenses/py39-poetry-core-1.4.0_2/catalog.mk




===>  Patching for py39-rdflib-6.3.1
===>   py39-rdflib-6.3.1 depends on package: py39-poetry-core>=1.4.0 - found
===>   py39-rdflib-6.3.1 depends on file: /usr/local/bin/python3.9 - found
===>   py39-rdflib-6.3.1 depends on package: py39-build>=0 - found
===>   py39-rdflib-6.3.1 depends on package: py39-installer>=0 - found
===>  Configuring for py39-rdflib-6.3.1
===>  Building for py39-rdflib-6.3.1
* Getting build dependencies for wheel...

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/pyproject_hooks/_impl.py", line 321, in _call_hook
    raise BackendUnavailable(data.get('traceback', ''))
pyproject_hooks._impl.BackendUnavailable: Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/pyproject_hooks/_in_process/_in_process.py", line 77, in _build_backend
    obj = import_module(mod_path)
  File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'poetry'

ERROR Backend 'poetry.core.masonry.api' is not available.
*** Error code 1

Stop.
make: stopped in /usr/ports/textproc/py-rdflib

===>>> make build failed for textproc/py-rdflib@py39
===>>> Aborting update



/usr/ports/devel/py-poetry-core/work-py39/stage|$ du -ah
512B    ./usr/local/www
6.0K    ./usr/local/lib/python3.9/site-packages/poetry_core-1.4.0.dist-info/LICENSE
6.0K    ./usr/local/lib/python3.9/site-packages/poetry_core-1.4.0.dist-info/RECORD
512B    ./usr/local/lib/python3.9/site-packages/poetry_core-1.4.0.dist-info/WHEEL
6.0K    ./usr/local/lib/python3.9/site-packages/poetry_core-1.4.0.dist-info/METADATA
 19K    ./usr/local/lib/python3.9/site-packages/poetry_core-1.4.0.dist-info
 20K    ./usr/local/lib/python3.9/site-packages
 20K    ./usr/local/lib/python3.9
512B    ./usr/local/lib/X11/app-defaults
1.0K    ./usr/local/lib/X11
512B    ./usr/local/lib/debug
 22K    ./usr/local/lib
512B    ./usr/local/etc/newsyslog.conf.d
512B    ./usr/local/etc/man.d
512B    ./usr/local/etc/pam.d
512B    ./usr/local/etc/rc.conf.d
512B    ./usr/local/etc/rc.d
512B    ./usr/local/etc/devd
512B    ./usr/local/etc/libmap.d
 15K    ./usr/local/etc
512B    ./usr/local/include/X11
1.0K    ./usr/local/include
512B    ./usr/local/sbin
512B    ./usr/local/bin
512B    ./usr/local/tests
512B    ./usr/local/libexec
512B    ./usr/local/libdata/pkgconfig
512B    ./usr/local/libdata/ldconfig
512B    ./usr/local/libdata/ldconfig32
2.0K    ./usr/local/libdata
512B    ./usr/local/man/en.ISO8859-1/cat7
512B    ./usr/local/man/en.ISO8859-1/catn
512B    ./usr/local/man/en.ISO8859-1/cat4/i386
1.0K    ./usr/local/man/en.ISO8859-1/cat4
512B    ./usr/local/man/en.ISO8859-1/cat1aout
512B    ./usr/local/man/en.ISO8859-1/cat9/i386
1.0K    ./usr/local/man/en.ISO8859-1/cat9
512B    ./usr/local/man/en.ISO8859-1/cat3
512B    ./usr/local/man/en.ISO8859-1/cat1
512B    ./usr/local/man/en.ISO8859-1/cat6
512B    ./usr/local/man/en.ISO8859-1/cat2
512B    ./usr/local/man/en.ISO8859-1/cat8/i386
1.0K    ./usr/local/man/en.ISO8859-1/cat8
512B    ./usr/local/man/en.ISO8859-1/cat5
 18K    ./usr/local/man/en.ISO8859-1
512B    ./usr/local/man/cat6
512B    ./usr/local/man/man1
512B    ./usr/local/man/catl
512B    ./usr/local/man/manl
512B    ./usr/local/man/man6
512B    ./usr/local/man/cat1
512B    ./usr/local/man/man2
512B    ./usr/local/man/man8
512B    ./usr/local/man/cat5
512B    ./usr/local/man/cat8
512B    ./usr/local/man/cat2
512B    ./usr/local/man/man5
512B    ./usr/local/man/man7
512B    ./usr/local/man/ja/cat7
512B    ./usr/local/man/ja/man7
512B    ./usr/local/man/ja/catn
512B    ./usr/local/man/ja/cat4
512B    ./usr/local/man/ja/man9
512B    ./usr/local/man/ja/man3
512B    ./usr/local/man/ja/man4
512B    ./usr/local/man/ja/cat3
512B    ./usr/local/man/ja/cat9
512B    ./usr/local/man/ja/mann
512B    ./usr/local/man/ja/manl
512B    ./usr/local/man/ja/cat1
512B    ./usr/local/man/ja/man6
512B    ./usr/local/man/ja/man1
512B    ./usr/local/man/ja/cat6
512B    ./usr/local/man/ja/catl
512B    ./usr/local/man/ja/man5
512B    ./usr/local/man/ja/cat8
512B    ./usr/local/man/ja/cat2
512B    ./usr/local/man/ja/cat5
512B    ./usr/local/man/ja/man2
512B    ./usr/local/man/ja/man8
 22K    ./usr/local/man/ja
512B    ./usr/local/man/de.ISO8859-1/catn
512B    ./usr/local/man/de.ISO8859-1/man3
512B    ./usr/local/man/de.ISO8859-1/man9
512B    ./usr/local/man/de.ISO8859-1/cat4
512B    ./usr/local/man/de.ISO8859-1/cat9
512B    ./usr/local/man/de.ISO8859-1/cat3
512B    ./usr/local/man/de.ISO8859-1/man4
512B    ./usr/local/man/de.ISO8859-1/mann
512B    ./usr/local/man/de.ISO8859-1/cat7
512B    ./usr/local/man/de.ISO8859-1/man7
512B    ./usr/local/man/de.ISO8859-1/cat2
512B    ./usr/local/man/de.ISO8859-1/cat8
512B    ./usr/local/man/de.ISO8859-1/man5
512B    ./usr/local/man/de.ISO8859-1/man8
512B    ./usr/local/man/de.ISO8859-1/man2
512B    ./usr/local/man/de.ISO8859-1/cat5
512B    ./usr/local/man/de.ISO8859-1/manl
512B    ./usr/local/man/de.ISO8859-1/man6
512B    ./usr/local/man/de.ISO8859-1/cat1
512B    ./usr/local/man/de.ISO8859-1/cat6
512B    ./usr/local/man/de.ISO8859-1/man1
512B    ./usr/local/man/de.ISO8859-1/catl
 22K    ./usr/local/man/de.ISO8859-1
512B    ./usr/local/man/cat7
512B    ./usr/local/man/ru.KOI8-R/catn
512B    ./usr/local/man/ru.KOI8-R/man3
512B    ./usr/local/man/ru.KOI8-R/man9
512B    ./usr/local/man/ru.KOI8-R/cat4
512B    ./usr/local/man/ru.KOI8-R/cat9
512B    ./usr/local/man/ru.KOI8-R/cat3
512B    ./usr/local/man/ru.KOI8-R/man4
512B    ./usr/local/man/ru.KOI8-R/mann
512B    ./usr/local/man/ru.KOI8-R/cat7
512B    ./usr/local/man/ru.KOI8-R/man7
512B    ./usr/local/man/ru.KOI8-R/cat2
512B    ./usr/local/man/ru.KOI8-R/cat8
512B    ./usr/local/man/ru.KOI8-R/man5
512B    ./usr/local/man/ru.KOI8-R/man8
512B    ./usr/local/man/ru.KOI8-R/man2
512B    ./usr/local/man/ru.KOI8-R/cat5
512B    ./usr/local/man/ru.KOI8-R/manl
512B    ./usr/local/man/ru.KOI8-R/man6
512B    ./usr/local/man/ru.KOI8-R/cat1
512B    ./usr/local/man/ru.KOI8-R/cat6
512B    ./usr/local/man/ru.KOI8-R/man1
512B    ./usr/local/man/ru.KOI8-R/catl
 22K    ./usr/local/man/ru.KOI8-R
512B    ./usr/local/man/cat3
512B    ./usr/local/man/cat9
512B    ./usr/local/man/man4
512B    ./usr/local/man/mann
512B    ./usr/local/man/catn
512B    ./usr/local/man/man9
512B    ./usr/local/man/man3
512B    ./usr/local/man/cat4
106K    ./usr/local/man
512B    ./usr/local/share/nls/zh_CN.GB18030
512B    ./usr/local/share/nls/is_IS.UTF-8
512B    ./usr/local/share/nls/zh_CN.UTF-8
512B    ./usr/local/share/nls/sv_SE.ISO8859-15
512B    ./usr/local/share/nls/zh_CN.GB2312
512B    ./usr/local/share/nls/ro_RO.ISO8859-2
512B    ./usr/local/share/nls/et_EE.ISO8859-15
512B    ./usr/local/share/nls/fr_FR.ISO8859-15
512B    ./usr/local/share/nls/sv_SE.UTF-8
512B    ./usr/local/share/nls/sk_SK.ISO8859-2
512B    ./usr/local/share/nls/fr_FR.ISO8859-1
512B    ./usr/local/share/nls/pt_PT.ISO8859-1
512B    ./usr/local/share/nls/de_DE.UTF-8
512B    ./usr/local/share/nls/fr_BE.UTF-8
512B    ./usr/local/share/nls/de_CH.ISO8859-15
512B    ./usr/local/share/nls/lt_LT.ISO8859-4
512B    ./usr/local/share/nls/en_AU.ISO8859-1
512B    ./usr/local/share/nls/af_ZA.UTF-8
512B    ./usr/local/share/nls/fr_BE.ISO8859-1
512B    ./usr/local/share/nls/de_CH.ISO8859-1
512B    ./usr/local/share/nls/zh_TW.UTF-8
512B    ./usr/local/share/nls/la_LN.US-ASCII
512B    ./usr/local/share/nls/uk_UA.ISO8859-5
512B    ./usr/local/share/nls/nl_BE.ISO8859-15
512B    ./usr/local/share/nls/uk_UA.UTF-8
512B    ./usr/local/share/nls/en_AU.ISO8859-15
512B    ./usr/local/share/nls/tr_TR.UTF-8
512B    ./usr/local/share/nls/fr_FR.UTF-8
512B    ./usr/local/share/nls/nl_NL.UTF-8
512B    ./usr/local/share/nls/C
512B    ./usr/local/share/nls/af_ZA.ISO8859-15
512B    ./usr/local/share/nls/en_CA.US-ASCII
512B    ./usr/local/share/nls/es_ES.ISO8859-1
512B    ./usr/local/share/nls/ro_RO.UTF-8
512B    ./usr/local/share/nls/pl_PL.ISO8859-2
512B    ./usr/local/share/nls/pt_PT.ISO8859-15
512B    ./usr/local/share/nls/la_LN.ISO8859-4
512B    ./usr/local/share/nls/de_AT.UTF-8
512B    ./usr/local/share/nls/zh_HK.Big5HKSCS
512B    ./usr/local/share/nls/sl_SI.ISO8859-2
512B    ./usr/local/share/nls/da_DK.ISO8859-1
512B    ./usr/local/share/nls/cs_CZ.UTF-8
512B    ./usr/local/share/nls/fr_CA.UTF-8
512B    ./usr/local/share/nls/ru_RU.ISO8859-5
512B    ./usr/local/share/nls/nl_BE.UTF-8
512B    ./usr/local/share/nls/en_US.ISO8859-1
512B    ./usr/local/share/nls/es_ES.ISO8859-15
512B    ./usr/local/share/nls/en_GB.ISO8859-1
512B    ./usr/local/share/nls/ca_ES.ISO8859-1
512B    ./usr/local/share/nls/hu_HU.UTF-8
512B    ./usr/local/share/nls/uk_UA.KOI8-U
512B    ./usr/local/share/nls/el_GR.ISO8859-7
512B    ./usr/local/share/nls/ca_ES.ISO8859-15
512B    ./usr/local/share/nls/de_DE.ISO8859-1
512B    ./usr/local/share/nls/am_ET.UTF-8
512B    ./usr/local/share/nls/en_CA.ISO8859-15
512B    ./usr/local/share/nls/ja_JP.UTF-8
512B    ./usr/local/share/nls/zh_CN.GBK
512B    ./usr/local/share/nls/cs_CZ.ISO8859-2
512B    ./usr/local/share/nls/en_US.ISO8859-15
512B    ./usr/local/share/nls/ru_RU.CP1251
512B    ./usr/local/share/nls/ca_ES.UTF-8
512B    ./usr/local/share/nls/fi_FI.ISO8859-1
512B    ./usr/local/share/nls/lt_LT.UTF-8
512B    ./usr/local/share/nls/de_DE.ISO8859-15
512B    ./usr/local/share/nls/en_GB.ISO8859-15
512B    ./usr/local/share/nls/no_NO.ISO8859-1
512B    ./usr/local/share/nls/it_IT.ISO8859-15
512B    ./usr/local/share/nls/da_DK.UTF-8
512B    ./usr/local/share/nls/fr_BE.ISO8859-15
512B    ./usr/local/share/nls/nl_NL.ISO8859-15
512B    ./usr/local/share/nls/pt_BR.ISO8859-1
512B    ./usr/local/share/nls/en_NZ.UTF-8
512B    ./usr/local/share/nls/tr_TR.ISO8859-9
512B    ./usr/local/share/nls/de_CH.UTF-8
512B    ./usr/local/share/nls/nl_NL.ISO8859-1
512B    ./usr/local/share/nls/ja_JP.SJIS
512B    ./usr/local/share/nls/pl_PL.UTF-8
512B    ./usr/local/share/nls/fi_FI.ISO8859-15
512B    ./usr/local/share/nls/bg_BG.CP1251
512B    ./usr/local/share/nls/fr_CH.ISO8859-15
512B    ./usr/local/share/nls/de_AT.ISO8859-1
512B    ./usr/local/share/nls/sr_YU.ISO8859-5
512B    ./usr/local/share/nls/hi_IN.ISCII-DEV
512B    ./usr/local/share/nls/ko_KR.eucKR
512B    ./usr/local/share/nls/sr_YU.ISO8859-2
512B    ./usr/local/share/nls/is_IS.ISO8859-1
512B    ./usr/local/share/nls/en_NZ.ISO8859-15
512B    ./usr/local/share/nls/hr_HR.UTF-8
512B    ./usr/local/share/nls/no_NO.ISO8859-15
512B    ./usr/local/share/nls/bg_BG.UTF-8
512B    ./usr/local/share/nls/ko_KR.CP949
512B    ./usr/local/share/nls/en_AU.US-ASCII
512B    ./usr/local/share/nls/fr_CH.ISO8859-1
512B    ./usr/local/share/nls/ko_KR.UTF-8
512B    ./usr/local/share/nls/be_BY.ISO8859-5
512B    ./usr/local/share/nls/ru_RU.UTF-8
512B    ./usr/local/share/nls/la_LN.ISO8859-2
512B    ./usr/local/share/nls/pt_BR.UTF-8
512B    ./usr/local/share/nls/sk_SK.UTF-8
512B    ./usr/local/share/nls/sv_SE.ISO8859-1
512B    ./usr/local/share/nls/es_ES.UTF-8
512B    ./usr/local/share/nls/it_IT.ISO8859-1
512B    ./usr/local/share/nls/no_NO.UTF-8
512B    ./usr/local/share/nls/it_CH.ISO8859-1
512B    ./usr/local/share/nls/it_CH.ISO8859-15
512B    ./usr/local/share/nls/zh_TW.Big5
512B    ./usr/local/share/nls/it_IT.UTF-8
512B    ./usr/local/share/nls/et_EE.UTF-8
512B    ./usr/local/share/nls/lt_LT.ISO8859-13
512B    ./usr/local/share/nls/ru_RU.KOI8-R
512B    ./usr/local/share/nls/kk_KZ.PT154
512B    ./usr/local/share/nls/zh_HK.UTF-8
512B    ./usr/local/share/nls/en_IE.UTF-8
512B    ./usr/local/share/nls/hy_AM.UTF-8
512B    ./usr/local/share/nls/en_AU.UTF-8
512B    ./usr/local/share/nls/zh_CN.eucCN
512B    ./usr/local/share/nls/fr_CA.ISO8859-15
512B    ./usr/local/share/nls/en_GB.UTF-8
512B    ./usr/local/share/nls/af_ZA.ISO8859-1
512B    ./usr/local/share/nls/he_IL.UTF-8
512B    ./usr/local/share/nls/is_IS.ISO8859-15
512B    ./usr/local/share/nls/fi_FI.UTF-8
512B    ./usr/local/share/nls/sl_SI.UTF-8
512B    ./usr/local/share/nls/be_BY.CP1251
512B    ./usr/local/share/nls/be_BY.UTF-8
512B    ./usr/local/share/nls/en_NZ.US-ASCII
512B    ./usr/local/share/nls/en_NZ.ISO8859-1
512B    ./usr/local/share/nls/fr_CH.UTF-8
512B    ./usr/local/share/nls/en_US.UTF-8
512B    ./usr/local/share/nls/en_GB.US-ASCII
512B    ./usr/local/share/nls/hu_HU.ISO8859-2
512B    ./usr/local/share/nls/nl_BE.ISO8859-1
512B    ./usr/local/share/nls/it_CH.UTF-8
512B    ./usr/local/share/nls/kk_KZ.UTF-8
512B    ./usr/local/share/nls/fr_CA.ISO8859-1
512B    ./usr/local/share/nls/en_CA.ISO8859-1
512B    ./usr/local/share/nls/el_GR.UTF-8
512B    ./usr/local/share/nls/hy_AM.ARMSCII-8
512B    ./usr/local/share/nls/pt_PT.UTF-8
512B    ./usr/local/share/nls/la_LN.ISO8859-1
512B    ./usr/local/share/nls/ru_RU.CP866
512B    ./usr/local/share/nls/be_BY.CP1131
512B    ./usr/local/share/nls/sr_YU.UTF-8
512B    ./usr/local/share/nls/la_LN.ISO8859-15
512B    ./usr/local/share/nls/en_CA.UTF-8
512B    ./usr/local/share/nls/ja_JP.eucJP
512B    ./usr/local/share/nls/da_DK.ISO8859-15
512B    ./usr/local/share/nls/hr_HR.ISO8859-2
512B    ./usr/local/share/nls/de_AT.ISO8859-15
 86K    ./usr/local/share/nls
512B    ./usr/local/share/sgml
512B    ./usr/local/share/dict
512B    ./usr/local/share/examples
512B    ./usr/local/share/info
512B    ./usr/local/share/aclocal
512B    ./usr/local/share/locale/az/LC_MESSAGES
1.0K    ./usr/local/share/locale/az
512B    ./usr/local/share/locale/en_GB/LC_MESSAGES
1.0K    ./usr/local/share/locale/en_GB
512B    ./usr/local/share/locale/sv/LC_MESSAGES
1.0K    ./usr/local/share/locale/sv
512B    ./usr/local/share/locale/fi/LC_MESSAGES
1.0K    ./usr/local/share/locale/fi
512B    ./usr/local/share/locale/lv/LC_MESSAGES
1.0K    ./usr/local/share/locale/lv
512B    ./usr/local/share/locale/br/LC_MESSAGES
1.0K    ./usr/local/share/locale/br
512B    ./usr/local/share/locale/eu/LC_MESSAGES
1.0K    ./usr/local/share/locale/eu
512B    ./usr/local/share/locale/pt/LC_MESSAGES
1.0K    ./usr/local/share/locale/pt
512B    ./usr/local/share/locale/es_MX/LC_MESSAGES
1.0K    ./usr/local/share/locale/es_MX
512B    ./usr/local/share/locale/ko/LC_MESSAGES
1.0K    ./usr/local/share/locale/ko
512B    ./usr/local/share/locale/de_AT/LC_MESSAGES
1.0K    ./usr/local/share/locale/de_AT
512B    ./usr/local/share/locale/id/LC_MESSAGES
1.0K    ./usr/local/share/locale/id
512B    ./usr/local/share/locale/ru/LC_MESSAGES
1.0K    ./usr/local/share/locale/ru
512B    ./usr/local/share/locale/fr_FR/LC_MESSAGES
1.0K    ./usr/local/share/locale/fr_FR
512B    ./usr/local/share/locale/mk/LC_MESSAGES
1.0K    ./usr/local/share/locale/mk
512B    ./usr/local/share/locale/ja/LC_MESSAGES
1.0K    ./usr/local/share/locale/ja
512B    ./usr/local/share/locale/ml/LC_MESSAGES
1.0K    ./usr/local/share/locale/ml
512B    ./usr/local/share/locale/de/LC_MESSAGES
1.0K    ./usr/local/share/locale/de
512B    ./usr/local/share/locale/vi/LC_MESSAGES
1.0K    ./usr/local/share/locale/vi
512B    ./usr/local/share/locale/nn/LC_MESSAGES
1.0K    ./usr/local/share/locale/nn
512B    ./usr/local/share/locale/en_AU/LC_MESSAGES
1.0K    ./usr/local/share/locale/en_AU
512B    ./usr/local/share/locale/uk/LC_MESSAGES
1.0K    ./usr/local/share/locale/uk
512B    ./usr/local/share/locale/el/LC_MESSAGES
1.0K    ./usr/local/share/locale/el
512B    ./usr/local/share/locale/sq/LC_MESSAGES
1.0K    ./usr/local/share/locale/sq
512B    ./usr/local/share/locale/th/LC_MESSAGES
1.0K    ./usr/local/share/locale/th
512B    ./usr/local/share/locale/am/LC_MESSAGES
1.0K    ./usr/local/share/locale/am
512B    ./usr/local/share/locale/tr/LC_MESSAGES
1.0K    ./usr/local/share/locale/tr
512B    ./usr/local/share/locale/zh/LC_MESSAGES
1.0K    ./usr/local/share/locale/zh
512B    ./usr/local/share/locale/sk/LC_MESSAGES
1.0K    ./usr/local/share/locale/sk
512B    ./usr/local/share/locale/be/LC_MESSAGES
1.0K    ./usr/local/share/locale/be
512B    ./usr/local/share/locale/is/LC_MESSAGES
1.0K    ./usr/local/share/locale/is
512B    ./usr/local/share/locale/da/LC_MESSAGES
1.0K    ./usr/local/share/locale/da
512B    ./usr/local/share/locale/dk/LC_MESSAGES
1.0K    ./usr/local/share/locale/dk
512B    ./usr/local/share/locale/fa_IR/LC_MESSAGES
1.0K    ./usr/local/share/locale/fa_IR
512B    ./usr/local/share/locale/pt_BR/LC_MESSAGES
1.0K    ./usr/local/share/locale/pt_BR
512B    ./usr/local/share/locale/sr@Latn/LC_MESSAGES
1.0K    ./usr/local/share/locale/sr@Latn
512B    ./usr/local/share/locale/ca/LC_MESSAGES
1.0K    ./usr/local/share/locale/ca
512B    ./usr/local/share/locale/pt_PT/LC_MESSAGES
1.0K    ./usr/local/share/locale/pt_PT
512B    ./usr/local/share/locale/ro/LC_MESSAGES
1.0K    ./usr/local/share/locale/ro
512B    ./usr/local/share/locale/it/LC_MESSAGES
1.0K    ./usr/local/share/locale/it
512B    ./usr/local/share/locale/eo/LC_MESSAGES
1.0K    ./usr/local/share/locale/eo
512B    ./usr/local/share/locale/ka/LC_MESSAGES
1.0K    ./usr/local/share/locale/ka
512B    ./usr/local/share/locale/ee/LC_MESSAGES
1.0K    ./usr/local/share/locale/ee
512B    ./usr/local/share/locale/ta/LC_MESSAGES
1.0K    ./usr/local/share/locale/ta
512B    ./usr/local/share/locale/sl/LC_MESSAGES
1.0K    ./usr/local/share/locale/sl
512B    ./usr/local/share/locale/tk/LC_MESSAGES
1.0K    ./usr/local/share/locale/tk
512B    ./usr/local/share/locale/sr/LC_MESSAGES
1.0K    ./usr/local/share/locale/sr
512B    ./usr/local/share/locale/hi/LC_MESSAGES
1.0K    ./usr/local/share/locale/hi
512B    ./usr/local/share/locale/en_CA/LC_MESSAGES
1.0K    ./usr/local/share/locale/en_CA
512B    ./usr/local/share/locale/wa/LC_MESSAGES
1.0K    ./usr/local/share/locale/wa
512B    ./usr/local/share/locale/es/LC_MESSAGES
1.0K    ./usr/local/share/locale/es
512B    ./usr/local/share/locale/pl/LC_MESSAGES
1.0K    ./usr/local/share/locale/pl
512B    ./usr/local/share/locale/hu/LC_MESSAGES
1.0K    ./usr/local/share/locale/hu
512B    ./usr/local/share/locale/or/LC_MESSAGES
1.0K    ./usr/local/share/locale/or
512B    ./usr/local/share/locale/ms/LC_MESSAGES
1.0K    ./usr/local/share/locale/ms
512B    ./usr/local/share/locale/no/LC_MESSAGES
1.0K    ./usr/local/share/locale/no
512B    ./usr/local/share/locale/ne/LC_MESSAGES
1.0K    ./usr/local/share/locale/ne
512B    ./usr/local/share/locale/gl/LC_MESSAGES
1.0K    ./usr/local/share/locale/gl
512B    ./usr/local/share/locale/gu/LC_MESSAGES
1.0K    ./usr/local/share/locale/gu
512B    ./usr/local/share/locale/ga/LC_MESSAGES
1.0K    ./usr/local/share/locale/ga
512B    ./usr/local/share/locale/nb/LC_MESSAGES
1.0K    ./usr/local/share/locale/nb
512B    ./usr/local/share/locale/mt/LC_MESSAGES
1.0K    ./usr/local/share/locale/mt
512B    ./usr/local/share/locale/es_ES/LC_MESSAGES
1.0K    ./usr/local/share/locale/es_ES
512B    ./usr/local/share/locale/hr/LC_MESSAGES
1.0K    ./usr/local/share/locale/hr
512B    ./usr/local/share/locale/zh_CN.GB2312/LC_MESSAGES
1.0K    ./usr/local/share/locale/zh_CN.GB2312
512B    ./usr/local/share/locale/zh_TW.Big5/LC_MESSAGES
1.0K    ./usr/local/share/locale/zh_TW.Big5
512B    ./usr/local/share/locale/pa/LC_MESSAGES
1.0K    ./usr/local/share/locale/pa
512B    ./usr/local/share/locale/et/LC_MESSAGES
1.0K    ./usr/local/share/locale/et
512B    ./usr/local/share/locale/bs/LC_MESSAGES
1.0K    ./usr/local/share/locale/bs
512B    ./usr/local/share/locale/li/LC_MESSAGES
1.0K    ./usr/local/share/locale/li
512B    ./usr/local/share/locale/kn/LC_MESSAGES
1.0K    ./usr/local/share/locale/kn
512B    ./usr/local/share/locale/bg/LC_MESSAGES
1.0K    ./usr/local/share/locale/bg
512B    ./usr/local/share/locale/en/LC_MESSAGES
1.0K    ./usr/local/share/locale/en
512B    ./usr/local/share/locale/fr/LC_MESSAGES
1.0K    ./usr/local/share/locale/fr
512B    ./usr/local/share/locale/mn/LC_MESSAGES
1.0K    ./usr/local/share/locale/mn
512B    ./usr/local/share/locale/zh_TW/LC_MESSAGES
1.0K    ./usr/local/share/locale/zh_TW
512B    ./usr/local/share/locale/nl/LC_MESSAGES
1.0K    ./usr/local/share/locale/nl
512B    ./usr/local/share/locale/uz/LC_MESSAGES
1.0K    ./usr/local/share/locale/uz
512B    ./usr/local/share/locale/cs/LC_MESSAGES
1.0K    ./usr/local/share/locale/cs
512B    ./usr/local/share/locale/cy/LC_MESSAGES
1.0K    ./usr/local/share/locale/cy
512B    ./usr/local/share/locale/fa/LC_MESSAGES
1.0K    ./usr/local/share/locale/fa
512B    ./usr/local/share/locale/af/LC_MESSAGES
1.0K    ./usr/local/share/locale/af
512B    ./usr/local/share/locale/he/LC_MESSAGES
1.0K    ./usr/local/share/locale/he
512B    ./usr/local/share/locale/tg/LC_MESSAGES
1.0K    ./usr/local/share/locale/tg
512B    ./usr/local/share/locale/ar/LC_MESSAGES
1.0K    ./usr/local/share/locale/ar
512B    ./usr/local/share/locale/bn/LC_MESSAGES
1.0K    ./usr/local/share/locale/bn
512B    ./usr/local/share/locale/lt/LC_MESSAGES
1.0K    ./usr/local/share/locale/lt
512B    ./usr/local/share/locale/zh_CN/LC_MESSAGES
1.0K    ./usr/local/share/locale/zh_CN
 99K    ./usr/local/share/locale
512B    ./usr/local/share/man/man7
512B    ./usr/local/share/man/man4
512B    ./usr/local/share/man/man9
512B    ./usr/local/share/man/man3
512B    ./usr/local/share/man/man1
512B    ./usr/local/share/man/man6
512B    ./usr/local/share/man/man2
512B    ./usr/local/share/man/man8
512B    ./usr/local/share/man/man5
 16K    ./usr/local/share/man
512B    ./usr/local/share/doc/ja
1.0K    ./usr/local/share/doc
512B    ./usr/local/share/applications
512B    ./usr/local/share/misc
512B    ./usr/local/share/bash-completion/completions
1.0K    ./usr/local/share/bash-completion
512B    ./usr/local/share/xml
512B    ./usr/local/share/icons
512B    ./usr/local/share/skel
512B    ./usr/local/share/emacs/site-lisp
1.0K    ./usr/local/share/emacs
512B    ./usr/local/share/licenses/py39-poetry-core-1.4.0_2/LICENSE
6.0K    ./usr/local/share/licenses/py39-poetry-core-1.4.0_2/MIT
6.0K    ./usr/local/share/licenses/py39-poetry-core-1.4.0_2/catalog.mk
 13K    ./usr/local/share/licenses/py39-poetry-core-1.4.0_2
 14K    ./usr/local/share/licenses
512B    ./usr/local/share/fish/vendor_completions.d
1.0K    ./usr/local/share/fish
512B    ./usr/local/share/zsh/site-functions
1.0K    ./usr/local/share/zsh
512B    ./usr/local/share/java/classes
1.0K    ./usr/local/share/java
512B    ./usr/local/share/pixmaps
237K    ./usr/local/share
396K    ./usr/local
396K    ./usr
397K    .
Comment 5 alt2600 2023-04-07 02:17:08 UTC
(In reply to alt2600 from comment #4)
but of course, as expected works fine in poudriere builds, in so far as it produces a package with python in it. so potential workaround for folks once its figured out why its broken using ports for folks who just want 10G usb-c support when 13.2 comes out tomorrow???

/usr/local/poudriere/data/packages/131amd64-default/All|$ pkg info -l -F ./py39-poetry-core-1.4.0_2.pkg
py39-poetry-core-1.4.0_2:
        /usr/local/share/licenses/py39-poetry-core-1.4.0_2/catalog.mk
        /usr/local/share/licenses/py39-poetry-core-1.4.0_2/LICENSE
        /usr/local/share/licenses/py39-poetry-core-1.4.0_2/MIT
        /usr/local/lib/python3.9/site-packages/poetry/core/__init__.py
        /usr/local/lib/python3.9/site-packages/poetry/core/__pycache__/__init__.cpython-39.opt-1.pyc
        /usr/local/lib/python3.9/site-packages/poetry/core/__pycache__/__init__.cpython-39.pyc
        /usr/local/lib/python3.9/site-packages/poetry/core/__pycache__/factory.cpython-39.opt-1.pyc
        /usr/local/lib/python3.9/site-packages/poetry/core/__pycache__/factory.cpython-39.pyc
        /usr/local/lib/python3.9/site-packages/poetry/core/__pycache__/poetry.cpython-39.opt-1.pyc
        /usr/local/lib/python3.9/site-packages/poetry/core/__pycache__/poetry.cpython-39.pyc
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/__pycache__/_pyrsistent_version.cpython-39.opt-1.pyc
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/__pycache__/_pyrsistent_version.cpython-39.pyc
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/__pycache__/typing_extensions.cpython-39.opt-1.pyc
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/__pycache__/typing_extensions.cpython-39.pyc
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/_pyrsistent_version.py
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attr/__init__.py
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attr/__pycache__/__init__.cpython-39.opt-1.pyc
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attr/__pycache__/__init__.cpython-39.pyc
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attr/__pycache__/_cmp.cpython-39.opt-1.pyc
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attr/__pycache__/_cmp.cpython-39.pyc
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attr/__pycache__/_compat.cpython-39.opt-1.pyc
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attr/__pycache__/_compat.cpython-39.pyc
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attr/__pycache__/_config.cpython-39.opt-1.pyc
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attr/__pycache__/_config.cpython-39.pyc
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attr/__pycache__/_funcs.cpython-39.opt-1.pyc
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attr/__pycache__/_funcs.cpython-39.pyc
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attr/__pycache__/_make.cpython-39.opt-1.pyc
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attr/__pycache__/_make.cpython-39.pyc
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attr/__pycache__/_next_gen.cpython-39.opt-1.pyc
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attr/__pycache__/_next_gen.cpython-39.pyc
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attr/__pycache__/_version_info.cpython-39.opt-1.pyc
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attr/__pycache__/_version_info.cpython-39.pyc
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attr/__pycache__/converters.cpython-39.opt-1.pyc
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attr/__pycache__/converters.cpython-39.pyc
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attr/__pycache__/exceptions.cpython-39.opt-1.pyc
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attr/__pycache__/exceptions.cpython-39.pyc
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attr/__pycache__/filters.cpython-39.opt-1.pyc
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attr/__pycache__/filters.cpython-39.pyc
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attr/__pycache__/setters.cpython-39.opt-1.pyc
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attr/__pycache__/setters.cpython-39.pyc
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attr/__pycache__/validators.cpython-39.opt-1.pyc
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attr/__pycache__/validators.cpython-39.pyc
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attr/_cmp.py
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attr/_compat.py
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attr/_config.py
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attr/_funcs.py
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attr/_make.py
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attr/_next_gen.py
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attr/_version_info.py
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attr/converters.py
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attr/exceptions.py
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attr/filters.py
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attr/py.typed
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attr/setters.py
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attr/validators.py
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attrs/LICENSE
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attrs/__init__.py
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attrs/__pycache__/__init__.cpython-39.opt-1.pyc
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attrs/__pycache__/__init__.cpython-39.pyc
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attrs/__pycache__/converters.cpython-39.opt-1.pyc
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attrs/__pycache__/converters.cpython-39.pyc
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attrs/__pycache__/exceptions.cpython-39.opt-1.pyc
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attrs/__pycache__/exceptions.cpython-39.pyc
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attrs/__pycache__/filters.cpython-39.opt-1.pyc
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attrs/__pycache__/filters.cpython-39.pyc
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attrs/__pycache__/setters.cpython-39.opt-1.pyc
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attrs/__pycache__/setters.cpython-39.pyc
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attrs/__pycache__/validators.cpython-39.opt-1.pyc
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attrs/__pycache__/validators.cpython-39.pyc
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attrs/converters.py
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attrs/exceptions.py
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attrs/filters.py
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attrs/py.typed
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attrs/setters.py
        /usr/local/lib/python3.9/site-packages/poetry/core/_vendor/attrs/validators.py
  

truncated, longer than 65353 character limit for comments
Comment 6 Po-Chuan Hsieh freebsd_committer freebsd_triage 2023-04-09 21:31:57 UTC
(In reply to Rainer Hurling from comment #2)

Which python version are you using?
It's python 3.9 in comment #0 and python 3.11 in comment #2.

(In reply to Marco Beishuizen from comment #3)
(In reply to alt2600 from comment #4)

I have no idea what happened. I cannot reproduce this error in a live system or poudriere.

Could you please check the RECORD file (/usr/local/lib/python3.9/site-packages/poetry_core-1.4.0.dist-info/RECORD). I'm curious about its content.
Comment 7 Rainer Hurling freebsd_committer freebsd_triage 2023-04-10 05:49:01 UTC
(In reply to Po-Chuan Hsieh from comment #6)

Sorry, my comment #2 was misleading. Python 3.11 was a copy and paste error from your example :(

In my real life box I am using Python 3.9 and the problem happens here, in an unclean environment:

# ll /usr/local/lib/python3.9/site-packages/poetry/core/masonry/api.py
ls: /usr/local/lib/python3.9/site-packages/poetry/core/masonry/api.py: No such file or directory

# cat /usr/local/lib/python3.9/site-packages/poetry_core-1.4.0.dist-info/RECORD
poetry_core-1.4.0.dist-info/WHEEL,sha256=vVCvjcmxuUltf8cYhJ0sJMRDLr1XsPuxEId8YDzbyCY,88
poetry_core-1.4.0.dist-info/LICENSE,sha256=8ZeBM3grkPRzO8MI3bGSZ8P-BHl8iNntO8IZAySVqYI,1062
poetry_core-1.4.0.dist-info/METADATA,sha256=O-xRssrahf0lxDO13akcC2njVag6pGclX2jYIcb1cjg,3428
poetry_core-1.4.0.dist-info/RECORD,,



A build from within Poudriere gives me a full package devel/py-poetry-core with all .py files installed and

# ll /usr/local/lib/python3.9/site-packages/poetry/core/masonry/api.py
-rw-r--r--  1 root  wheel  - 2549  2023-04-07 07:36:39  /usr/local/lib/python3.9/site-packages/poetry/core/masonry/api.py
Comment 8 Marco Beishuizen 2023-04-10 12:15:06 UTC
My complete error:
...

===>  Building for py39-poetry2setup-1.1.0_1
* Getting build dependencies for wheel...

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/pyproject_hooks/_impl.py", line 321, in _call_hook
    raise BackendUnavailable(data.get('traceback', ''))
pyproject_hooks._impl.BackendUnavailable: Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/pyproject_hooks/_in_process/_in_process.py", line 77, in _build_backend
    obj = import_module(mod_path)
  File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'poetry'

ERROR Backend 'poetry.core.masonry.api' is not available.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/devel/py-poetry2setup
*** Error code 1

Stop.
make: stopped in /usr/ports/security/py-python-gvm
egrep: empty (sub)expression
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade20230409-55930-ikevgz env UPGRADE_TOOL=portupgrade UPGRADE_PORT=py39-python-gvm-22.9.1 UPGRADE_PORT_VER=22.9.1 make
** Fix the problem and try again.
...
Comment 9 Marco Beishuizen 2023-04-10 12:19:48 UTC
(In reply to Po-Chuan Hsieh from comment #6)
BTW I don't have a /usr/local/lib/python3.9/site-packages/poetry_core-1.4.0.dist-info directory
Comment 10 Marco Beishuizen 2023-04-13 16:09:19 UTC
[SOLVED]

By installing devel/py-pip and do a "pip install" for every module that cannot be found (like in my case "pip install poetry" and "pip install poetry2setup").
Comment 11 alt2600 2023-04-13 22:05:33 UTC
(In reply to Marco Beishuizen from comment #10)

Don't think this is a wise course, as this will install all the packages using pip manager, not pkg so it will not register any of the installs with the OS, just python. 

This is what I gleaned while rebuilding all my ports after a 13.2 source update. I think the issue is /usr/local/lib/python3.9/site-packages has become corrupt/full of junk/possible pkg plist corruption, which I thought was a relatively recent bug reported on pkg. I created myself a flavored list of my packages so I could pkg delete -a everything and essentially use portmaster to install everything new. Ran into LOOOTS of pain. everything basically appeared to have circular dependencies: py-setuptools required libimportlib-metadata, which required py-setuptools; and after cheating a bit with the Freebsd repo to install some of these items I ended up in a deadlock where cython needed pythran, which needed py-numpy which needed cython. So I wiped my ports again and checked site-packages and found it was NOT empty, it had seemingly all my previous python packages were there in a mangled state were most of the libraries were gone but the basic __init__.py files remained and a few others, so enough for the modules to load, but be completely broken. I then wiped my site-packages out with rm -rf and tried again.

prior to manually wiping site-packages py-poetry-core reported this new fun error to me 

===>  License MIT accepted by the user
===>   py39-poetry-core-1.4.0_2 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by py39-poetry-core-1.4.0_2 for building
===>  Extracting for py39-poetry-core-1.4.0_2
=> SHA256 Checksum OK for poetry_core-1.4.0.tar.gz.
===>  Patching for py39-poetry-core-1.4.0_2
===>   py39-poetry-core-1.4.0_2 depends on file: /usr/local/bin/python3.9 - found
===>   py39-poetry-core-1.4.0_2 depends on package: py39-build>=0 - found
===>   py39-poetry-core-1.4.0_2 depends on package: py39-installer>=0 - found
===>  Configuring for py39-poetry-core-1.4.0_2
===>  Building for py39-poetry-core-1.4.0_2
* Getting build dependencies for wheel...
* Building wheel...
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
    main()
  File "/usr/local/lib/python3.9/site-packages/pyproject_hooks/_in_process/_in_process.py", line 335, in main
    json_out['return_val'] = hook(**hook_input['kwargs'])
  File "/usr/local/lib/python3.9/site-packages/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel
    return _build_backend().build_wheel(wheel_directory, config_settings,
  File "/usr/ports/devel/py-poetry-core/work-py39/poetry_core-1.4.0/src/poetry/core/masonry/api.py", line 53, in build_wheel
    poetry = Factory().create_poetry(Path(".").resolve(), with_groups=False)
  File "/usr/ports/devel/py-poetry-core/work-py39/poetry_core-1.4.0/src/poetry/core/factory.py", line 51, in create_poetry
    check_result = self.validate(local_config)
  File "/usr/ports/devel/py-poetry-core/work-py39/poetry_core-1.4.0/src/poetry/core/factory.py", line 387, in validate
    validation_errors = validate_object(config, "poetry-schema")
  File "/usr/ports/devel/py-poetry-core/work-py39/poetry_core-1.4.0/src/poetry/core/json/__init__.py", line 25, in validate_object
    from jsonschema import Draft7Validator
  File "/usr/ports/devel/py-poetry-core/work-py39/poetry_core-1.4.0/src/poetry/core/_vendor/jsonschema/__init__.py", line 13, in <module>
    from jsonschema._format import FormatChecker
  File "/usr/ports/devel/py-poetry-core/work-py39/poetry_core-1.4.0/src/poetry/core/_vendor/jsonschema/_format.py", line 287, in <module>
    raises=(idna.IDNAError, UnicodeError),
AttributeError: module 'idna' has no attribute 'IDNAError'

ERROR Backend subprocess exited when trying to invoke build_wheel
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/py-poetry-core


after wiping it staged and installed fine. Just tried again many ports down the line and it stages fine. I believe the only resolution is to make note of your python packages, delete them all, possibly including python itself, manually delete the site-packages directory and reinstall python and your libraries. This appears to have fixed all the apparent circular dependencies that seemed to appear on a system with no installed ports. Really wish I made a list of the files remaining for python following a pkg delete -a so they could be all identified to see if this is a plist issue, or maybe fallout from the pkg bug that I recall seeing, but not sure when. If folks in python feel this list of leftovers could be useful I can recreate, just going to be a while of re-builds before I can dump out the zfs snapshots and tar them into a VM to recreate the process and get the list of leftover files generated. Let me know, I can post here or in other report, whatever is desired if the list of files is wanted. Either way I think the real fix is to wipe python out selectively with is libs, wipe site-packages and reinstall them to ensure all installed files are registered. If I make the artifact list, I can double check some ore maybe all of them on my updated system to ensure they are registered to specific pkgs. If folks are unsure how to make a list of origin/port@flavor I can post my incredibly inefficient shell script as I know of no direct way to do it, at least not with the added option of including the Freebsd ABI version in the output. I think I surrender though, going to look at finishing my script to convert portconf config files to poudriere compatible ones so at least during upgrades I can use my locally generated repo, and know any potential headaches with ports that don't build ahead of time.
Comment 12 Anonymous 2023-04-21 06:57:45 UTC
i have similar issue with FreeBSD-13.2

trying to build rdflib:

===>  Building for py39-rdflib-6.3.2
* Getting build dependencies for wheel...

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/pyproject_hooks/_impl.py", line 321, in _call_hook
    raise BackendUnavailable(data.get('traceback', ''))
pyproject_hooks._impl.BackendUnavailable: Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/pyproject_hooks/_in_process/_in_process.py", line 77, in _build_backend
    obj = import_module(mod_path)
  File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'poetry'

ERROR Backend 'poetry.core.masonry.api' is not available.
*** Error code 1

#pkg info -x poetry
py39-poetry-core-1.4.0_2
Comment 13 Anonymous 2023-04-27 06:24:31 UTC
(In reply to Anonymous from comment #12)
I reinstalled everything from 0, no problems at all.
probably it's updating issue with old *.pyc files
Comment 14 Anonymous 2023-04-29 10:23:08 UTC
... and problem is still here

This is how py-poetry-core builds from ports:

#make clean ; make install
===>  Cleaning for py39-poetry-core-1.4.0_2
===>  License MIT accepted by the user
===>   py39-poetry-core-1.4.0_2 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by py39-poetry-core-1.4.0_2 for building
===>  Extracting for py39-poetry-core-1.4.0_2
=> SHA256 Checksum OK for poetry_core-1.4.0.tar.gz.
===>  Patching for py39-poetry-core-1.4.0_2
===>   py39-poetry-core-1.4.0_2 depends on file: /usr/local/bin/python3.9 - found
===>   py39-poetry-core-1.4.0_2 depends on package: py39-build>=0 - found
===>   py39-poetry-core-1.4.0_2 depends on package: py39-installer>=0 - found
===>  Configuring for py39-poetry-core-1.4.0_2
===>  Building for py39-poetry-core-1.4.0_2
* Getting build dependencies for wheel...
* Building wheel...
Successfully built poetry_core-1.4.0-py3-none-any.whl
===>  Staging for py39-poetry-core-1.4.0_2
===>   py39-poetry-core-1.4.0_2 depends on file: /usr/local/bin/python3.9 - found
===>   Generating temporary packing list
===> Creating unique files: Move MAN files needing SUFFIX
===> Creating unique files: Move files needing SUFFIX
====> Compressing man pages (compress-man)
===>  Installing for py39-poetry-core-1.4.0_2
===>  Checking if py39-poetry-core is already installed
===>   Registering installation for py39-poetry-core-1.4.0_2
Installing py39-poetry-core-1.4.0_2...

Ok, but package is almost empty and there no errors about it:
pkg info -l -x poetry-core
py39-poetry-core-1.4.0_2:
        /usr/local/lib/python3.9/site-packages/poetry_core-1.4.0.dist-info/LICENSE
        /usr/local/lib/python3.9/site-packages/poetry_core-1.4.0.dist-info/METADATA
        /usr/local/lib/python3.9/site-packages/poetry_core-1.4.0.dist-info/RECORD
        /usr/local/lib/python3.9/site-packages/poetry_core-1.4.0.dist-info/WHEEL
        /usr/local/share/licenses/py39-poetry-core-1.4.0_2/LICENSE
        /usr/local/share/licenses/py39-poetry-core-1.4.0_2/MIT
        /usr/local/share/licenses/py39-poetry-core-1.4.0_2/catalog.mk

it's clean system, without jails, i just want to build py-rdflib
Comment 15 Anonymous 2023-04-29 15:23:30 UTC
I wiped out all packages again and installed tmux and portmaster only
right after this i successefully built devel/py-poetry-core

I don't know why it happens, probably some other python port cause problem.
So for now i'll just put this port on top of my build list.
Comment 16 Anonymous 2023-05-03 16:57:19 UTC
I think i understood when problem is appearing. 

I think I understand where the problem comes from. Today I was updating my ports and there was a problem with www/qt6-webengine, an error occurred due to the supposedly missing py-html5lib and then I remembered how I struggled with similar problems earlier, and most importantly why. 

With the installation of various ports, some of them required a specific version of python other than the default. I'm not familiar with python as a language, but the problem was the incorrect definition of the path to the python executable. Which I successfully solved with an ugly hack:

#cd /usr/local/bin
#ln -s python3.9 python

my guess is that the python port using poetry was not detecting the python version correctly and was trying to find poetry in other subdirectories, like python3.10 and fails.
Comment 17 Tomasz Sowa 2023-05-07 05:10:51 UTC
For me uninstalling git has helped:
pkg delete -f devel/git
cd /usr/ports/devel/py-poetry-core
make deinstall
make all install clean
pkg info -l devel/py-poetry-core | wc -l
     682
Comment 18 commit-hook freebsd_committer freebsd_triage 2023-05-07 21:21:38 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=446080c1d0fe12b31c5fb6229d24f6203ce879a2

commit 446080c1d0fe12b31c5fb6229d24f6203ce879a2
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-05-07 21:13:31 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-05-07 21:13:31 +0000

    devel/py-poetry-core: Try to fix build

    PR:             270549

 devel/py-poetry-core/Makefile | 1 +
 1 file changed, 1 insertion(+)
Comment 19 commit-hook freebsd_committer freebsd_triage 2023-05-07 22:46:55 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f80a19654a44654dd495c8c86c9e0c370a4a3c74

commit f80a19654a44654dd495c8c86c9e0c370a4a3c74
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-05-07 22:44:45 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-05-07 22:44:59 +0000

    devel/py-poetry-core: Try to fix build

    PR:             270549

 devel/py-poetry-core/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 20 Henri Hennebert 2023-05-08 06:44:33 UTC
(In reply to commit-hook from comment #19)
The fix work for me.

Thanks to all involve
Comment 21 Yoshisato Yanagisawa 2023-08-13 10:18:57 UTC
I reached this buganizer by searching with "AttributeError: module 'idna' has no attribute 'IDNAError'".

It happened when I was updating it to 1.6.1.
I could resolve the issue by manually installing dns/py-idna.
Just in case somebody hit the same issue.