Hi guys,
I have the latest pronterface finally installed and working but it won't connect to my printer. The interesting part is that I am able to manually connect from the command line by importing serial, but for some reason printerface isn't able to connect at all. I get this error:
Traceback (most recent call last):
File "C:\Users\samks_000\Downloads\Printrun-master\Printrun-master\printrun\pronterface.py", line 1053, in connect
if not self.connect_to_printer(port, baud, self.settings.dtr):
File "C:\Users\samks_000\Downloads\Printrun-master\Printrun-master\printrun\pronsole.py", line 720, in connect_to_printer
self.p.connect(port, baud, dtr)
File "C:\Users\samks_000\Downloads\Printrun-master\Printrun-master\printrun\printcore.py", line 46, in inner
return f(*args, **kw)
File "C:\Users\samks_000\Downloads\Printrun-master\Printrun-master\printrun\printcore.py", line 201, in connect
self.printer.setDTR(dtr);
File "C:\Python27\lib\site-packages\serial\serialwin32.py", line 305, in setDTR
if not self.hComPort: raise portNotOpenError
ValueError: Attempting to use a port that is not open
So it looks like the error traces back to pyserial, although since it works from the command line I'm really confused. I tried going into the source code and manually setting drt to True and False, but both times the same thing happened except the error said self.printer.setDTR(True); and same for false. This is really bizarre. Anyone have any advice? Thanks.
I'm running windows 8.1 and I installed whichever pyserial/python/etc. are listed under the install instructions on the printrun github. Thanks.
EDIT: Another interesting thing is that when I use the command prompt it takes at least 5-10 seconds to connect, while the pronterface error pops up after only 2-3 seconds. It would appear that something is trying to access the serial port before it's open, or something like that.
Edited 1 time(s). Last edit at 01/02/2015 06:06PM by SamS.