Bug 266989 - security/py-cryptography : does not find rust bindings
Summary: security/py-cryptography : does not find rust bindings
Status: Closed DUPLICATE of bug 254853
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:
: 266946 (view as bug list)
Depends on: 266937
Blocks:
  Show dependency treegraph
 
Reported: 2022-10-12 11:18 UTC by freebsd
Modified: 2023-04-09 21:29 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 freebsd 2022-10-12 11:18:17 UTC
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
Comment 1 Guido Falsi freebsd_committer freebsd_triage 2022-10-12 11:31:13 UTC
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.
Comment 2 freebsd 2022-10-13 09:02:22 UTC
(In reply to Guido Falsi from comment #1)
Thanks, works with patch at least for duplicity
Comment 3 Enji Cooper freebsd_committer freebsd_triage 2023-03-12 19:30:52 UTC
Would it make sense to duplicate this to bug 254853?
Comment 4 Enji Cooper freebsd_committer freebsd_triage 2023-03-13 21:46:13 UTC
*** Bug 266946 has been marked as a duplicate of this bug. ***
Comment 5 Po-Chuan Hsieh freebsd_committer freebsd_triage 2023-04-09 21:29:59 UTC
Let's track the update in bug #254853.

*** This bug has been marked as a duplicate of bug 254853 ***