Opened 9 years ago

Closed 9 years ago

#49910 closed defect (fixed)

py-m2crypto @0.22.3: AttributeError: 'module' object has no attribute 'PKCS5_SALT_LEN'

Reported by: Dmole (Tim) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: haspatch Cc: mndavidoff (Monte Davidoff)
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?

Attachments (1)

Portfile.diff (1.7 KB) - added by mndavidoff (Monte Davidoff) 9 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 9 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 9 years ago by mndavidoff (Monte Davidoff)

Attachment: Portfile.diff added

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

Cc: md14-macports@… added

Cc Me!

comment:3 Changed 9 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'

comment:4 Changed 9 years ago by Dmole (Tim)

Thanks that diff fixed it.

comment:5 Changed 9 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

Fixed by updating to 0.22.5 (the latest final release) in r143263.

Note: See TracTickets for help on using tickets.