Closed grispan56 closed 2 years ago
Wow, I was about to open the same issue ! I've found a workaround: in requirements.txt, downgrade the version of aioredis to 1.3.1:
aioredis==1.3.1
With this I got tanner running locally.
aioredis v2.0 made lot of changes(https://aioredis.readthedocs.io/en/latest/migration/). In that, they have changed the way to connect to a pool.
@afeena should we restrict the version in the requirements? or should we make the suggested changes to make it compatible with the latest version?
@valvolt which version of python/linux dist you use ?
I also tried to change the requirements to 1.3.1, but It gave different error,
File "/usr/local/lib/python3.8/dist-packages/aiohttp/helpers.py", line 30
ensure_future = asyncio.async
^
SyntaxError: invalid syntax
as much as i could find since python version 3.7 async became a reserved word so thats why the error come ? I tried to run it on python 3.8.10
Wow, I was about to open the same issue ! I've found a workaround: in requirements.txt, downgrade the version of aioredis to 1.3.1:
aioredis==1.3.1
With this I got tanner running locally.
I've used the docker-compose setup. Basically, I added a sed
command to the Tanner Dockerfile, so that it looks like this:
git clone --depth=1 https://github.com/mushorg/tanner /opt/tanner && \
cp /root/dist/config.yaml /opt/tanner/tanner/data/ && \
cd /opt/tanner/ && \
sed -i 's/aioredis/aioredis==1.3.1/g' requirements.txt && \
pip3 install --no-cache-dir setuptools && \
pip3 install --no-cache-dir -r requirements.txt && \
python3 setup.py install && \
cd / && \
After downgrading to 1.3.1, I am receiving the following error. Could you please help
tanner | Traceback (most recent call last):
tanner | File "/usr/bin/tanner", line 4, in <module>
tanner | __import__('pkg_resources').run_script('Tanner==0.6.0', 'tanner')
tanner | File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 667, in run_script
tanner | self.require(requires)[0].run_script(script_name, ns)
tanner | File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 1471, in run_script
tanner | exec(script_code, namespace, namespace)
tanner | File "/usr/lib/python3.7/site-packages/Tanner-0.6.0-py3.7.egg/EGG-INFO/scripts/tanner", line 37, in <module>
tanner | File "/usr/lib/python3.7/site-packages/Tanner-0.6.0-py3.7.egg/EGG-INFO/scripts/tanner", line 33, in main
tanner | File "/usr/lib/python3.7/site-packages/Tanner-0.6.0-py3.7.egg/tanner/server.py", line 139, in start
tanner | File "/usr/lib/python3.7/site-packages/aiohttp/web.py", line 514, in run_app
tanner | loop.run_until_complete(main_task)
tanner | File "uvloop/loop.pyx", line 1501, in uvloop.loop.Loop.run_until_complete
tanner | File "/usr/lib/python3.7/site-packages/aiohttp/web.py", line 321, in _run_app
tanner | await runner.setup()
tanner | File "/usr/lib/python3.7/site-packages/aiohttp/web_runner.py", line 279, in setup
tanner | self._server = await self._make_server()
tanner | File "/usr/lib/python3.7/site-packages/aiohttp/web_runner.py", line 373, in _make_server
tanner | self._app._set_loop(loop)
tanner | File "/usr/lib/python3.7/site-packages/aiohttp/web_app.py", line 224, in _set_loop
tanner | "web.Application instance initialized with different loop"
tanner | RuntimeError: web.Application instance initialized with different loop
Got the same error as @pklanka. I found the workaround to use an older version of aiohttp and adding this to my Dockerfile:
sed -i 's/^aiohttp$/aiohttp==3.7.4.post0/g' requirements.txt && \
@mzfr @afeena Are you planning on updating Tanner, right out of the box it builds, but without the changes proposed by @Chrzi and @valvolt it crashes on start.
I would be happy to merge changes, @Chrzi @valvolt would you like to do a pull request?
If not I will add the changes myself :)
No thanks :)
Did this issue ever get resolved? I'm advising a friend on how to setup tanner and the docker image still appears to have Redis errors.
@ibuydan Use the version bundled with T-Pot, works like a charm.
Im trying to run tanner whether by docker-compose or by manually installing , tried on multiple computers as well but getting the same error everytime, is there something missing in the instructions or anyway to solve it?