reloadware/reloadium

reloadium plugin in pycharm with twisted libary

timbersea opened this issue · 3 comments

Describe the bug*

python script used twisted libary run with reloadium in pychram error:

\.venv\lib\site-packages\zope\interface\interface.py", line 789, in update_value
    raise InvalidInterface("Concrete attribute, " + aname)
zope.interface.exceptions.InvalidInterface: Concrete attribute, __classcell__

To Reproduce

contents in Echo.py as follows code:

from twisted.internet import protocol, reactor, endpoints
from Answer import *

class Echo(protocol.Protocol):
    def dataReceived(self, data):
        print("dataReceived!!!!")
        print(data)
        #self.transport.write(data)
    def connectionMade(self):
        print("connectionMade")
    def connectionLost(self, reason):
        print("connectionLost")


class EchoFactory(protocol.Factory):
    def buildProtocol(self, addr):
        return Echo()
if __name__=='__main__':
    endpoints.serverFromString(reactor, "tcp:1234").listen(EchoFactory())
    reactor.run()

click the button debug Echo with reloadium ; the error occured, while use command: reloadium run Echo.py everything is OK

Additional context

Add any other context about the problem here.

I can't reproduce it.
Can you provide more information?

  • python version
  • twisted library version
  • reloadium version
  • OS

python 3.10.4
twisted 24.3.0
reloadium 1.4.1
OS win11

after pip uninstall and pipinstall ,all things is ok