-
Notifications
You must be signed in to change notification settings - Fork 103
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
No section name mongo #50
Comments
Refer to userbot.ini.sample for required variables in the |
Ok thanks |
Traceback (most recent call last): I'm using mongodb atlas |
What i do to fix? |
Pls check userbot.ini.sample file and make sure you have sections set up properly. |
I setup properly the userbot.ini.sample but i don't resolve my problem |
@athphane |
Ok so the main issue is you have a bunch of unnecessary things in the url value. You only need everything starting from “mongodb+Srv” to “myFirstDatabase”. |
Same error |
I don't know in any way how to fix |
Are you editing userbot.ini.sample directly? Don't you have a userbot.ini file? |
I edited the userbot.ini.sample file and finally turned it into userbot.ini |
@phoenixatom do you know the fix? |
the error clearly states that the section is missing. Therefore it is not in your userbot.ini file. Steps I know the code in my repository works fine when you have the userbot.ini file. I also now notice that you’re asking for help regarding your fork. I know it’s the same code but since yours is modified I cannot confirm that it will work exactly how I have described. Please ask further questions that are directly related to this repository. |
Oh thank you very much |
I resolved the issues thank you so much and excuse me |
File "/usr/lib/python3.9/runpy.py", line 188, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/lib/python3.9/runpy.py", line 147, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/usr/lib/python3.9/runpy.py", line 111, in _get_module_details
import(pkg_name)
File "/root/userbot/userbot/init.py", line 45, in
MONGO_URL = config.get("mongo", "url")
File "/usr/lib/python3.9/configparser.py", line 781, in get
d = self._unify_values(section, vars)
File "/usr/lib/python3.9/configparser.py", line 1149, in _unify_values
raise NoSectionError(section) from None
configparser.NoSectionError: No section: 'mongo'
The text was updated successfully, but these errors were encountered: