athphane / userbot

Telegram Userbot built with Pyrogram

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error

baff3r opened this issue · comments

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

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

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

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

commented

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'

Looks liks you are missing the config.ini file.

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