Skip to content

Fix error import while having aiohttp installed#7

Open
mupastir wants to merge 1 commit intobobuk:mainfrom
mupastir:patch-1
Open

Fix error import while having aiohttp installed#7
mupastir wants to merge 1 commit intobobuk:mainfrom
mupastir:patch-1

Conversation

@mupastir
Copy link
Contributor

@mupastir mupastir commented Apr 3, 2025

#6 As it was fixed before the updates

There is minimal setup to reproduce:

(Install venv and activate it, as for me I use uv venv & source .venv/bin/activate)

uv pip install minigram-py aiohttp

and in python shell just run this

>>> from minigram import MiniGramUpdate
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/user/Projects/check-minigram-import-error/.venv/lib/python3.12/site-packages/minigram/__init__.py", line 3, in <module>
    from .main import MiniGram, MiniGramUpdate, AsyncMiniGram
  File "/Users/user/Projects/check-minigram-import-error/.venv/lib/python3.12/site-packages/minigram/main.py", line 9, in <module>
    from .request import sync_req, async_req
ImportError: cannot import name 'sync_req' from 'minigram.request' (/Users/user/Projects/check-minigram-import-error/.venv/lib/python3.12/site-packages/minigram/request.py). Did you mean: 'async_req'?

bobuk#6 As it was fixed before the updates
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

Successfully merging this pull request may close these issues.

1 participant