Opened 8 years ago

Last modified 8 years ago

#49910 closed defect

py-m2crypto @0.22.3: AttributeError: 'module' object has no attribute 'PKCS5_SALT_LEN' — at Version 3

Reported by: Dmole (Tim) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: haspatch Cc: md14-macports@…
Port: py-m2crypto

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Traceback (most recent call last):
  File "<stdin>", line 185, in <module>
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/M2Crypto/__init__.py", line 24, in <module>
    import ASN1
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/M2Crypto/ASN1.py", line 12, in <module>
    import BIO
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/M2Crypto/BIO.py", line 221, in <module>
    class CipherStream(BIO):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/M2Crypto/BIO.py", line 227, in CipherStream
    SALT_LEN = m2.PKCS5_SALT_LEN
AttributeError: 'module' object has no attribute 'PKCS5_SALT_LEN'

maybe the port needs to point to a more sable or developed upstream?

Change History (4)

comment:1 Changed 8 years ago by mndavidoff (Monte Davidoff)

The problem is an incompatibility between M2Crypto 0.22.3 and the current version of swig. It has been fixed upstream. I've attached a patch to upgrade M2Crypto to 0.22.6rc4, the current version on PyPI.

Changed 8 years ago by mndavidoff (Monte Davidoff)

Attachment: Portfile.diff added

comment:2 Changed 8 years ago by mndavidoff (Monte Davidoff)

Cc: md14-macports@… added

Cc Me!

comment:3 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: haspatch added
Port: py-m2crypto added; M2Crypto removed
Summary: M2Crypto PKCS5_SALT_LENpy-m2crypto @0.22.3: AttributeError: 'module' object has no attribute 'PKCS5_SALT_LEN'
Note: See TracTickets for help on using tickets.