TG-FileStreamBot icon indicating copy to clipboard operation
TG-FileStreamBot copied to clipboard

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

Open samucamg opened this issue 3 years ago • 1 comments

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'

samucamg avatar Aug 24 '22 02:08 samucamg

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

pip3 install -U pyrogram

EverythingSuckz avatar Aug 24 '22 11:08 EverythingSuckz

same goes for here

Screenshot (30)

ThePhantomDev avatar Oct 30 '22 06:10 ThePhantomDev

same goes for here

Screenshot (30)

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

EverythingSuckz avatar Oct 30 '22 06:10 EverythingSuckz

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

DeekshithSH avatar Oct 30 '22 06:10 DeekshithSH

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)

ThePhantomDev avatar Oct 30 '22 07:10 ThePhantomDev