mindsensors / PiStorms

PiStorms code, libraries and setup.

Home Page:http://www.mindsensors.com/content/78-pistorms-lego-interface

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python 3 support

ericfrederich opened this issue · comments

Hi, these devices look awesome and I love that you can program them in Python.

Would love to use an asyncio event loop with this.

Any chance of supporting Python 3? Does PiStorms have dependencies which are not Python 3 compatible?

I have experience making polyglot libraries (i.e. same code base can b used from either Python 2 or Python 3 at same time). I'd be willing to help if it seems feasible.

I'm also interested. @mindsensors , where do I sign up to help you with Python 3? Is there any work being done? Any ETA on Python 3 support? Are you even active on GitHub, in case I'll submit a PR?

EDIT: there's that branch, https://github.com/kazzle101/PiStorms, @mindsensors it looks like @kazzle101 did some coding, any plans of integrating it?

Python 2.7 end-of-life is 2020.

I've bought PiStorms to teach my kids stuff.

commented

Hello
The https://github.com/kazzle101/PiStorms is my branch is where I got to it work in Python3, from memory this was mostly fixing the print statement and making sure the floating points and integers were being properly assigned. I've not gone any further as I have it working for my needs and don't have any EV3 parts, although in theory these should work. Having the lock file permissions and ordinary user permissions working properly would be nice.

@kazzle101 great, thank you for your outstanding work & count me in if you need help. I'm going to test your branch soon. I'd love to have PiStorms module installable via pip or packed on PyPI, that would be neat.

Are there some news about python3 support? Do they (mindsensors) really not updating the libraries to python3?

@mpasternak How do you install PiStorms on the RaspberryPi, I have not found a package installable via pip?

Presumably nothing happens here because you should use ev3dev? The PiStorms is also supported there. I'll try that way.

@iwanimsand I think I used the SD card image with Debian Jessie http://www.mindsensors.com/content/72-getting-started-with-pistorms . I don't think you can get a PyPI-instlalable package unless you are willing to distribute it yourself. Also mind the fact that nobody from @mindsensors actually commented on this issue for 2 yrs