Bug 267236

Summary: security/py-notus-scanner: poudriere configure failure (FBSD 13.1-RELENG)
Product: Ports & Packages Reporter: O. Hartmann <ohartmann>
Component: Individual Port(s)Assignee: Jose Alonso Cardenas Marquez <acm>
Status: Closed FIXED    
Severity: Affects Many People CC: ebay, ohartmann, stewart+FreeBSD-BugZilla
Priority: --- Flags: bugzilla: maintainer-feedback? (acm)
Version: Latest   
Hardware: Any   
OS: Any   
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267235

Description O. Hartmann 2022-10-21 06:28:08 UTC
The port fails to build in poudriere the very same way as the port reported in PR 267235 does, always the build system complains about 

ModuleNotFoundError: No module named 'poetry.core.constraints'

see below and also see #267235.

The environemnt of this specific PR is the same as it is for PR 267235, please consider looking at that PR for more information if requested.

[...]

===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===========================================================================
=======================<phase: configure      >============================
===== env: NO_DEPENDS=yes USER=nobody UID=65534 GID=65534
===>  Configuring for py39-notus-scanner-22.4.1
Traceback (most recent call last):
  File "/usr/local/bin/poetry2setup", line 33, in <module>
    sys.exit(load_entry_point('poetry2setup==1.0.0', 'console_scripts', 'poetry2setup')())
  File "/usr/local/lib/python3.9/site-packages/poetry2setup.py", line 13, in main
    print(build_setup_py().decode("utf8"))
  File "/usr/local/lib/python3.9/site-packages/poetry2setup.py", line 9, in build_setup_py
    return SdistBuilder(Factory().create_poetry(Path(".").resolve())).build_setup()
  File "/usr/local/lib/python3.9/site-packages/poetry/core/factory.py", line 63, in create_poetry
    package = self.get_package(name, version)
  File "/usr/local/lib/python3.9/site-packages/poetry/core/factory.py", line 72, in get_package
    from poetry.core.packages.project_package import ProjectPackage
  File "/usr/local/lib/python3.9/site-packages/poetry/core/packages/project_package.py", line 6, in <module>
    from poetry.core.constraints.version import parse_constraint
ModuleNotFoundError: No module named 'poetry.core.constraints'
*** Error code 1

Stop.
make: stopped in /usr/ports/security/py-notus-scanner
=>> Cleaning up wrkdir
===>  Cleaning for py39-notus-scanner-22.4.1
build of security/py-notus-scanner@py39 | py39-notus-scanner-22.4.1 ended at Fri Oct 21 03:06:33 UTC 2022
build time: 00:00:09
!!! build failure encountered !!!
Comment 1 Stewart Morgan 2022-10-21 09:14:22 UTC
I've submitted a patch for devel/py-poetry-core which fixes the missing package for me:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267251

Stewart.
Comment 2 Jose Alonso Cardenas Marquez freebsd_committer freebsd_triage 2022-11-16 01:27:35 UTC
I have commit changes to devel/py-poetry-core. It should build with problems right now. Thanks!