Closed Rudis1261 closed 2 years ago
Unfortunately, I do not have a Windows machine that I can easily use to test, so I can only offer my experience of a little mistake I sometimes made during development: If you have the Arduino IDE and especially the serial monitor open at the same time, the serial port is already in use and you cannot open it in Python. If it's not that simple, I would suggest to try open COM20 with a minimal example from pyserial first to narrow down possible reasons.
I think it's this bit causing the issue: Error: <class 'AttributeError'>
it connects and gets the info, but after that, I think it's tied up by the process before the failure.
I don't know python's debugger really, otherwise, I would step through the code and debug it. I am assuming it's because of the pulse library methods being called which I had to comment out to get it to even run in the first place. I will try and debug it at some point yeah.
Bricked my leo, can't continue, so closing the issue.
Again, sorry to hear that.
If you manage to get it running again or to anyone else stumbling upon this: You are right, I missed the first error in the log. Unfortunately, that does not tell much. If you change line 4 of the Python script from "DEBUG = False" to "DEBUG = True", we should see a stack trace, which allows us to understand where this is comming from.
Will definitely try again once I get more stock of all the parts thanks
I think this COM error is a red herring. I was experiencing the exact same issues with my windows install as well. First I needed to disable pulsectl, then I started getting the COM Permission Errors.
I switched DEBUG to True and saw that MQTT was failing to connect (I hadn't tried to configure this yet). I updated the IP to connect to my broker - and the COM errors stopped. I switched back and forth to confirm.
It seems to me like MQTT connection failure is reporting as this COM error.
I run windows 10, and it seems it's not quite working as expected. I first ran into an issue where win32gui wasn't available, and resolved that by installing
pip install pywin32
Then I tried launching it, but next it failed at a pulse audio import in modes.py. Which from what I understand should only be available in linux.
I then commented out the pulse audio import which got me to where I am now.
My device is COM20, and when I start it, it does this:
Any advice / suggestions would be welcome.