python pycrypto

python pycrypto

Postby j.coudrais » Sun Oct 23, 2016 4:56 pm

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
j.coudrais
Donator VIP
Donator VIP
 
Posts: 35
Joined: Sat Aug 06, 2011 10:39 am
Location: LYON

Re: python pycrypto

Postby Jocko » Mon Oct 24, 2016 3:40 pm

Hi j.coudrais

if you install pyload add-on you will get pycrypto (and also a fix about a python bug)
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: python pycrypto

Postby j.coudrais » Mon Oct 24, 2016 5:11 pm

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
j.coudrais
Donator VIP
Donator VIP
 
Posts: 35
Joined: Sat Aug 06, 2011 10:39 am
Location: LYON

Re: python pycrypto

Postby Jocko » Tue Oct 25, 2016 9:22 am

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'
You do not have the required permissions to view the files attached to this post.
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: python pycrypto

Postby j.coudrais » Tue Oct 25, 2016 10:20 am

Great, thanks for that jocko... I'll try and perhaps go to the last fvdw upgrade ;-)

Envoyé de mon LG-H850 en utilisant Tapatalk
j.coudrais
Donator VIP
Donator VIP
 
Posts: 35
Joined: Sat Aug 06, 2011 10:39 am
Location: LYON

Re: python pycrypto

Postby fvdw » Tue Oct 25, 2016 6:19 pm

Which specific modules did I compile for you?
fvdw
Site Admin - expert
 
Posts: 13244
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: python pycrypto

Postby Jocko » Tue Oct 25, 2016 6:25 pm

Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: python pycrypto

Postby fvdw » Tue Oct 25, 2016 7:09 pm

:-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
fvdw
Site Admin - expert
 
Posts: 13244
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: python pycrypto

Postby Jocko » Tue Oct 25, 2016 7:17 pm

Yes two other modules are required:usb serial and usblp
But these ones are already available with kernel version 3.14.2
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: python pycrypto

Postby fvdw » Tue Oct 25, 2016 7:43 pm

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
fvdw
Site Admin - expert
 
Posts: 13244
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Next

Return to Lacie Network Space vs2 and max version

Who is online

Users browsing this forum: No registered users and 1 guest