Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem on initiating xo instance #1

Open
binooetomo opened this issue Dec 15, 2020 · 0 comments
Open

problem on initiating xo instance #1

binooetomo opened this issue Dec 15, 2020 · 0 comments

Comments

@binooetomo
Copy link

Dear Sir.

I just found your xolib.

From the usage section of readme.rst the line with 'xo_instance = xo('ws://localhost', timeout=30)' got '''

Traceback (most recent call last):
File "", line 1, in
File "/home/bino/.local/share/virtualenvs/playxolib-qsi9oiDU/lib/python3.8/site-packages/synthetic/synthetic_constructor_factory.py", line 79, in init
originalConstructor(instance, *args, **kwargs)
TypeError: init() got an unexpected keyword argument 'timeout'
'''

and when I remove the timeout argument, I got :

Traceback (most recent call last):
File "", line 1, in
File "/home/bino/.local/share/virtualenvs/playxolib-qsi9oiDU/lib/python3.8/site-packages/synthetic/synthetic_constructor_factory.py", line 79, in init
originalConstructor(instance, *args, **kwargs)
File "/home/bino/.local/share/virtualenvs/playxolib-qsi9oiDU/lib/python3.8/site-packages/xolib/xo.py", line 45, in init
self._learn_methods()
File "/home/bino/.local/share/virtualenvs/playxolib-qsi9oiDU/lib/python3.8/site-packages/xolib/xo.py", line 81, in _learn_methods
patch_method_in(self, method_code)
File "/home/bino/.local/share/virtualenvs/playxolib-qsi9oiDU/lib/python3.8/site-packages/xolib/utils.py", line 7, in patch_method_in
exec(method_code, None, ld)
File "", line 1
def backupNg_getLogs(self, *, after=None, before=None, limit=None, *): return self.call('backupNg.getLogs', after=after, before=before, limit=limit, =)
^
SyntaxError: invalid syntax

Sincerely
-bino-

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant