and hit a couple of snags.
The python pysdl2 module would not load - fixed this by instllaing the sdl2 dev library and python module.
Code: Select all
sudo apt-get install libsdl2-dev
sudo pip install pysdl2
Next when I ran
Code: Select all
python setup.py install
a DLL file is windows binary so it did not make sense on a linux install - so I edited line 66 in setup.py and applied the following quick and dirty kluge by replacing SDL2.dll with README.md - just so the script can get past the error and install properlyrunning install_data
error: can't copy 'SDL2.dll': doesn't exist or not a regular file
Code: Select all
bitcraze@bitcraze:~/projects/crazyflie-clients-python$ diff setup.py.orig setup.py
61c61
< data_files=[('', ['README.md', 'LICENSE.txt', 'SDL2.dll']),
---
> data_files=[('', ['README.md', 'LICENSE.txt', 'README.md']),