Home > other >  Python rpyc error
Python rpyc error

Time:09-26


Tip me:
Traceback (the most recent call last) :
The File "C:/python/socket. Py", line 2, the in & lt; module>
The from rpyc import Service
The File "C: \ python \ venv \ lib \ site - packages \ rpyc \ set py", line 45, in & lt; module>
The from rpyc. Core import (SocketStream TunneledSocketStream, PipeStream, Channel,
The File "C: \ python \ venv \ lib \ site - packages \ rpyc \ core \ set py", line 2, the in & lt; module>
The from rpyc. Core. Stream import SocketStream, TunneledSocketStream, PipeStream
The File "C: \ python \ venv \ lib \ site - packages \ rpyc \ core \ stream py", line 7, in & lt; module>
The import socket
The File "C: \ python \ socket. Py", line 2, the in & lt; module>
The from rpyc import Service
ImportError: always import a name 'Service' from partially initialized module 'rpyc (most likely due to a circular import) (C: \ python \ venv \ lib \ site - packages \ rpyc \ set py)

The Process finished with exit code 1
This is what reason,
Small white just learning, bosses, please give directions, thank you

CodePudding user response:

Seems to be circular import problem, you don't take these special file name after name ah, directly in the sock, python, these names will go wrong, you changed the name should be studyPython sockHaha
  • Related