You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whether I change the default port in the script from 515 to (for example) 30886 or if I specify the port in the bash command with the option --port 30886, I get the same error:
Traceback (most recent call last):
File "lpdtest.py", line 185, in
s.send(bytes("\002"+queue+"\n",'utf-8'))
TypeError: str() takes at most 1 argument (2 given)
If I don't specify the port, the script seems to fire off, although the print server is not on port 515, so nothing happens. But at least I don't get an error. The error only occurs when I specify the port.
Why does changing the port number make the script think that there's an additional argument? And how can this be fixed?
The text was updated successfully, but these errors were encountered:
you may just need to edit the script :D, specifically change the default variable at the line 48. parser.add_argument("--port", type=int, help="printer port",default=30886 )
Whether I change the default port in the script from 515 to (for example) 30886 or if I specify the port in the bash command with the option --port 30886, I get the same error:
If I don't specify the port, the script seems to fire off, although the print server is not on port 515, so nothing happens. But at least I don't get an error. The error only occurs when I specify the port.
Why does changing the port number make the script think that there's an additional argument? And how can this be fixed?
The text was updated successfully, but these errors were encountered: