Page 1 of 1

[SOLVED]:SDL2.dll & pysdl2 error - self built ubuntu14.10 VM

Posted: Sat Dec 13, 2014 8:46 pm
by lxrocks
Just thought I would share this. Built my own Ubuntu 14.10 vm

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 
the install failed and I got this error
running install_data
error: can't copy 'SDL2.dll': doesn't exist or not a regular file
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 :oops: by replacing SDL2.dll with README.md - just so the script can get past the error and install properly

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']),
cfclient now works. Just waiting for my Crazyflie 2.0 to arrive and I can start playing.

Re: cflcient:SDL2.dll & pysdl2 error - self built ubuntu14.1

Posted: Tue Dec 16, 2014 10:12 pm
by dbrgn
I stumbled over the same issue this evening. Pull request is already here: https://github.com/bitcraze/crazyflie-c ... n/pull/133

Re: cflcient:SDL2.dll & pysdl2 error - self built ubuntu14.1

Posted: Thu Dec 25, 2014 8:59 am
by marcus
The fix for this is merged now.

/Marcus