Skip to content
This repository was archived by the owner on Oct 15, 2023. It is now read-only.

[aki] Doesn't work on Redbot 3.5.1 #167

Closed
rex2630 opened this issue May 7, 2023 · 10 comments
Closed

[aki] Doesn't work on Redbot 3.5.1 #167

rex2630 opened this issue May 7, 2023 · 10 comments

Comments

@rex2630
Copy link

rex2630 commented May 7, 2023

May 07 13:45:14 ubuntu python[273087]: [2023-05-07 13:45:14] [ERROR] red: Package loading failed
May 07 13:45:14 ubuntu python[273087]: Traceback (most recent call last):
May 07 13:45:14 ubuntu python[273087]: File "/home/ubuntu/redenv/lib/python3.11/site-packages/redbot/core/core_commands.py", line 188, in _load
May 07 13:45:14 ubuntu python[273087]: await bot.load_extension(spec)
May 07 13:45:14 ubuntu python[273087]: File "/home/ubuntu/redenv/lib/python3.11/site-packages/redbot/core/bot.py", line 1680, in load_extension
May 07 13:45:14 ubuntu python[273087]: lib = spec.loader.load_module()
May 07 13:45:14 ubuntu python[273087]: ^^^^^^^^^^^^^^^^^^^^^^^^^
May 07 13:45:14 ubuntu python[273087]: File "", line 605, in _check_name_wrapper
May 07 13:45:14 ubuntu python[273087]: File "", line 1120, in load_module
May 07 13:45:14 ubuntu python[273087]: File "", line 945, in load_module
May 07 13:45:14 ubuntu python[273087]: File "", line 290, in _load_module_shim
May 07 13:45:14 ubuntu python[273087]: File "", line 721, in _load
May 07 13:45:14 ubuntu python[273087]: File "", line 690, in _load_unlocked
May 07 13:45:14 ubuntu python[273087]: File "", line 940, in exec_module
May 07 13:45:14 ubuntu python[273087]: File "", line 241, in _call_with_frames_removed
May 07 13:45:14 ubuntu python[273087]: File "/home/ubuntu/.local/share/Red-DiscordBot/data/Davidb/cogs/CogManager/cogs/aki/init.py", line 30, in
May 07 13:45:14 ubuntu python[273087]: from .aki import Aki
May 07 13:45:14 ubuntu python[273087]: File "/home/ubuntu/.local/share/Red-DiscordBot/data/Davidb/cogs/CogManager/cogs/aki/aki.py", line 28, in
May 07 13:45:14 ubuntu python[273087]: import akinator
May 07 13:45:14 ubuntu python[273087]: ModuleNotFoundError: No module named 'akinator'
May 07 13:45:25 ubuntu python[273087]: [2023-05-07 13:45:25] [INFO] discord.gateway: Shard ID 0 has successfully RESUMED session b430b5ea3bd205e37244bc86ae8654c4.

@rex2630
Copy link
Author

rex2630 commented May 7, 2023

This log is from dpy2 branch

@sravan1946
Copy link
Contributor

Try reinstalling or do [p]pipinstall akinator[fast_async]==1.0.3

@rex2630
Copy link
Author

rex2630 commented May 7, 2023

image

@sravan1946
Copy link
Contributor

traceback for that?

@rex2630
Copy link
Author

rex2630 commented May 7, 2023

May 07 14:15:29 ubuntu python[273087]: [2023-05-07 14:15:29] [ERROR] red.downloader: error: subprocess-exited-with-error
May 07 14:15:29 ubuntu python[273087]:
May 07 14:15:29 ubuntu python[273087]: × python setup.py bdist_wheel did not run successfully.
May 07 14:15:29 ubuntu python[273087]: │ exit code: 1
May 07 14:15:29 ubuntu python[273087]: ╰─> [23 lines of output]
May 07 14:15:29 ubuntu python[273087]: running bdist_wheel
May 07 14:15:29 ubuntu python[273087]: running build
May 07 14:15:29 ubuntu python[273087]: running build_py
May 07 14:15:29 ubuntu python[273087]: creating build
May 07 14:15:29 ubuntu python[273087]: creating build/lib.linux-aarch64-cpython-311
May 07 14:15:29 ubuntu python[273087]: creating build/lib.linux-aarch64-cpython-311/cchardet
May 07 14:15:29 ubuntu python[273087]: copying src/cchardet/version.py -> build/lib.linux-aarch64-cpython-311/cchardet
May 07 14:15:29 ubuntu python[273087]: copying src/cchardet/init.py -> build/lib.linux-aarch64-cpython-311/cchardet
May 07 14:15:29 ubuntu python[273087]: running build_ext
May 07 14:15:29 ubuntu python[273087]: building 'cchardet._cchardet' extension
May 07 14:15:29 ubuntu python[273087]: creating build/temp.linux-aarch64-cpython-311
May 07 14:15:29 ubuntu python[273087]: creating build/temp.linux-aarch64-cpython-311/src
May 07 14:15:29 ubuntu python[273087]: creating build/temp.linux-aarch64-cpython-311/src/cchardet
May 07 14:15:29 ubuntu python[273087]: creating build/temp.linux-aarch64-cpython-311/src/ext
May 07 14:15:29 ubuntu python[273087]: creating build/temp.linux-aarch64-cpython-311/src/ext/uchardet
May 07 14:15:29 ubuntu python[273087]: creating build/temp.linux-aarch64-cpython-311/src/ext/uchardet/src
May 07 14:15:29 ubuntu python[273087]: creating build/temp.linux-aarch64-cpython-311/src/ext/uchardet/src/LangModels
May 07 14:15:29 ubuntu python[273087]: aarch64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Isrc/ext/uchardet/src -I/home/ubuntu/redenv/include -I/usr/include/python3.11 -c src/cchardet/_cchardet.cpp -o build/temp.linux-aarch64-cpython-311/src/cchardet/_cchardet.o
May 07 14:15:29 ubuntu python[273087]: src/cchardet/_cchardet.cpp:196:12: fatal error: longintrepr.h: No such file or directory
May 07 14:15:29 ubuntu python[273087]: 196 | #include "longintrepr.h"
May 07 14:15:29 ubuntu python[273087]: | ^~~~~~~~~~~~~~~
May 07 14:15:29 ubuntu python[273087]: compilation terminated.
May 07 14:15:29 ubuntu python[273087]: error: command '/usr/bin/aarch64-linux-gnu-gcc' failed with exit code 1
May 07 14:15:29 ubuntu python[273087]: [end of output]
May 07 14:15:29 ubuntu python[273087]:
May 07 14:15:29 ubuntu python[273087]: note: This error originates from a subprocess, and is likely not a problem with pip.
May 07 14:15:29 ubuntu python[273087]: ERROR: Failed building wheel for cchardet
May 07 14:15:29 ubuntu python[273087]: ERROR: Could not build wheels for cchardet, which is required to install pyproject.toml-based projects
May 07 14:15:29 ubuntu python[273087]: [2023-05-07 14:15:29] [ERROR] red.downloader: Something went wrong when installing the following requirements: akinator[fast_async]==1.0.3

@sravan1946
Copy link
Contributor

It seems like that error is a bug in python3.11

@sravan1946
Copy link
Contributor

Try doing [p]pipinstall cchardet first and then use [p]pipinstall akinator[fast_async]==1.0.3

@rex2630
Copy link
Author

rex2630 commented May 7, 2023

i have tried almost anything, but it seems that there is just problem in TA-lib with python 3.11

@sravan1946
Copy link
Contributor

You could come to phen's support channel in red cog support server so i can support you more easily

@rex2630
Copy link
Author

rex2630 commented May 7, 2023

pip install cython fixed the issue, thanks for help

@rex2630 rex2630 closed this as completed May 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants