Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python3 support #26

Open
keithellis74 opened this issue Oct 4, 2015 · 13 comments
Open

Python3 support #26

keithellis74 opened this issue Oct 4, 2015 · 13 comments

Comments

@keithellis74
Copy link

I know this repository is not in active development. However this library is used extensively by Raspberry Pi users for controlling robots. With the up coming PiWars (http://piwars.org) competition in the UK. It would be really great if someone could provide Python3 support.

Is anyone able to take up this challenge?

@martinohanlon
Copy link

+1 to this.

@bennuttall
Copy link

I tried to build this on a Pi recently and got nowhere. If anyone manages it can they post the instructions here? We can see if it's possible to build for Python 3, and if not we can try to work out the problem.

@keithellis74
Copy link
Author

Ben, I meant to try this at the weekend but run out of time. However I looked through my notes and it appears I did not install via this repo, i used
sudo apt-get install python-cwiid
Using this guide http://www.raspberrypi-spy.co.uk/2013/02/nintendo-wii-remote-python-and-the-raspberry-pi/

We did use this repo for PiWars 2014 and 2015, But using C++ rather than Python, there was a fix that had to be applied, I will try and find out what it was.

@bennuttall
Copy link

Sorry if I was unclear. I'm not saying I failed to use the library at all. I've been using the packaged Python 2 version in my projects.

My comment above was referring to trying to build it from source to see if I could get a Python 3 version working as well.

@keithellis74
Copy link
Author

Ben, see the readme on our Tractobot 2014 repo https://github.com/ipswichmakerspace/TractorBot/tree/master/software
A file had to be edited or a different repo used.

We have not tried this for a while since it got added into the distro packages, so this might not be the issue you are having.

@Wqrld
Copy link

Wqrld commented Mar 11, 2017

i'd love this, can you port it over or is that too complicated?

@azzra
Copy link

azzra commented Apr 25, 2017

I've ported the library for python3 here https://github.com/azzra/python3-wiimote

As I'm not a C developer, I just ported the python extension and left the library unchanged.
I did remove wmgui, wminput, lswm, wmdemo too, that's why I didn't make a PR here.

@bennuttall
Copy link

Awesome!! Can you publish on PyPI? Let me know if you need help.

@azzra
Copy link

azzra commented Apr 30, 2017

Here you go https://pypi.python.org/pypi/cwiid

@bennuttall
Copy link

👍

@bennuttall
Copy link

I tried to build on piwheels but it failed due to the dependency of cwiid.h. See output here: http://piwheels.bennuttall.com/cwiid/

I haven't worked out how best to deal with build dependencies yet.

@TechdudeGames
Copy link

TechdudeGames commented Aug 5, 2017

Download and built cwiid from the git responsitory and it shouldn't have the cwiid.h error. Repo:https://github.com/azzra/python3-wiimote

@dew3s
Copy link

dew3s commented Jul 18, 2019

Sorry for waking up this ancient thread... I managed to build cwiid, but python failed to find the module cwiid, neither with python3 nor with Thonny. Any more setup is needed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants