Giter VIP home page Giter VIP logo

Comments (18)

LightYagami28 avatar LightYagami28 commented on August 13, 2024 1

What i do to fix?

from userbot.

athphane avatar athphane commented on August 13, 2024

Refer to userbot.ini.sample for required variables in the userbot.ini file

from userbot.

LightYagami28 avatar LightYagami28 commented on August 13, 2024

Ok thanks

from userbot.

LightYagami28 avatar LightYagami28 commented on August 13, 2024

Traceback (most recent call last):
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 "/home/ubuntu/Clienti/@mydripistalen/Pyrogram-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'

I'm using mongodb atlas

from userbot.

athphane avatar athphane commented on August 13, 2024

Pls check userbot.ini.sample file and make sure you have sections set up properly.

from userbot.

LightYagami28 avatar LightYagami28 commented on August 13, 2024

I setup properly the userbot.ini.sample but i don't resolve my problem

from userbot.

LightYagami28 avatar LightYagami28 commented on August 13, 2024

image

from userbot.

LightYagami28 avatar LightYagami28 commented on August 13, 2024

@athphane
Pls help me

from userbot.

athphane avatar athphane commented on August 13, 2024

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

from userbot.

LightYagami28 avatar LightYagami28 commented on August 13, 2024

Same error

from userbot.

LightYagami28 avatar LightYagami28 commented on August 13, 2024

image

from userbot.

LightYagami28 avatar LightYagami28 commented on August 13, 2024

I don't know in any way how to fix

from userbot.

athphane avatar athphane commented on August 13, 2024

Are you editing userbot.ini.sample directly? Don't you have a userbot.ini file?

#50 (comment)

from userbot.

LightYagami28 avatar LightYagami28 commented on August 13, 2024

I edited the userbot.ini.sample file and finally turned it into userbot.ini

from userbot.

LightYagami28 avatar LightYagami28 commented on August 13, 2024

@phoenixatom do you know the fix?

from userbot.

athphane avatar athphane commented on August 13, 2024

the error clearly states that the section is missing. Therefore it is not in your userbot.ini file.

Steps
1- copy userbot.ini.sample to userbot.ini
2- fill in all the values
3- make sure all the sections are there.
4- run

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.

from userbot.

LightYagami28 avatar LightYagami28 commented on August 13, 2024

Oh thank you very much

from userbot.

LightYagami28 avatar LightYagami28 commented on August 13, 2024

I resolved the issues thank you so much and excuse me

from userbot.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.