Giter VIP home page Giter VIP logo

Comments (7)

Raptor123471 avatar Raptor123471 commented on August 16, 2024

Can you post the full error here? I am not able to reproduce the issue on multiple instances. Check to make sure you have the latest bot version, an updated python install, look for possible modules conflicting with the name config and reinstall your modules with the --force-reinstall pip flag. OS info would be helpful also.

from dingolingo.

Finnlious avatar Finnlious commented on August 16, 2024
No` module named 'musicbot'
No module named 'musicbot'
No module named 'musicbot'
Traceback (most recent call last):
 File "C:\Python39\lib\site-packages\discord\ext\commands\bot.py" line 612, in _load_from_module_spec setup = getattr(lib, 'setup')
AttributeError: module 'config' has no attribute 'setup'

During handling of the above exception, another exception occured

Traceback (most recent call last):
 File "C:\Users\rektg\Documents\Discord Bot\run.py", line 156, in <module> client.load_extension(f'cogs.{filename[:-3]}')
 File "C:\Python39\lib\site-packages\discord\ext\commands\bot.py" line 678, in load extension self._load_from_module_spec(spec, name)
 File "C:\Python39\lib\site-packages\discord\ext\commands\bot.py" line 615, in _load_from_module_spec raise errors.NoEntryPointError(key)
discord.ext.commands.error.NoEntryPointError: Extension 'config" has no 'setup' function.
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x0000017EEDA02760>

I will reinstall my modules. Windows 10 Pro 19042.1237

from dingolingo.

Raptor123471 avatar Raptor123471 commented on August 16, 2024

Can you take a screenshot of your bot's folder structure? These are all directory local imports so there should be no issue importing them. Also how are you staring the bot? I'll check your response in the morning

from dingolingo.

Finnlious avatar Finnlious commented on August 16, 2024

github 2
github 1
I am opening it by double clicking it.

from dingolingo.

Raptor123471 avatar Raptor123471 commented on August 16, 2024

The bot is intended to run with it's stock directory structure. If you modify it like this you will need to edit the imports and paths to the new locations.

from dingolingo.

Finnlious avatar Finnlious commented on August 16, 2024

The issue is, when I ran it stock, it still came up with the same errors.

from dingolingo.

Raptor123471 avatar Raptor123471 commented on August 16, 2024

Cannot reproduce, Issue is with client setup/modification.

from dingolingo.

Related Issues (20)

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.