aikaterna / aikaterna-cogs

Cogs for Red-DiscordBot by Twentysix26.
Other
108 stars 98 forks source link

[CHATCHART] Failing to load chatchart #330

Closed jakjakob closed 3 months ago

jakjakob commented 3 months ago

Tried solutions:

running 3.5.9, haven't tried on 3.5.10 yet though (as soon as I update I will test)

traceback Jul 27 17:06:24 reddcbotv2 python[1687986]: [2024-07-27 17:06:24] [ERROR] red: Package loading failed Jul 27 17:06:24 reddcbotv2 python[1687986]: Traceback (most recent call last): Jul 27 17:06:24 reddcbotv2 python[1687986]: File "/home/xxx/redenv/lib/python3.11/site-packages/redbot/core/core_commands.py", line 189, in _load Jul 27 17:06:24 reddcbotv2 python[1687986]: await bot.load_extension(spec) Jul 27 17:06:24 reddcbotv2 python[1687986]: File "/home/xxx/redenv/lib/python3.11/site-packages/redbot/core/bot.py", line 1680, in load_extension Jul 27 17:06:24 reddcbotv2 python[1687986]: lib = spec.loader.load_module() Jul 27 17:06:24 reddcbotv2 python[1687986]: ^^^^^^^^^^^^^^^^^^^^^^^^^ Jul 27 17:06:24 reddcbotv2 python[1687986]: File "", line 605, in _check_name_wrapper Jul 27 17:06:24 reddcbotv2 python[1687986]: File "", line 1120, in load_module Jul 27 17:06:24 reddcbotv2 python[1687986]: File "", line 945, in load_module Jul 27 17:06:24 reddcbotv2 python[1687986]: File "", line 290, in _load_module_shim Jul 27 17:06:24 reddcbotv2 python[1687986]: File "", line 721, in _load Jul 27 17:06:24 reddcbotv2 python[1687986]: File "", line 690, in _load_unlocked Jul 27 17:06:24 reddcbotv2 python[1687986]: File "", line 940, in exec_module Jul 27 17:06:24 reddcbotv2 python[1687986]: File "", line 241, in _call_with_frames_removed Jul 27 17:06:24 reddcbotv2 python[1687986]: File "/home/xxx/.local/share/Red-DiscordBot/data/craftdcbot/cogs/CogManager/cogs/chatchart/__init__.py", line 1, in Jul 27 17:06:24 reddcbotv2 python[1687986]: from .chatchart import Chatchart Jul 27 17:06:24 reddcbotv2 python[1687986]: File "/home/xxx/.local/share/Red-DiscordBot/data/craftdcbot/cogs/CogManager/cogs/chatchart/chatchart.py", line 15, in Jul 27 17:06:24 reddcbotv2 python[1687986]: import matplotlib Jul 27 17:06:24 reddcbotv2 python[1687986]: File "/home/xxx/.local/share/Red-DiscordBot/data/craftdcbot/cogs/Downloader/lib/matplotlib/__init__.py", line 159, in Jul 27 17:06:24 reddcbotv2 python[1687986]: from . import _api, _version, cbook, _docstring, rcsetup Jul 27 17:06:24 reddcbotv2 python[1687986]: File "/home/xxx/.local/share/Red-DiscordBot/data/craftdcbot/cogs/Downloader/lib/matplotlib/rcsetup.py", line 28, in Jul 27 17:06:24 reddcbotv2 python[1687986]: from matplotlib.colors import Colormap, is_color_like Jul 27 17:06:24 reddcbotv2 python[1687986]: File "/home/xxx/.local/share/Red-DiscordBot/data/craftdcbot/cogs/Downloader/lib/matplotlib/colors.py", line 57, in Jul 27 17:06:24 reddcbotv2 python[1687986]: from matplotlib import _api, _cm, cbook, scale Jul 27 17:06:24 reddcbotv2 python[1687986]: File "/home/xxx/.local/share/Red-DiscordBot/data/craftdcbot/cogs/Downloader/lib/matplotlib/scale.py", line 22, in Jul 27 17:06:24 reddcbotv2 python[1687986]: from matplotlib.ticker import ( Jul 27 17:06:24 reddcbotv2 python[1687986]: File "/home/xxx/.local/share/Red-DiscordBot/data/craftdcbot/cogs/Downloader/lib/matplotlib/ticker.py", line 144, in Jul 27 17:06:24 reddcbotv2 python[1687986]: from matplotlib import transforms as mtransforms Jul 27 17:06:24 reddcbotv2 python[1687986]: File "/home/xxx/.local/share/Red-DiscordBot/data/craftdcbot/cogs/Downloader/lib/matplotlib/transforms.py", line 49, in Jul 27 17:06:24 reddcbotv2 python[1687986]: from matplotlib._path import ( Jul 27 17:06:24 reddcbotv2 python[1687986]: ImportError: numpy.core.multiarray failed to import
aikaterna commented 3 months ago

Your matplotlib and/or numpy dependencies aren't set up quite right. Try reinstalling. Numpy can be problematic on some systems.

jakjakob commented 3 months ago

tried to re-install (again), and didn't work

jakjakob commented 3 months ago

(as said above, I already did that before)

aikaterna commented 3 months ago

I'm telling you to fix your dependency installs, however you choose to do that, not reinstall the cog.

jakjakob commented 3 months ago

Thanks for the help. "Try reinstalling" could mean anything, please in the future explain a bit better what (even if the context is talking about dependencies that does not exactly mean to reinstall dependencies)