Since upgrade of port (built by poudriere) my duplicity fails with error BackendException: Could not initialize backend: cannot import name 'asn1' from 'cryptography.hazmat.bindings._rust' (unknown location) In the poudriere log I see : /usr/local/lib/python3.9/site-packages/setuptools/command/build_py.py:153: SetuptoolsDeprecationWarning: Installing 'cryptography.hazmat.bindings._rust' as data is deprecated, please list it in `packages`. !! ############################ # Package would be ignored # ############################ Python recognizes 'cryptography.hazmat.bindings._rust' as an importable package, but it is not listed in the `packages` configuration of setuptools. 'cryptography.hazmat.bindings._rust' has been automatically added to the distribution only because it may contain data files, but this behavior is likely to change in future versions of setuptools (and therefore is considered deprecated). Please make sure that 'cryptography.hazmat.bindings._rust' is included as a package by using the `packages` configuration field or the proper discovery methods (for example by using `find_namespace_packages(...)`/`find_namespace:` instead of `find_packages(...)`/`find:`). You can read more about "package discovery" and "data files" on setuptools documentation page. !! which seems linked to this problem
This is affecting a lot of ports, at present it is being discussed in bug #266937 Also, bug #254853 appears to contain the correct fix.
(In reply to Guido Falsi from comment #1) Thanks, works with patch at least for duplicity
Would it make sense to duplicate this to bug 254853?
*** Bug 266946 has been marked as a duplicate of this bug. ***
Let's track the update in bug #254853. *** This bug has been marked as a duplicate of bug 254853 ***