Opened 3 years ago

Closed 3 years ago

#63985 closed defect (duplicate)

py-cryptography cannot import OpenSSL 3 bindings due to missing symbol

Reported by: Tatsh (Andrew Udvare) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: openssl3 Cc: stromnov@…
Port: py-cryptography

Description

With Python 3.9 and py39-cryptography installed:

from cryptography.hazmat.bindings._openssl import ffi, lib
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/cryptography/hazmat/bindings/_openssl.abi3.so, 0x0002): symbol not found in flat namespace '_ERR_put_error'

This is used implicitly by many packages including Paramiko's SFTP client.

Change History (3)

comment:1 Changed 3 years ago by cjones051073 (Chris Jones)

Please update your ports and try again, as this was fixed in

https://github.com/macports/macports-ports/commit/9f6062fb46ed4016e7928f6e83142350117734c3

comment:2 Changed 3 years ago by cjones051073 (Chris Jones)

the import above works fine for me, with that commit

Oberon ~/Projects/MacPorts/ports > python3
Python 3.10.0 (default, Nov 15 2021, 11:42:39) [Clang 13.0.0 (clang-1300.0.29.3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from cryptography.hazmat.bindings._openssl import ffi, lib
>>> 

comment:3 Changed 3 years ago by cjones051073 (Chris Jones)

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.