Zato-client Error

Has anyone come across this error while using Python 3.8 and zato-client? See stacktrace below

Traceback (most recent call last):
File “Client.py”, line 1, in
from zato.client import AnyServiceInvoker
File “/usr/local/lib/python3.8/site-packages/zato/client/init.py”, line 392
def inner_invoke(self, request, response_class, async, headers, output_repeated=False):
^
SyntaxError: invalid syntax

For completeness, can you tell me what the zato-client package’s version is? Thank you.

I am using zato-client 3.1.1

Thanks

I checked it and the “async” parameter is already renamed to “is_async” in the latest version of Zato that is on GitHub.

Package zato-client is part of it but it is not released on PyPI yet - I will look into doing it in this week.

In fact, I can see that in one of the environments here, Python 3.8 is also used so it should be just a matter of a new PyPI release.

Thanks.

Hello @myke,

zato-client 3.1.2 is now on PyPI - could you please try it out?

The only change was renaming “async” to “is_async” in input parameters.

Thanks.

@dsuch thanks for the update worked. I did have to install zato-vault-client to get it to work though.

Can you tell me in what way it was required? Why did you have to install zato-vault-client too? Thanks.

After updating to 3.1.2, I run the script and got the following error

Traceback (most recent call last):
File “Client.py”, line 1, in
from zato.client import AnyServiceInvoker
File “/usr/local/lib/python3.8/site-packages/zato/client/init.py”, line 37, in
from zato.common import BROKER, soap_data_path, soap_data_xpath, soap_fault_xpath,
File “/usr/local/lib/python3.8/site-packages/zato/common/init.py”, line 40, in
from zato.vault.client import VAULT
ModuleNotFoundError: No module named ‘zato.vault’

I installed that module and it worked.