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

ImportError: cannot import name '_QUERY_OPTIONS' from 'pymongo.cursor' #404

Open
Bluscream opened this issue Oct 30, 2024 · 0 comments
Open

Comments

@Bluscream
Copy link

When i fix #403 i get the following error:

(.venv) blu@homeserver:~/bots/telegram/caligo $ python generate_session.py 
Traceback (most recent call last):
  File "/home/blu/bots/telegram/caligo/generate_session.py", line 5, in <module>
    from caligo.core import database
  File "/home/blu/bots/telegram/caligo/caligo/core/__init__.py", line 1, in <module>
    from .bot import Caligo  # skipcq: PY-W2000
    ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/blu/bots/telegram/caligo/caligo/core/bot.py", line 10, in <module>
    from .database_provider import DatabaseProvider
  File "/home/blu/bots/telegram/caligo/caligo/core/database_provider.py", line 4, in <module>
    from .database import AsyncClient, AsyncDatabase
  File "/home/blu/bots/telegram/caligo/caligo/core/database/__init__.py", line 1, in <module>
    from .client import AsyncClient  # skipcq: PY-W2000
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/blu/bots/telegram/caligo/caligo/core/database/client.py", line 33, in <module>
    from .command_cursor import AsyncCommandCursor, CommandCursor
  File "/home/blu/bots/telegram/caligo/caligo/core/database/command_cursor.py", line 25, in <module>
    from .cursor_base import AsyncCursorBase
  File "/home/blu/bots/telegram/caligo/caligo/core/database/cursor_base.py", line 19, in <module>
    from pymongo.cursor import _QUERY_OPTIONS, Cursor, RawBatchCursor
ImportError: cannot import name '_QUERY_OPTIONS' from 'pymongo.cursor' (/home/blu/bots/telegram/caligo/.venv/lib/python3.11/site-packages/pymongo/cursor.py)
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

1 participant