Skip to content
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

Exception in thread on macOS High sierra #947

Closed
mosvov opened this issue Jun 15, 2018 · 2 comments
Closed

Exception in thread on macOS High sierra #947

mosvov opened this issue Jun 15, 2018 · 2 comments

Comments

@mosvov
Copy link

mosvov commented Jun 15, 2018

On version 2.0.0rc5 when trying to connect to remote printer (192.168.1.121:23) I get error
Connecting...
Exception in thread Thread-8:
Traceback (most recent call last):
File "threading.py", line 916, in _bootstrap_inner
File "threading.py", line 864, in run
File "printrun/printcore.py", line 345, in _listen
File "printrun/printcore.py", line 308, in _listen_until_online
File "printrun/printcore.py", line 672, in _send
TypeError: write() argument must be str, not bytes

On 1.6.0 with same settings it works good.

@mosvov mosvov changed the title Exception in thread Thread on macOS High sierra Exception in thread on macOS High sierra Jun 15, 2018
@tarmof
Copy link

tarmof commented Nov 28, 2018

Yes, same here with latest git pull

Connecting...
Exception in thread Thread-2:
Traceback (most recent call last):
File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/opt/Printrun/printrun/printcore.py", line 345, in _listen
self._listen_until_online()
File "/opt/Printrun/printrun/printcore.py", line 308, in _listen_until_online
self._send("M105")
File "/opt/Printrun/printrun/printcore.py", line 672, in _send
self.printer.write((command + "\n").encode('ascii'))
TypeError: write() argument must be str, not bytes

@k3ns
Copy link

k3ns commented Dec 16, 2018

See Issue #936

@mosvov mosvov closed this as completed Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants