Traceback (most recent call last):
File "c:\Users\halfs\Desktop\Vasuki-Re-Write\Vasuki\index.py", line 80, in <module>
bot.load_extensions_from("plugin/searchanime")
File "C:\Users\halfs\AppData\Roaming\Python\Python39\site-packages\lightbulb\app.py", line 591, in load_extensions_from
raise ValueError(f"'{path}' must be relative to the working directory") from None
ValueError: 'plugin\searchanime' must be relative to the working directory```
Getting this error.
```py
bot.load_extensions_from("plugin/searchanime")```
#Error Importing Plugin
1 messages · Page 1 of 1 (latest)
Like it says, you removed the o so important ./
That tells it "in this folder, look for the plugin folder"
Traceback (most recent call last):
File "c:\Users\halfs\Desktop\Vasuki-Re-Write\Vasuki\index.py", line 80, in <module>
bot.load_extensions_from("./plugin/searchanime")
File "C:\Users\halfs\AppData\Roaming\Python\Python39\site-packages\lightbulb\app.py", line 591, in load_extensions_from
raise ValueError(f"'{path}' must be relative to the working directory") from None
ValueError: 'plugin\searchanime' must be relative to the working directory```

What's your cwd?
bot.load_extensions_from("./plugin/searchanime")
How are you running the bot?
C:\Users\halfs\Desktop\Vasuki-Re-Write>
wdm
What's your python command?
python index.py
I changed it now
C:\Users\halfs\Desktop\Vasuki-Re-Write\Vasuki>
yet again
the same error
@young cliff what is in plugin/ ?
searchanime
another folder
which has
Create an __init__.py in every one of the subfolders
it is working now
but why
did init.py
did something
It's to python can detect it as an importable path