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
我是用python调用java的dubbo服务 把你的文件复制到我的site-package下,调用时出现如下问题
Traceback (most recent call last):
File "D:/classadmin/生涯探索/careerserv/example/tests.py", line 19, in
print (conn.invoke(interface, method, param))
File "D:\python\venv\lib\site-packages\dubbo_telnet_init_.py", line 84, in invoke
return self.do(cmd)
File "D:\python\venv\lib\site-packages\dubbo_telnet_init_.py", line 65, in do
tn.write('\n')
File "C:\Users\asdf\AppData\Local\Programs\Python\Python36\Lib\telnetlib.py", line 287, in write
if IAC in buffer:
TypeError: 'in ' requires string as left operand, not bytes
我的代码
import dubbo_telnet
if name == 'main':
Host = '127.0.0.1' # Doubble服务器IP
Port = 30885 # Doubble服务端口
我是用python调用java的dubbo服务 把你的文件复制到我的site-package下,调用时出现如下问题
Traceback (most recent call last):
File "D:/classadmin/生涯探索/careerserv/example/tests.py", line 19, in
print (conn.invoke(interface, method, param))
File "D:\python\venv\lib\site-packages\dubbo_telnet_init_.py", line 84, in invoke
return self.do(cmd)
File "D:\python\venv\lib\site-packages\dubbo_telnet_init_.py", line 65, in do
tn.write('\n')
File "C:\Users\asdf\AppData\Local\Programs\Python\Python36\Lib\telnetlib.py", line 287, in write
if IAC in buffer:
TypeError: 'in ' requires string as left operand, not bytes
我的代码
import dubbo_telnet
if name == 'main':
Host = '127.0.0.1' # Doubble服务器IP
Port = 30885 # Doubble服务端口
The text was updated successfully, but these errors were encountered: