Opened 5 years ago
Last modified 5 years ago
#58835 new defect
gajim OpenSSL.rand.load_file(str(RNG_SEED)) AttributeError: 'module' object has no attribute 'load_file' — at Initial Version
Reported by: | vm4866571246066832v | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.5.4 |
Keywords: | Cc: | ||
Port: | gajim |
Description
starting gajim, I get:
Traceback (most recent call last): File "gajim.py", line 307, in <module> OpenSSL.rand.load_file(str(RNG_SEED)) AttributeError: 'module' object has no attribute 'load_file'
installed ports:
gajim @0.16.8_0 (active) openssl @1.0.2s_0 (active) py27-openssl @19.0.0_0 (active) libgcrypt @1.8.4_0 (active) py27-asn1crypto @0.24.0_0 (active) py27-crypto @2.6.1_1 (active) py27-cryptography @2.7_0 (active)
A net search has several hits about this topic, some say it's an issue in an OpenSSL Python module, then there is a Gajim fix mentioned.
Because the code block regarding the rand seed is optional anyway, I added a catch of the exception to work around the problem.
/opt/local/share/gajim/src/gajim.py 310 except ImportError: 311 log.info("PyOpenSSL PRNG not available") 312 except AttributeError: 313 log.info("PyOpenSSL PRNG not available")
Note: See
TracTickets for help on using
tickets.