Closed mattfeury closed 6 years ago
The import error is peculiar. What if you add onto line 14:
from Exceptions.HologramError import SerialError
Also, the error occurs because there aren't enough serial ports, quite literally. The code:
devices = self.detect_usable_serial_port()
if not devices:
raise SerialError('Not enough serial ports detected for Nova')
It basically tries to see if there are any usable serial ports, and since there are none it raises that error. I would expect it to inherit the import from Modem since it's properly imported there, but I guess that's not the case. Make sure you've got more serial ports because it clearly looks like you've got one serial port open, but need another, as well.
Hi thanks for the quick response. it actually looks like this issue may have been caused by NetworkManager/ModemManager. I had that enabled because I was using other modems, but it was causing me a lot of inconsistencies with Nova. Now that i've got that disabled, i'm not seeing the "Not enough serial ports detected for Nova" error anymore. NM/MM has been a real pain in the ass so glad to be able to use this repo directly and ditch that. (thanks!)
Hi @mattfeury, whatever @ATLUSio said is true. I'll work on a patch and hope to release it soon.
Hello, I am seeing an issue on top of probably another issue. See the stacktrace below from when I try to do a basic
sudo hologram modem connect
. It actually connects fine, but for some reason it is unable to move the serial port. However, in an attempt to trigger this error, it actually causes another error due to what looks like a missing import.So two questions:
thanks!