Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Motor AttributeError #386

Closed
moas opened this issue Sep 7, 2018 · 1 comment
Closed

Motor AttributeError #386

moas opened this issue Sep 7, 2018 · 1 comment

Comments

@moas
Copy link

moas commented Sep 7, 2018

ERROR:aiohttp.server:Error handling request
Traceback (most recent call last):
File "/home/oscar/.pyenv/versions/ads/lib/python3.6/site-packages/aiohttp/web_protocol.py", line 390, in start
resp = await self._request_handler(request)
File "/home/oscar/.pyenv/versions/ads/lib/python3.6/site-packages/aiohttp/web_app.py", line 352, in _handle
resp = await handler(request)
File "/home/oscar/.pyenv/versions/ads/lib/python3.6/site-packages/aiohttp/web_middlewares.py", line 106, in impl
return await handler(request)
File "/home/oscar/.pyenv/versions/ads/lib/python3.6/site-packages/aiohttp_session/init.py", line 149, in factory
response = await handler(request)
File "/home/oscar/.pyenv/versions/ads/lib/python3.6/site-packages/aiohttp/web_middlewares.py", line 106, in impl
return await handler(request)
File "/home/oscar/.pyenv/versions/ads/lib/python3.6/site-packages/aiohttp_admin/backends/mongo.py", line 47, in list
count = await self._collection.find(query).count()
AttributeError: 'AsyncIOMotorCursor' object has no attribute 'count'

@jettify
Copy link
Member

jettify commented Sep 9, 2018

Looks like motor changed API or something like that, we should probably pin motor version or something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants