m2crypto on windows

293 views
Skip to first unread message

Carsten Thielepape

unread,
Dec 6, 2016, 4:18:06 PM12/6/16
to Kivy users support
Hello,
I need to include m2crypto in my project. I am developing on windows . The following code 

import os.path as op
from M2Crypto import RSA
rsa_key_path=op.expanduser('~\\.android\\adbkey')
with open(rsa_key_path + '.pub') as rsa_pub_file:
    public_key = rsa_pub_file.read()
rsa_key = RSA.load_key(rsa_key_path)


produces the error 

OPENSSL_Uplink(000007FEF3BB2000,08): no OPENSSL_Applink

I have found (google), that Python.exe needs to be compiled with applink.c included, to make it work on windows. As far as I understood, this is not an issue on unix, no clue about android. 

Does anybody has a Python.exe (2.7) with applink.c compiled? 

Is it still possible, to distribute the app on windows and android?

Questions over questions...


ZenCODE

unread,
Dec 10, 2016, 3:34:00 PM12/10/16
to Kivy users support
How are you building? Do you specify openssl somewhere in your spec file? Or using buildozer, in that spec file?

Carsten Thielepape

unread,
Dec 11, 2016, 3:13:06 AM12/11/16
to Kivy users support
Hi,

I am far away from building. I try to manage the development environment to work with m2crypto.

My development environment is windows 7 and VSStudio 2015. Python 2.7 and kivy installed. m2crypto installed by pip.

Can't get it working. The example above is a simple non kivy python code to get an error message. An Kivy app calling th same code just stops working

ZenCODE

unread,
Dec 11, 2016, 8:21:16 AM12/11/16
to Kivy users support
Well, if it does not work in a simple python, non kivy app, its not a kivy issue. Perhaps ask on the m2crypto forums?

Carsten Thielepape

unread,
Dec 11, 2016, 11:04:00 AM12/11/16
to Kivy users support
You are right, but there no M2Crypto forum (or I haven't found it). I just thought, somebody using Kivy has solved to use it, (as there is buildozer recipe...)
Reply all
Reply to author
Forward
0 new messages