quang-ha / nxt-python

Automatically exported from code.google.com/p/nxt-python
GNU General Public License v3.0
0 stars 0 forks source link

[Feature Request] python 3.x support #50

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Describe the new feature more precisely.

Being able to run the nxt-python using python 3.x
Are there any plans on adding support for 3.x?

Why do you think it's important?

I've wanted to write a motion control script for a long time using nxt and 
blender. I just read this post 
(http://www.eibriel.com/2012/05/06/camera-motion-control-controlling-steppers-wi
th-blender-tutorial/) and really inspired I thought I'd check out if I would be 
able to control my nxt from within blender. Blender uses python 3.x so...

Any ideas on how to implement it?

Sadly no, but I haven't done to much research either..

Please provide any additional information below.

Thank you very much for your time and effort on this module!

Original issue reported on code.google.com by flehnerh...@gmail.com on 14 Feb 2013 at 7:58

GoogleCodeExporter commented 9 years ago
The classic sticking point here has been the comms libraries. Once they have 
python3 support, it should be simple enough to port. I don't see myself having 
time for such an undertaking in the near future, but if someone is interested 
in doing it, I'll help.

My plan at this point is to branch to nxt-python-3.0.0 for py3 support. If it's 
possible to support both py2 and py3 with the same sources (as there is a lot 
of overlap in 2.7), a version bump to 3.x is not required and we will go with 
2.3.x. The 3.x branch is the only foreseeable window for API changes, so please 
take advantage of it as such regardless of whether it coincides with py3 
support.

Original comment by marcus@wanners.net on 15 Feb 2013 at 10:08

GoogleCodeExporter commented 9 years ago
You could start a script in python 2.7 from inside Blender 2.62 (or later) 
using the following: (Yes it's ugly but it works)

------------------------
import subprocess

subprocess.check_output(["python2.7", 
"/home/tkkrlab/Documents/NXT/nxt-python-2.2.2/examples/spin.py"])
------------------------

I'll research connecting the BGE with my NXT a bit more next week when I have 
the time.

Original comment by gcom...@gmail.com on 14 May 2013 at 7:41

GoogleCodeExporter commented 9 years ago
Cool! Thanks!
I haven't had the time to look into this much my self yet :)

-Daniel

Original comment by flehnerh...@gmail.com on 14 May 2013 at 7:50

GoogleCodeExporter commented 9 years ago
Is there any update on this?
Has anyone already started working on 3. or 2.3 branch? I know everyone is 
doing it from their "free" time I am just checking to avoid double effort.

Janno

Original comment by janno.jo...@gmail.com on 12 Feb 2014 at 9:32

GoogleCodeExporter commented 9 years ago
I  haven't had a chance to look at it.

-Daniel

Original comment by flehnerh...@gmail.com on 12 Feb 2014 at 10:23

GoogleCodeExporter commented 9 years ago
I would like to know, if there is any progress in porting it to python3...

Original comment by office.m...@gmail.com on 30 Jun 2014 at 8:53

GoogleCodeExporter commented 9 years ago
Looked a bit at it but ran out of time and had to still use 2.7 for my course 
this year. 

Original comment by janno.jo...@gmail.com on 30 Jun 2014 at 10:42

GoogleCodeExporter commented 9 years ago
hello
is there any update about this ?

Original comment by maximeg...@gmail.com on 25 Feb 2015 at 11:30