Python 3 and ZeroBorg.py
Forums:
I've been trying to use python 3.6 and have had a couple of problems with ZeroBorg.py
I've sorted some issues (mostly with print() ) and it seems to work, but i don't know if there are other things that should have been changed that might cause me problems in the future.
Is a python 3 version of the code likely to be available at any point?
Thanks,
piborg
Mon, 01/16/2017 - 12:08
Permalink
Python 3 support
We do not have an official Python 3 version of
ZeroBorg.py
, however I think the only problem should really be with theprint
calls.Did you find anything else that needed changing to support Python 3?
This link should explain what has changed between Python 2 and 3:
https://docs.python.org/3/howto/pyporting.html
imadaily
Wed, 01/18/2017 - 09:11
Permalink
Ok, thanks,
Ok, thanks,
Looking back I think it was just changes to print
moth754
Fri, 02/16/2018 - 23:20
Permalink
Trying to do this
Hi,
Asked on twitter and got pointed here - trying to get ZeroBorg.py working on Python 3.5.3, keep getting an error saying Zeroborg missing. Your python 2 code works perfectly. Any tips?
Many thanks!
piborg
Fri, 02/16/2018 - 23:46
Permalink
ZeroBorg library for Python 3
We now have a Python 3 library available for download :)
You can download the script to your Raspberry Pi with these commands:
Make sure you get the correct upper / lower case letters in the commands above, otherwise they will not work.
To modify any of the existing examples to use this version simply replace this line:
with
The missing error is usually caused by not having the
ZeroBorg.py
/ZeroBorg3.py
file in the same directory as the script you are running.You can get around the problem by either copying the file into the same directory, or adding the ZeroBorg directory to the Python search path before importing it like this:
moth754
Sat, 02/17/2018 - 17:45
Permalink
Thanks!
You've made my day! Thanks!