EverythingSuckz / TG-FileStreamBot

A telegram bot that will give instant stream links for telegram files without the need of waiting till the download completes.
GNU Affero General Public License v3.0
1.32k stars 1.29k forks source link

`TypeError: init() got an unexpected keyword argument 'name'` #65

Closed samucamg closed 2 years ago

samucamg commented 2 years ago

I'm using ubuntu 20.04 python 3.8 and when I start the bot for the first time this work fine. But after stop and start again I got the error.

Traceback (most recent call last): File "/usr/lib/python3.8/runpy.py", line 185, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_name, _Error) File "/usr/lib/python3.8/runpy.py", line 144, in _get_module_details return _get_module_details(pkg_main_name, error) File "/usr/lib/python3.8/runpy.py", line 111, in _get_module_details import(pkg_name) File "/opt/TG-FileStreamBot/WebStreamer/init.py", line 7, in from WebStreamer.bot.clients import StreamBot File "/opt/TG-FileStreamBot/WebStreamer/bot/init.py", line 9, in StreamBot = Client( TypeError: init() got an unexpected keyword argument 'name'

EverythingSuckz commented 2 years ago

This is becasue you are using an older version of pyrogram. Please install the latest version by running

pip3 install -U pyrogram
ThePhantomDev commented 2 years ago

same goes for here

Screenshot (30)

EverythingSuckz commented 2 years ago

same goes for here

Screenshot (30)

Seems like your pyrogram version is still <2.0.0 maybe try pip install Pyrogram>=2.0.50

DeekshithSH commented 2 years ago

same goes for here Screenshot (30)

Seems like your pyrogram version is still <2.0.0 maybe try pip install Pyrogram>=2.0.50

He/She using python 3.6

ThePhantomDev commented 2 years ago

Old version:Linux(Ubuntu 18.04) Newer version:Linux (Ubuntu 22.04)

solved After changing os version. python newer can't be installed in older version. updating the version helped me Screenshot (33)