Page 1 of 1

Problem with running server on arm board

Posted: Sun Jan 18, 2015 2:44 pm
by dotting103
I tried to run pysnip on my arm board.
Server ran pretty well... but it took too many resources so I thought 'If I can run pysnip with pypy, I can save some resources!'
And then, I setup pypy with aptitude, and install other packages and modules.
After, I happily clone pysnip repo on bitbucket and rum 'build.sh' (Of course I edit python to pypy) It show me some errors but I didn't mind.
But when I run run.py with pypy... it spelt some errors and just closed
Anyone can help me?

Re: Problem with running server on arm board

Posted: Sun Jan 18, 2015 4:54 pm
by LeCom
It's a pretty simple python error. The pyspades.bytes file is missing. Your log of the normal python compilation shows errors related to bytes.cpp, so this file couldn't be compiled into a python file, and used by python for compiling pyspades. I can't test this but I think it can be solved by either replacing _PyFloat_Unpack4((const unsigned char*)data) in the according spot with _PyFloat_Unpack4((unsigned char*)data) and removing any const attributes from variables in that function, or using the
-fpermissive flag (very dangerous and can make the compiled program crash though).

Also, running a server on an ARM CPU (which are designed for mobile devices AFAIK and are slower because of that) and then having trouble with performance sounds a bit dumb to me. But, it's your thing.