Hi guys!!
The Bittle that my team is working on, we are facing quite some hindrances in the way of firmware uploading. Initially, when we ran the UI.py file, the GUI worked(with all the settings done right referring to the online docs), except that it could not run the Firmware Upload successfully. And a week later, UI.py doesn't even open the initial interface with those 3 buttons.
We tried running the following packages by Petoi just to be sure that we aren't losing out on any possibility to make it work
1. OpenCat
OpenCat -> pyUI -> python3 UI.py for running the GUI and this is the error we get in the terminal
Tried resolving the above by installing and then reinstalling Pyserial, then changing the default Python3, but to no avail. So essentially, we tried fixing these issues in every possible way, only for it to create newer ones.
2. Petoi-Bittle-main
Petoi-Bittle-main -> OpenCat.h -> Open with Arduino, make the right settings and upload sketch. Similar issues with respect to missing dependencies or wrong paths. No amount of file copy-pasting and other fixes worked.
3. Petoi Desktop App
--> Mac -> Contents -> Resources -> UI.py and faced same issues as in case of OpenCat.
Since we are losing a lot of time, I wanna ask is there is a work-around to bypass this step? Can we skip it or do it directly through manual calibration? Or even better, interface it with ROS and make those "firmware settings" through that?
Thanks guys
Hey guys,
Here's an update. The configuration file for pip in 20.04 located at "~/.config/pip/pip.conf" had a path set in a directory named '/Users' as you can see in the snap image, last line. I changed that address to the directory where it is supposed to be. The path is ```target = /home/build-system/.local/lib/python3.8/site-packages```
Although it solved the problem of getting that red-text error, the problem when we run the pyUI.py file and get the 'no module named serial.tools', persists.
Therefore, I download freshly, a new OpenCat folder and ran the OpenCat.ino file on Arduino, and when I click the verify or upload buttons, it shows that the src/OpenCat.h does not exist, which I can attribute to bad Arduino installation. Let's see if this gets solved asap.
Thanks
Hi, for your second question, have you removed the "-main" suffix? Otherwise, the OpenCat.ino will be moved into a new subfolder under OpenCat-main/. It will break all the path dependencies.
For the other questions, I'm curious why the app worked before. Did you change any Python environment on your computer? You may install an Anaconda virtual environment for debugging. Did the other functions (calibrator, skill composer) work when the panel opened? If not, you may need to install the driver for the CH340 chip. If you cannot find the serial port after connecting to your computer, you may need to install the CH340 driver:
Mac
Windows