Python 3.x updating

45 views
Skip to first unread message

Elvin Luff

unread,
Oct 11, 2015, 7:42:37 AM10/11/15
to nxt-python
Hi all... or anyone who is left...

I've started work on bringing the project up to speed, if anyone's interested. I've essentially forked the project, and am now in the processing of getting it to work properly with Python3.
I'm not the most skilled python developer, but I'm giving it a shot!
https://github.com/Eelviny/nxt-python

Federico Ferri

unread,
Oct 11, 2015, 11:36:33 AM10/11/15
to nxt-p...@googlegroups.com
Nice!
What's your development environment? Windows/Linux/OSX?
Do you have also third party sensors to test?
Let me know. I have been interested in nxt-py some time ago. Now I only use version 3 of Python. Formerly I used NXT Lejos and had all the sensors working (dCompass, HT Touch Multiplexer, IR Link, dIMU).
-- 
Federico Ferri
--
You received this message because you are subscribed to the Google Groups "nxt-python" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nxt-python+...@googlegroups.com.
To post to this group, send email to nxt-p...@googlegroups.com.
Visit this group at http://groups.google.com/group/nxt-python.
For more options, visit https://groups.google.com/d/optout.

Elvin Luff

unread,
Oct 11, 2015, 5:03:48 PM10/11/15
to nxt-python
Hiya,

I'm currently running Arch Linux, doing my development on Python 3.5 through gedit text editor and gitg for versioning. Nothing too fancy, but with plugins nothing more is needed!
I'm a bit of a novice python programmer, so I'm trying my hardest but getting stumped at some more advanced concepts in the code. It'll take me a while of rigorous trial and error but hopefully I can get something that works.
Life also gets in the way so it'll be a slow process.
Functionally, the upgrade from python2 to 3 shouldn't change much. It's just the syntax of the code that needs to be changed, and there is a converter provided for just about one-click conversion. It's just the new quirks introduced in Python3 that need to be resolved, the main problem right now being how it differentiates bytecodes and strings. I've made a start of identifying them here: https://github.com/Eelviny/nxt-python/commit/6a6db28dc8719e8585a519606ca4ee72c37cef11

And no, I don't have a single third party sensor to test... Currently I haven't even got the default sensors working, so there's a while to go before they can be focused on.

Elvin Luff

unread,
Oct 11, 2015, 5:05:37 PM10/11/15
to nxt-python
Also, I've noticed there were quite a few little patches written but not implemented... I've split the git into two branches, master and python2, one with the new Python3 code, and one with the old (working) Python2 code where I've started adding those fixes and patches.
Reply all
Reply to author
Forward
0 new messages