Coder Social home page Coder Social logo

Python3 support about cwiid HOT 13 OPEN

abstrakraft avatar abstrakraft commented on July 4, 2024 3
Python3 support

from cwiid.

Comments (13)

martinohanlon avatar martinohanlon commented on July 4, 2024

+1 to this.

from cwiid.

bennuttall avatar bennuttall commented on July 4, 2024

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.

from cwiid.

keithellis74 avatar keithellis74 commented on July 4, 2024

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.

from cwiid.

bennuttall avatar bennuttall commented on July 4, 2024

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.

from cwiid.

keithellis74 avatar keithellis74 commented on July 4, 2024

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.

from cwiid.

Wqrld avatar Wqrld commented on July 4, 2024

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

from cwiid.

azzra avatar azzra commented on July 4, 2024

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.

from cwiid.

bennuttall avatar bennuttall commented on July 4, 2024

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

from cwiid.

azzra avatar azzra commented on July 4, 2024

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

from cwiid.

bennuttall avatar bennuttall commented on July 4, 2024

👍

from cwiid.

bennuttall avatar bennuttall commented on July 4, 2024

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.

from cwiid.

TechdudeGames avatar TechdudeGames commented on July 4, 2024

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

from cwiid.

dew3s avatar dew3s commented on July 4, 2024

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?

from cwiid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.