OWAPI icon indicating copy to clipboard operation
OWAPI copied to clipboard

Can't start the application

Open Domekologe opened this issue 5 years ago • 4 comments

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.

Domekologe avatar Jul 26 '18 11:07 Domekologe

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 [email protected] Gesendet: Donnerstag, 26. Juli 2018 13:07 An: Fuyukai/OWAPI [email protected] Cc: Subscribed [email protected] 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

jpylypiw avatar Jul 26 '18 12:07 jpylypiw

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 avatar Jul 27 '18 06:07 Domekologe

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...

Domekologe avatar Jul 27 '18 06:07 Domekologe

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.

Fuyukai avatar Jul 27 '18 12:07 Fuyukai