Код: Выделить всё
Traceback (most recent call last):
File "c:\Users\User\Desktop\python\bots\SVG\bott copy.py", line 1, in
from pyrogram import Client, filters, methods
File "c:\Users\User\AppData\Local\Programs\Python\Python314\Lib\site-packages\pyrogram\__init__.py", line 40, in
from .sync import idle, compose
File "c:\Users\User\AppData\Local\Programs\Python\Python314\Lib\site-packages\pyrogram\sync.py", line 99, in
wrap(Methods)
~~~~^^^^^^^^^
File "c:\Users\User\AppData\Local\Programs\Python\Python314\Lib\site-packages\pyrogram\sync.py", line 95, in wrap
async_to_sync(source, name)
~~~~~~~~~~~~~^^^^^^^^^^^^^^
File "c:\Users\User\AppData\Local\Programs\Python\Python314\Lib\site-packages\pyrogram\sync.py", line 31, in async_to_sync
main_loop = asyncio.get_event_loop()
File "c:\Users\User\AppData\Local\Programs\Python\Python314\Lib\asyncio\events.py", line 715, in get_event_loop
raise RuntimeError('There is no current event loop in thread %r.'
% threading.current_thread().name)
RuntimeError: There is no current event loop in thread 'MainThread'.
Код: Выделить всё
import pyrogram
Вот моя заморозка пипа python -m:
Код: Выделить всё
PS C:\Users\User\Desktop\python> python -m pip freezeКод: Выделить всё
bcrypt==4.3.0Код: Выделить всё
beautifulsoup4==4.14.2Код: Выделить всё
cachebox==5.0.4Код: Выделить всё
certifi==2025.10.5Код: Выделить всё
cffi==2.0.0Код: Выделить всё
charset-normalizer==3.4.4Код: Выделить всё
cryptography==38.0.4Код: Выделить всё
idna==3.11Код: Выделить всё
lxml==6.0.2Код: Выделить всё
pyaes==1.6.1Код: Выделить всё
pycparser==2.23Код: Выделить всё
Pyrogram==2.0.106Код: Выделить всё
pyrostep==2.11.22Код: Выделить всё
PySocks==1.7.1Код: Выделить всё
pyTelegramBotAPI==4.29.1Код: Выделить всё
pip install pyrogramПодробнее здесь: https://stackoverflow.com/questions/797 ... t-event-lo