Closed tarosk closed 3 years ago
Yeah, I will try to make the main branch compile and run correctly some evening. I mostly just fixed the obvious errors while idling in meetings.
Thanks. After running 'pip install -r requirements.txt' I can now successfully run gui.py and print labels. Great work!
'pip install .' fails with error: can't copy 'c:\python3\lib\site-packages\PyQt5\Qt\plugins\platforms\qwindows.dll': doesn't exist or not a regular file
Print window: 2021-02-22T15:47:29.842484 Starting print thread... 2021-02-22T15:47:29.870483 Building bit map from image... 2021-02-22T15:47:29.871483 Printing label, width: 110 height: 68 2021-02-22T15:47:29.872482 Opening serial device connection... 2021-02-22T15:47:31.409500 Using serial device: COM3 2021-02-22T15:47:31.411499 Entering raster graphics (PTCBP) mode... 2021-02-22T15:47:31.412496 Initialize... 2021-02-22T15:47:31.429554 Query status... 2021-02-22T15:47:31.535737 Failed to print due to the following error: can only concatenate str (not "bytes") to str
Console:
QLayout: Attempting to add QLayout "" to PyTouchCubeGUI "", which already has a layout C:\Temp\pytouch-cube\gui.py:412: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using int is deprecated, and may be removed in a future version of Python. modal.setFixedWidth(self.width() .9) C:\Temp\pytouch-cube\gui.py:413: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using int is deprecated, and may be removed in a future version of Python. modal.setFixedHeight(self.height().9) wat2 Input: 0 Output: 0 wat4