Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 519706 - net-p2p/tribler - File "/usr/lib64/python2.7/site-packages/M2Crypto/EC.py", line 15, in <module> m2.ec_init(ECError) AttributeError: 'module' object has no attribute 'ec_init'
Summary: net-p2p/tribler - File "/usr/lib64/python2.7/site-packages/M2Crypto/EC.py", l...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-12 11:22 UTC by Emmanuel Anne
Modified: 2014-09-09 00:11 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Emmanuel Anne 2014-08-12 11:22:13 UTC
the bug is with m2crypto which is used by tribler, I tried the default 6.0.3 version and the 6.2.0.
The error is :
Traceback (most recent call last):
  File "Tribler/Main/tribler.py", line 34, in <module>
    from Tribler.Core.CacheDB.SqliteCacheDBHandler import ChannelCastDBHandler
  File "/usr/share/tribler/Tribler/Core/CacheDB/SqliteCacheDBHandler.py", line 14, in <module>
    from Tribler.Core.TorrentDef import TorrentDef
  File "/usr/share/tribler/Tribler/Core/TorrentDef.py", line 28, in <module>
    from Tribler.Core.ClosedSwarm import ClosedSwarm
  File "/usr/share/tribler/Tribler/Core/ClosedSwarm/ClosedSwarm.py", line 8, in <module>
    from M2Crypto.EC import pub_key_from_der
  File "/usr/lib64/python2.7/site-packages/M2Crypto/EC.py", line 15, in <module>
    m2.ec_init(ECError)
AttributeError: 'module' object has no attribute 'ec_init'

readable in ~/.Tribler/tribler.log immediately after launching tribler !
Comment 1 loadletter 2014-09-08 21:08:40 UTC
This happens because tribler requires openssl built with elliptic crypto (ec), which by default is disabled with the bindist USE flag because of patents, rebuilding openssl without bindist USE flag and then rebuilding m2crypto solves this problem.

Add "dev-libs/openssl -bindist" to package.use
emerge -avt --newuse openssl
emerge -av m2crypto
Comment 2 Emmanuel Anne 2014-09-08 22:38:42 UTC
Thanks for the info, I had almost forgotten about this, but good to know, thanks !
Comment 3 Anthony Basile gentoo-dev 2014-09-09 00:11:23 UTC
I added an RDEPEND on dev-libs/openssl:0[-bindist].

Thanks for the report.