threefoldtecharchive / digitalmeX

Apache License 2.0
0 stars 1 forks source link

gedis server hangs on actor_add #57

Closed xmonader closed 5 years ago

xmonader commented 5 years ago

while exploring gedis and its get started documentation

root@jsx:/# js_shell 
SHELL:None
In [1]: server = j.servers.gedis.configure(name='test', port=8889, host='0.0.0.0', ssl=False, password='')
Sun 14 07:58:01 BCDB.py          - 102 - bcdb:bcdb                          : BCDB INIT DONE:system

In [2]: server.actor_add('/sandbox/simpleactor.py', namespace='demo')
... HANGS 

/sandbox/simpleactor.py

from Jumpscale import j

JSBASE = j.application.JSBaseClass

class simpleactor(JSBASE):
    def __init__(self):
        super().__init__(self)

    def myping(self):
        return "PONG"
serboctor commented 5 years ago

You shouldn't give the __init__ of the super self, this is why it is hanging. If you do super().__init__() it will work fine.