Cannot start the web application due to aiohttp version compatibility
See original GitHub issueHi!
I am trying to run the gpustat-web app using python 3.7.3 with gpustat v. 0.6.0, however, after building, installing, and running I get:
Traceback (most recent call last):
File "~/anaconda3/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "~/anaconda3/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "~/gpustat-web/gpustat_web/__main__.py", line 4, in <module>
main()
File "~/gpustat-web/gpustat_web/app.py", line 229, in main
web.run_app(app, host='0.0.0.0', port=args.port)
File "~/anaconda3/lib/python3.7/site-packages/aiohttp-4.0.0a1-py3.7-linux-x86_64.egg/aiohttp/web.py", line 433, in run_app
reuse_port=reuse_port))
File "~/anaconda3/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete
return future.result()
File "~/anaconda3/lib/python3.7/site-packages/aiohttp-4.0.0a1-py3.7-linux-x86_64.egg/aiohttp/web.py", line 305, in _run_app
await runner.setup()
File "~/anaconda3/lib/python3.7/site-packages/aiohttp-4.0.0a1-py3.7-linux-x86_64.egg/aiohttp/web_runner.py", line 239, in setup
self._server = await self._make_server()
File "~/anaconda3/lib/python3.7/site-packages/aiohttp-4.0.0a1-py3.7-linux-x86_64.egg/aiohttp/web_runner.py", line 352, in _make_server
await self._app.startup()
File "~/anaconda3/lib/python3.7/site-packages/aiohttp-4.0.0a1-py3.7-linux-x86_64.egg/aiohttp/web_app.py", line 289, in startup
await self.on_startup.send(self)
File "~/anaconda3/lib/python3.7/site-packages/aiohttp-4.0.0a1-py3.7-linux-x86_64.egg/aiohttp/signals.py", line 34, in send
await receiver(*args, **kwargs) # type: ignore
File "~/gpustat-web/gpustat_web/app.py", line 186, in start_background_tasks
app._tasks = app.loop.create_task(spawn_clients(hosts, exec_cmd, verbose=verbose))
AttributeError: 'Application' object has no attribute 'loop'
I did the following:
python setup.py build
python setup.py install
python -m gpustat_web --port 48109
Any ideas of what I am missing?
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Welcome to AIOHTTP — aiohttp 3.8.3 documentation
Welcome to AIOHTTP¶. Asynchronous HTTP Client/Server for asyncio and Python. Current version is 3.8.3. Key Features¶. Supports both Client and HTTP Server.
Read more >Compatibility issue with Python 3.10 + aiohttp and .NET 4.X
I have a Python 3.10 aiohttp server running on a Mac computer: ... .NET Framework 4.5 doesn't run on Mac and isn't supported...
Read more >aiohttp - PyPI
Getting started. Client. To get something from the web: import aiohttp import asyncio async def main(): async with aiohttp.ClientSession() as session: async ...
Read more >The Socket.IO Server — python-socketio documentation
AsyncServer() class creates a server compatible with the asyncio package. ... groups of related clients, the application can put its clients into “rooms”, ......
Read more >Async IO in Python: A Complete Walkthrough
Python Version Specifics; Articles; Related PEPs ... py37async\Scripts\activate.bat $ pip install --upgrade pip aiohttp aiofiles # Optional: aiodns.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Fixed #7 via fd501df.
Apparently
Poly1305.generate_tagwas added in pyca/cryptography 2.8+. What is the version ofcryptographyinstalled on your system? Try upgrading it. If you installed dependency correctly, it should have been automatically taken care of.