Comments (7)
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.
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.
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.
I am opening it by double clicking it.
from dingolingo.
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.
The issue is, when I ran it stock, it still came up with the same errors.
from dingolingo.
Cannot reproduce, Issue is with client setup/modification.
from dingolingo.
Related Issues (20)
- TypeError: Client.start() got an unexpected keyword argument 'bot' HOT 2
- Update requirements HOT 1
- Songs with colons (:) in their names causes the Bot to stop working. HOT 3
- missing 1 required keyword-only argument: 'intents' HOT 3
- Not Working on Heroku HOT 3
- Change discord-py to py-cord. HOT 1
- Running bot as .pyw prevents music from playing HOT 2
- Bot doesn't respond to any command, and gives error. HOT 5
- Help HOT 2
- The bot doesn't play anything HOT 4
- Nothing gets added to queue HOT 3
- I can't use commands HOT 3
- I have a problem with intents HOT 3
- run.py is missing intents (.galex_ on discord)
- Cant play music: ClientException: ffmpeg was not found. HOT 1
- The bot responds to commands but does not play songs
- The above exception was the direct cause of the following exception: HOT 1
- Error: name 'Settings' is not defined
- Error when i opening run.py HOT 1
- The bot doesn't respond when I text it on the server. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dingolingo.