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

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

Closed
samucamg opened this issue Aug 24, 2022 · 5 comments
Closed

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

samucamg opened this issue Aug 24, 2022 · 5 comments

Comments

@samucamg
Copy link

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
Copy link
Owner

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

pip3 install -U pyrogram

@EverythingSuckz EverythingSuckz changed the title Error after stop the bot TypeError: init() got an unexpected keyword argument 'name' Aug 24, 2022
@ThePhantomDev
Copy link

same goes for here

Screenshot (30)

@EverythingSuckz
Copy link
Owner

EverythingSuckz commented Oct 30, 2022

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
Copy link
Contributor

DeekshithSH commented Oct 30, 2022

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
Copy link

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)

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

4 participants