# M2Crypto. \_m2crypto. \_\_m2crypto

**URL:** <https://forum.acestream.media/t/m2crypto-m2crypto-m2crypto/3247>\
**Category:** Issues and Solutions\
**Created:** [28.Ноябрь.2015 16:06:30 UTC](https://forum.acestream.media/t/m2crypto-m2crypto-m2crypto/3247 "2015-11-28T16:06:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![usern](https://forum.acestream.media/letter_avatar_proxy/v4/letter/u/c6cbf5/32.png) [@usern](https://forum.acestream.media/u/usern)\
**Post date:** [28.Ноябрь.2015 16:06:30 UTC](https://forum.acestream.media/t/m2crypto-m2crypto-m2crypto/3247/1 "2015-11-28T16:06:30Z")

</div>

Система calculate-linux

```auto
4.2.3-calculate #1 SMP PREEMPT Tue Oct 27 10:30:19 UTC 2015 x86_64 AMD FX(tm)-4100 Quad-Core Processor AuthenticAMD GNU/Linux

```

До этого ноут мучил

> **[\[Решено\] ACEStream, M2Crypto, 'PKCS5\_SALT\_LEN' , FreeCAD](https://forum.calculate-linux.org/t/acestream-m2crypto-pkcs5-salt-len-freecad/2944)**
>
> Наверное месяц ковырялся) Опубликую может в сети кому поможет… Не могу понять в чем проблема, ноутбук с CLDX, система обновлена. Понадобилось торренттв смотреть, поставил acestream, но движок не запускается. Чтоб найти ошибки запустил из консоли: ...

Проблема с запуском движка:

```auto

$ acestreamengine --client-console
/usr/lib64/python2.7/site-packages/pkg_resources/ __init__.py:1256: UserWarning: /home/usern/.python-eggs is writable by group/others and vulnerable to attack when used with get_resource_filename. Consider a more secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable).
  warnings.warn(msg, UserWarning)
2015-11-28 17:25:47,313|MainThread|acestream|error during startup
Traceback (most recent call last):
  File "core.c", line 1146, in 
  File "core.c", line 48, in 
  File "core.c", line 2, in 
ImportError: cannot import name __m2crypto

```

Установлено:

```auto
$ eix -Ic acestream
[I] dev-libs/acestream-libappindicator [1] (12.10.0(3)@08.04.2015): A library to allow applications to export a menu into the Unity Menu bar
[I] dev-libs/acestream-libebml [1] (1.2.2@08.04.2015): Extensible binary format library (kinda like XML) for acestream
[I] dev-libs/acestream-libindicator [1] (12.10.1(2)@08.04.2015): A set of symbols and convience functions that all indicators would like to use
[I] dev-libs/acestream-python-appindicator [1] (12.10.0-r1(3)@08.04.2015): A library to allow applications to export a menu into the Unity Menu bar
[I] media-libs/acestream-x264 [1] (0.0.20110831@08.04.2015): A free library for encoding X264/AVC streams
[I] media-video/acestream-ffmpeg [1] (1.2.12@24.11.2015): Complete solution to record, convert and stream audio and video. Includes libavcodec
[I] media-video/acestream-player [1] (3.0.2@09.04.2015): ACE Stream HD multimedia player based on VLC
[I] media-video/acestream-player-data [1] (3.0.2@24.11.2015): ACE Stream player libraries files
[I] net-p2p/acestream-engine [1] (3.0.5@08.04.2015): ACE Stream Engine
[I] www-plugins/acestream-plugin [1] (3.0.2@08.04.2015): ACE Stream multimedia plugin for web browsers
[1] "ROKO __" /var/lib/layman/ROKO__

$ eix -Ic m2crypto
[I] dev-python/m2crypto (0.22.3-r9{tbz2}[1]@30.09.2015): M2Crypto: A Python crypto and SSL toolkit
[1] "calculate" /var/lib/layman/calculate

```

Проблема в вызове модуля m2crypto. Я в питоне не силен, мне не понять [в чем разница между](https://github.com/swig/swig/issues/344#issuecomment-103809165) \_m2crypto и \_\_m2crypto. Но что изменить, чтоб находило и работало?  
Gentoo не возможно долго не обновлять, на ноуте acestream работает и я пока не обновляю систему. Но это не есть хорошо. Можно попробовать откопать версию m2crypto-0.21.1-r2 как на ноуте, но когда нибудь система на этом споткнется.
