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

Error #56

Closed
baff3r opened this issue May 7, 2022 · 6 comments
Closed

Error #56

baff3r opened this issue May 7, 2022 · 6 comments
Labels
question Further information is requested

Comments

@baff3r
Copy link

baff3r commented May 7, 2022

PermissionError: [Errno 13] Permission denied: '/proc/stat'

@phoenixatom
Copy link
Collaborator

Are you trying to run the bot on an Android? Or a chrooted server?

@phoenixatom phoenixatom added the question Further information is requested label May 7, 2022
@baff3r
Copy link
Author

baff3r commented May 7, 2022

I have this error on my mobile phone, and my own server too

@phoenixatom
Copy link
Collaborator

It's because you don't have proper access to the cpu usage. You can fix it by fixing permissions on your server.

@OcroCodeChain
Copy link

python -m userbot
Traceback (most recent call last):
File "C:\Users\root\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 188, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "C:\Users\root\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 147, in _get_module_details return _get_module_details(pkg_main_name, error)
File "C:\Users\root\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 111, in get_module_details import(pkg_name)
File "C:\Users\root\Documents\userbot\userbot_init
.py", line 37, in e> UserBot = UserBot(version)
File "C:\Users\root\Documents\userbot\userbot\userbot.py", line 22, in _init _ super().init(
TypeError: init() got an unexpected keyword argument 'config_file'

@phoenixatom
Copy link
Collaborator

Looks liks you are missing the config.ini file.

@athphane
Copy link
Owner

@phoenixatom actually no. Pyrogram version 2 recently removed the ability to pass a config file to the main Client constructor. As a result the current codebase is breaking as there is no exact version specified on the requirements.txt file.

I will be releasing an update soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants