Add requirements.txt for older Python 3 versions
Hi there, I'm currently trying to run nxt-python on EV3DEV, but somehow it installs 2.2.2 from the official ev3dev branch.
I can download from this page but i'm missing requirements.txt. Is there a way to add it back?
NXT-Python is using poetry, can you run it on EV3DEV?
If not, it only depends on:
python = "^3.9"
pyusb = "^1.2.1"
And optionally for bluetooth:
pybluez = "^0.23"
This is specified in pyproject.toml.
Adding a requirements.txt seems redundant to me.
Also, are you actually trying to control a NXT from the EV3?
Yes, I am really trying to run this on an EV3. Basically the pip repo it's stuck to only has up to 2.2.2, so i install only via the link of this repo. Thing is: pip tells me it cannot install because requirements.txt is missing!
(I'm probably repeating what I just said)
Basically you can use the NXT via USB, but the only thing missing is a controller.
I could've used NBC but nxt-python is simply the better way, as i can do a socket from python3 to pybricks-micropython (So, using the micropython thing.. release 2.0.)
ev3dev is still on Python 3.5, so there could be other issues even if you manage to get it installed.
You could probably sudo apt install python-nxt to get the old Python 2 version on ev3dev.
I am trying to avoid that, because if i get the old python2 nxt-python, well.. it won't work. At all.
Else i somehow upgrade python via the Deadsnakes PPA. But I'm wondering if it could fail, as the EV3 is an old arch.
There are some folks that managed to get some newer Python versions running on ev3dev.
Here is one discussion: https://github.com/orgs/ev3dev/discussions/1634
There are probably a few others if you go looking.
Thank you dlech!
pip can see that nxt-python 3 needs python 3.9, that’s why it does not use this version.
First nxt-python supporting python 3 requested 3.7, it never supported 3.5.
I hope you can update your python version.
There are some folks that managed to get some newer Python versions running on ev3dev.
Here is one discussion: https://github.com/orgs/ev3dev/discussions/1634
There are probably a few others if you go looking.
Thanks again, but problem is i can't use the wifi driver. Is it normal?
I suggest to move the Wi-Fi discussion to https://github.com/orgs/ev3dev/discussions where someone who knows something about it can help.
I don't know anything more than this page. Either you have a known working dongle or you don't.
Sorry, I meant USB tethering.