Open
Description
Describe the bug
When testing the vm supervisor natively (not in a docker container), the vm fails to boot due to the following error :
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
resp = await request_handler(request)
File "/usr/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
File "/root/aleph-vm/guest_api/__main__.py", line 128, in put_in_cache
redis: aioredis.Redis = await get_redis()
File "/root/aleph-vm/guest_api/__main__.py", line 24, in get_redis
_redis = await aioredis.create_redis(address=address)
AttributeError: module 'aioredis' has no attribute 'create_redis'
After a quick search, it seems the create_redis
method was removed from aioredis
version 2.0 (source)
I suggest forcing the use of aioredis 1.3
in the dependencies documentation.
To Reproduce
1: clone the aleph-vm repo
2: follow the steps described in /tutorials/TESTING.md and install the latest version of aioredis
with pip
3: start the vm supervisor natively (python3 -m ...
command)
4: access http://localhost:4020
Expected behavior
The micro vm should successfully start.
Desktop (please complete the following information):
- OS: arch linux 5.17.9
- Browser : Brave