athphane / userbot

Telegram Userbot built with Pyrogram
GNU General Public License v3.0
155 stars 103 forks source link

Error #56

Closed baff3r closed 2 years ago

baff3r commented 2 years ago

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

phoenixatom commented 2 years ago

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

baff3r commented 2 years ago

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

phoenixatom commented 2 years ago

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

OcroCodeChain commented 2 years ago

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 commented 2 years ago

Looks liks you are missing the config.ini file.

athphane commented 2 years ago

@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.