-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue connecting to a remote port #1027
Comments
Delete .encode('ascii') at line 683 Printrun/printrun/printcore.py. Maybe the serial library has changed. |
It did not help. Line 683 now looks like this |
Same problem here. |
Please test if this branch fixes the problem and if so I will create a pull request to integrate it officially |
It works. In this branch the problem is resolved |
Thanks, created pull request #1030 |
Fix #1027, reimplementing tcp printer communication
When I try to connect from Pronterface to my 3D printer through the network. An error occurs:
Connecting... Exception in thread Thread-2: Traceback (most recent call last): File "/usr/lib/python3.7/threading.py", line 926, in _bootstrap_inner self.run() File "/usr/lib/python3.7/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "/home/dmitriy/tmp/Printrun/printrun/printcore.py", line 356, in _listen self._listen_until_online() File "/home/dmitriy/tmp/Printrun/printrun/printcore.py", line 319, in _listen_until_online self._send("M105") File "/home/dmitriy/tmp/Printrun/printrun/printcore.py", line 683, in _send self.printer.write((command + "\n").encode('ascii')) TypeError: write() argument must be str, not bytes
The problem occurred after upgrade Ubuntu to 19.10 and it happens whether I use Pronterface from a package or from a repository
The text was updated successfully, but these errors were encountered: