Page 1 of 2

python pycrypto

PostPosted: Sun Oct 23, 2016 4:56 pm
by j.coudrais
Hi there,

I'm using python that is great with add-ons in fvdw.

I've just a problem getting pycrypto installed with pip...

when installing, python tries to compile pycrypto:

building 'Crypto.PublicKey._fastmath' extension
gcc -std=gnu99 -g -fwrapv -O3 -Wall -Wstrict-prototypes -g -O2 -Wall -Wextra -Wno-unused-parameter -DHAVE_CONFIG_H -fPIC -Isrc/ -I/usr/local/include/python2.7 -c src/_fastmath.c -o build/temp.linux-armv5tel-2.7/src/_fastmath.o
src/_fastmath.c:34:18: gmp.h: No such file or directory

Any idea ?
:please

Re: python pycrypto

PostPosted: Mon Oct 24, 2016 3:40 pm
by Jocko
Hi j.coudrais

if you install pyload add-on you will get pycrypto (and also a fix about a python bug)

Re: python pycrypto

PostPosted: Mon Oct 24, 2016 5:11 pm
by j.coudrais
Hi Jocko,

Thank you for your quick answer, my firmware seems to be not compatible (14.0)...

Well, I'm not sure but will everything be ok... I'm using python for RFXCMD, heyu that you compiled for me.
What do you think ?

Best regards

Re: python pycrypto

PostPosted: Tue Oct 25, 2016 9:22 am
by Jocko
Hi

:dry indeed it is a very old fvdw-sl version ! (dec 2012). If I understand why you still uses it it is that you need some modules compiled by fvdw for your serial USB device (viewtopic.php?f=6&t=113&start=10#p604).

If insteressed for upgrading the firmware, I think fvdw will compile these additional modules on kernel version 3.14.2.

Anyhow I attached python version used by pyload (which contains pycrypto feature). You need to store the compressed archive (gz file) in the subfolder 'addons' of fvdw. Then untar it with the command
Code: Select all
 tar -xzvf /share/1000/fvdw/addons/pycrypto.tar.gz -C /share/1000/fvdw/addons


But maybe there were some issues with openssl lib (you have an old version).

Note: to restore your python version, you just need to untar the file python.tar from the folder 'addons'

Re: python pycrypto

PostPosted: Tue Oct 25, 2016 10:20 am
by j.coudrais
Great, thanks for that jocko... I'll try and perhaps go to the last fvdw upgrade ;-)

Envoyé de mon LG-H850 en utilisant Tapatalk

Re: python pycrypto

PostPosted: Tue Oct 25, 2016 6:19 pm
by fvdw
Which specific modules did I compile for you?

Re: python pycrypto

PostPosted: Tue Oct 25, 2016 6:25 pm
by Jocko

Re: python pycrypto

PostPosted: Tue Oct 25, 2016 7:09 pm
by fvdw
:-D thx jocko
I was too lazy to do a search, these ones I know and are to knowledge included in the newer kernels either as module or build in. Need to check the kernel config file. However if I remember well there was something more then these three modules

Re: python pycrypto

PostPosted: Tue Oct 25, 2016 7:17 pm
by Jocko
Yes two other modules are required:usb serial and usblp
But these ones are already available with kernel version 3.14.2

Re: python pycrypto

PostPosted: Tue Oct 25, 2016 7:43 pm
by fvdw
Jocko wrote:Yes two other modules are required:usb serial and usblp
But these ones are already available with kernel version 3.14.2

Indeed and the two ftdi ones are also compiled and included as modules in 3.14.2 kernel included in latest fvdw-sl firmware for nwsp2