Fuyukai / OWAPI

Overwatch JSON API
https://owapi.net
MIT License
455 stars 74 forks source link

Can't start the application #243

Open Domekologe opened 6 years ago

Domekologe commented 6 years ago

Hello,

I cannot start the application on my Ubuntu VPS. At first I would use the new version, but this gave me an error, that its need the Python 3.5.3 version (I have 3.5.2 installed) and so I have to used an older version, but there I got an error:

Warning: activate_this.py not found. Your environment is most certainly not activated. Continuing anyway... INFO:asphalt.core.runner:Running in development mode 2018-07-26 11:04:45,047 - [INFO] asphalt.core.runner -> Starting application 2018-07-26 11:04:45,126 - [ERROR] asphalt.core.runner -> Error during application startup Traceback (most recent call last): File "/opt/OWAPI2/OWAPI/venv/lib/python3.5/site-packages/asphalt/core/runner.py", line 111, in run_application event_loop.run_until_complete(coro) File "/usr/lib/python3.5/asyncio/base_events.py", line 387, in run_until_complete return future.result() File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result raise self._exception File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step result = coro.send(None) File "/usr/lib/python3.5/asyncio/tasks.py", line 392, in wait_for return fut.result() File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result raise self._exception File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step result = coro.send(None) File "/opt/OWAPI2/OWAPI/owapi/app.py", line 133, in start from asphalt.redis.component import RedisComponent File "/opt/OWAPI2/OWAPI/venv/lib/python3.5/site-packages/asphalt/redis/component.py", line 6, in from aioredis import create_reconnecting_redis ImportError: cannot import name 'create_reconnecting_redis' 2018-07-26 11:04:45,130 - [INFO] asphalt.core.runner -> Stopping application 2018-07-26 11:04:45,132 - [INFO] asphalt.core.runner -> Application stopped 2018-07-26 11:04:45,176 - [ERROR] asyncio -> Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7f46fa551860>

Maybe you can help me here.

jpylypiw commented 6 years ago

Hi Domekologe,

I think you had a error while setting up the venv.

Please delete the venv folder and retry setting up the venv.

Von: Domekologe notifications@github.com Gesendet: Donnerstag, 26. Juli 2018 13:07 An: Fuyukai/OWAPI OWAPI@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Betreff: [Fuyukai/OWAPI] Can't start the application (#243)

Hello,

I cannot start the application on my Ubuntu VPS. At first I would use the new version, but this gave me an error, that its need the Python 3.5.3 version (I have 3.5.2 installed) and so I have to used an older version, but there I got an error:

Warning: activate_this.py not found. Your environment is most certainly not activated. Continuing anyway... INFO:asphalt.core.runner:Running in development mode 2018-07-26 11:04:45,047 - [INFO] asphalt.core.runner -> Starting application 2018-07-26 11:04:45,126 - [ERROR] asphalt.core.runner -> Error during application startup Traceback (most recent call last): File "/opt/OWAPI2/OWAPI/venv/lib/python3.5/site-packages/asphalt/core/runner.py", line 111, in run_application event_loop.run_until_complete(coro) File "/usr/lib/python3.5/asyncio/base_events.py", line 387, in run_until_complete return future.result() File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result raise self._exception File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step result = coro.send(None) File "/usr/lib/python3.5/asyncio/tasks.py", line 392, in wait_for return fut.result() File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result raise self._exception File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step result = coro.send(None) File "/opt/OWAPI2/OWAPI/owapi/app.py", line 133, in start from asphalt.redis.component import RedisComponent File "/opt/OWAPI2/OWAPI/venv/lib/python3.5/site-packages/asphalt/redis/component.py", line 6, in from aioredis import create_reconnecting_redis ImportError: cannot import name 'create_reconnecting_redis' 2018-07-26 11:04:45,130 - [INFO] asphalt.core.runner -> Stopping application 2018-07-26 11:04:45,132 - [INFO] asphalt.core.runner -> Application stopped 2018-07-26 11:04:45,176 - [ERROR] asyncio -> Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7f46fa551860>

Maybe you can help me here.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Fuyukai/OWAPI/issues/243 , or mute the thread https://github.com/notifications/unsubscribe-auth/AL0erM07K9n6XkCag0TWCYM40W0druQ3ks5uKaLpgaJpZM4Vhn1g . https://github.com/notifications/beacon/AL0erDQchdWjlHXy_ozWAufRxpVS5gT3ks5uKaLpgaJpZM4Vhn1g.gif

Domekologe commented 6 years ago

Hi KingJP, I got the same error message.

It's very interesting. I have another VPS and there it works (the same OS Template was used), but this VPS will be deactivated soon :(

Domekologe commented 6 years ago

Hmm ok, I think there is a problem with the "asphalt" plugin. I have copied the "site-packages" folder from the other machine and replaced it. Now I have another problem detected.

The problem is not the venv. The problem is the python version.

I have used the version 3.5.3 (said as required) and this version doesn't copy the files to the venv folder. Version 3.5.2 make everything right, but the application doesn't start, because it wants version 3.5.3

Please help me...

Fuyukai commented 6 years ago

The aioredis version is pinned in the Pipfile. If you installed it using pipenv install on 3.5.3 it should've installed with the correct requirements.