I am experimenting with DAZL on a Windows VM and have some simple python code developed.
import asyncio
import datetime
import logging
import time
import uuid
import dazl
dazl.setup_default_logger(logging.INFO)
EPOCH = datetime.datetime.utcfromtimestamp(0)
def main():
with dazl.simple_client('http://localhost:6865', 'Operator') as client:
contract = { 'operator' : 'Operator', 'party' : 'Bank',}
client.ready()
client.submit_create('Main.Party', contract)
if __name__ == '__main__':
main()
When I run the Python script I get the following error log
λ poetry run python ./pythontest/test.py
[WARNING] 2020-10-08 09:50:11,290 | root | setup_default_logger being called more than once!
[ INFO] 2020-10-08 09:50:11,290 | dazl | Starting a simple_client with to http://localhost:6865 with party 'Operator'...
[ INFO] 2020-10-08 09:50:11,295 | dazl | Starting an event loop on a background thread 'dazl:main-000002589566e6c0'...
[ INFO] 2020-10-08 09:50:11,301 | dazl | No server_port configuration was specified, so metrics and other stats will not be served.
[ INFO] 2020-10-08 09:50:11,304 | dazl | Network bots coroutine started.
[ INFO] 2020-10-08 09:50:11,304 | dazl | Party Operator bots coroutine started.
[ INFO] 2020-10-08 09:50:11,305 | dazl | Establishing a connection to http://localhost:6865 on party Operator...
Traceback (most recent call last):
File "./pythontest/test.py", line 36, in <module>
main()
File "./pythontest/test.py", line 26, in main
client.ready()
File "C:\Local\pypoetry\Cache\virtualenvs\pythontest-PlasE2q--py3.8\lib\site-packages\dazl\client\api.py", line 1567, in ready
return self._impl.invoker.run_in_loop(lambda: self._impl.ready())
File "C:\Local\pypoetry\Cache\virtualenvs\pythontest-PlasE2q--py3.8\lib\site-packages\dazl\scheduler\_invoker.py", line 99, in run_in_loop
return execute_in_loop(self.loop, func, timeout=timeout)
File "C:\Local\pypoetry\Cache\virtualenvs\pythontest-PlasE2q--py3.8\lib\site-packages\dazl\util\asyncio_util.py", line 211, in execute_in_loop
result = q.get(timeout=timeout_in_seconds)
File "C:\Python38\lib\queue.py", line 178, in get
raise Empty
_queue.Empty
I have run netstat on this VM
netstat -na | findstr "6865"
TCP 127.0.0.1:6865 0.0.0.0:0 LISTENING
TCP 127.0.0.1:6865 127.0.0.1:53148 ESTABLISHED
TCP 127.0.0.1:6865 127.0.0.1:53150 ESTABLISHED
TCP 127.0.0.1:53148 127.0.0.1:6865 ESTABLISHED
TCP 127.0.0.1:53150 127.0.0.1:6865 ESTABLISHED
Any suggestions on troubleshooting this issue ?