Hello, I'm contacting you for help. Steps 1 through 4 are fine. Then I have a problem with step 6. Here are the details:
Step 6: Copying/pasting from PowerShell
``(crbab-venv) PS C:\ClashRoyaleBuildABot> pip install .[cpu]
Processing ..
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting av (from ClashRoyaleBuildABot==0.1.0)
Using cached av-17.0.1-cp311-abi3-win_amd64.whl.metadata (4.7 kB)
Collecting black==24.4.0 (from ClashRoyaleBuildABot==0.1.0)
Using cached black-24.4.0-py3-none-any.whl.metadata (76 kB)
Collecting flake8==7.0.0 (from ClashRoyaleBuildABot==0.1.0)
Using cached flake8-7.0.0-py2.py3-none-any.whl.metadata (3.8 kB)
Collecting flatbuffers>=2.0 (from ClashRoyaleBuildABot==0.1.0)
Using cached flatbuffers-25.12.19-py2.py3-none-any.whl.metadata (1.0 kB)
Collecting isort==5.13.2 (from ClashRoyaleBuildABot==0.1.0)
Using cached isort-5.13.2-py3-none-any.whl.metadata (12 kB)
Collecting keyboard>=0.13.5 (from ClashRoyaleBuildABot==0.1.0)
Using cached keyboard-0.13.5-py3-none-any.whl.metadata (4.0 kB)
Requirement already satisfied: loguru>=0.7.2 in .\crbab-venv\Lib\site-packages (from ClashRoyaleBuildABot==0.1.0) (0.7.3)
Collecting numpy<2,>=1.23.5 (from ClashRoyaleBuildABot==0.1.0)
Using cached numpy-1.26.4.tar.gz (15.8 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [21 lines of output]
+ C:\ClashRoyaleBuildABot\crbab-venv\Scripts\python.exe C:\Users\eric5\AppData\Local\Temp\pip-install-fh90ve4t\numpy_65df95e1e2f74c9883cbd4ccd719da72\vendored-meson\meson\meson.py setup C:\Users\eric5\AppData\Local\Temp\pip-install-fh90ve4t\numpy_65df95e1e2f74c9883cbd4ccd719da72 C:\Users\eric5\AppData\Local\Temp\pip-install-fh90ve4t\numpy_65df95e1e2f74c9883cbd4ccd719da72.mesonpy-x5v2l3gz -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=C:\Users\eric5\AppData\Local\Temp\pip-install-fh90ve4t\numpy_65df95e1e2f74c9883cbd4ccd719da72.mesonpy-x5v2l3gz\meson-python-native-file.ini
The Meson build system
Version: 1.2.99
Source dir: C:\Users\eric5\AppData\Local\Temp\pip-install-fh90ve4t\numpy_65df95e1e2f74c9883cbd4ccd719da72
Build dir: C:\Users\eric5\AppData\Local\Temp\pip-install-fh90ve4t\numpy_65df95e1e2f74c9883cbd4ccd719da72.mesonpy-x5v2l3gz
Build type: native build
Project name: NumPy
Project version: 1.26.4
WARNING: Failed to activate VS environment: Could not parse vswhere.exe output
..\meson.build:1:0: ERROR: Unknown compiler(s): [['icl'], ['cl'], ['cc'], ['gcc'], ['clang'], ['clang-cl'], ['pgcc']]
The following exception(s) were encountered:
Running `icl ""` gave "[WinError 2] Le fichier spécifié est introuvable"
Running `cl /?` gave "[WinError 2] Le fichier spécifié est introuvable"
Running `cc --version` gave "[WinError 2] Le fichier spécifié est introuvable"
Running `gcc --version` gave "[WinError 2] Le fichier spécifié est introuvable"
Running `clang --version` gave "[WinError 2] Le fichier spécifié est introuvable"
Running `clang-cl /?` gave "[WinError 2] Le fichier spécifié est introuvable"
Running `pgcc --version` gave "[WinError 2] Le fichier spécifié est introuvable"
A full log can be found at C:\Users\eric5\AppData\Local\Temp\pip-install-fh90ve4t\numpy_65df95e1e2f74c9883cbd4ccd719da72\.mesonpy-x5v2l3gz\meson-logs\meson-log.txt
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> numpy
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
(crbab-venv) PS C:\ClashRoyaleBuildABot> pre-commit install
pre-commit: The term 'pre-commit' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
(crbab-venv) PS C:\ClashRoyaleBuildABot> python main.py
Traceback (most recent call last):
File "C:\ClashRoyaleBuildABot\main.py", line 10, in
from clashroyalebuildabot.actions import ArchersAction
File "C:\ClashRoyaleBuildABot\clashroyalebuildabot_init_.py", line 3, in
from .bot import Bot
File "C:\ClashRoyaleBuildABot\clashroyalebuildabot\bot_init_.py", line 1, in
from .bot import Bot
File "C:\ClashRoyaleBuildABot\clashroyalebuildabot\bot\bot.py", line 5, in
import keyboard
ModuleNotFoundError: No module named 'keyboard'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\ClashRoyaleBuildABot\main.py", line 23, in
raise WikifiedError("001", "Missing imports.") from e
error_handling.wikify_error.WikifiedError: ⚠ Error #E001: Missing imports. See https://github.com/Pbatch/ClashRoyaleBuildABot/wiki/Troubleshooting#error-e001 for more information. You might find more context above this error.
Thank
Also this message: Note
Don't install the bot (or anything for that matter) in the system32 folder, the bot won't work properly.
Don't install the directory in system32, which is what I did on the C: drive.
Hello, I'm contacting you for help. Steps 1 through 4 are fine. Then I have a problem with step 6. Here are the details:
Step 6: Copying/pasting from PowerShell
``(crbab-venv) PS C:\ClashRoyaleBuildABot> pip install .[cpu]
Processing ..
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting av (from ClashRoyaleBuildABot==0.1.0)
Using cached av-17.0.1-cp311-abi3-win_amd64.whl.metadata (4.7 kB)
Collecting black==24.4.0 (from ClashRoyaleBuildABot==0.1.0)
Using cached black-24.4.0-py3-none-any.whl.metadata (76 kB)
Collecting flake8==7.0.0 (from ClashRoyaleBuildABot==0.1.0)
Using cached flake8-7.0.0-py2.py3-none-any.whl.metadata (3.8 kB)
Collecting flatbuffers>=2.0 (from ClashRoyaleBuildABot==0.1.0)
Using cached flatbuffers-25.12.19-py2.py3-none-any.whl.metadata (1.0 kB)
Collecting isort==5.13.2 (from ClashRoyaleBuildABot==0.1.0)
Using cached isort-5.13.2-py3-none-any.whl.metadata (12 kB)
Collecting keyboard>=0.13.5 (from ClashRoyaleBuildABot==0.1.0)
Using cached keyboard-0.13.5-py3-none-any.whl.metadata (4.0 kB)
Requirement already satisfied: loguru>=0.7.2 in .\crbab-venv\Lib\site-packages (from ClashRoyaleBuildABot==0.1.0) (0.7.3)
Collecting numpy<2,>=1.23.5 (from ClashRoyaleBuildABot==0.1.0)
Using cached numpy-1.26.4.tar.gz (15.8 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [21 lines of output]
+ C:\ClashRoyaleBuildABot\crbab-venv\Scripts\python.exe C:\Users\eric5\AppData\Local\Temp\pip-install-fh90ve4t\numpy_65df95e1e2f74c9883cbd4ccd719da72\vendored-meson\meson\meson.py setup C:\Users\eric5\AppData\Local\Temp\pip-install-fh90ve4t\numpy_65df95e1e2f74c9883cbd4ccd719da72 C:\Users\eric5\AppData\Local\Temp\pip-install-fh90ve4t\numpy_65df95e1e2f74c9883cbd4ccd719da72.mesonpy-x5v2l3gz -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=C:\Users\eric5\AppData\Local\Temp\pip-install-fh90ve4t\numpy_65df95e1e2f74c9883cbd4ccd719da72.mesonpy-x5v2l3gz\meson-python-native-file.ini
The Meson build system
Version: 1.2.99
Source dir: C:\Users\eric5\AppData\Local\Temp\pip-install-fh90ve4t\numpy_65df95e1e2f74c9883cbd4ccd719da72
Build dir: C:\Users\eric5\AppData\Local\Temp\pip-install-fh90ve4t\numpy_65df95e1e2f74c9883cbd4ccd719da72.mesonpy-x5v2l3gz
Build type: native build
Project name: NumPy
Project version: 1.26.4
WARNING: Failed to activate VS environment: Could not parse vswhere.exe output
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> numpy
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
(crbab-venv) PS C:\ClashRoyaleBuildABot> pre-commit install
pre-commit: The term 'pre-commit' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
(crbab-venv) PS C:\ClashRoyaleBuildABot> python main.py
Traceback (most recent call last):
File "C:\ClashRoyaleBuildABot\main.py", line 10, in
from clashroyalebuildabot.actions import ArchersAction
File "C:\ClashRoyaleBuildABot\clashroyalebuildabot_init_.py", line 3, in
from .bot import Bot
File "C:\ClashRoyaleBuildABot\clashroyalebuildabot\bot_init_.py", line 1, in
from .bot import Bot
File "C:\ClashRoyaleBuildABot\clashroyalebuildabot\bot\bot.py", line 5, in
import keyboard
ModuleNotFoundError: No module named 'keyboard'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\ClashRoyaleBuildABot\main.py", line 23, in
raise WikifiedError("001", "Missing imports.") from e
error_handling.wikify_error.WikifiedError: ⚠ Error #E001: Missing imports. See https://github.com/Pbatch/ClashRoyaleBuildABot/wiki/Troubleshooting#error-e001 for more information. You might find more context above this error.
Thank
Also this message: Note
Don't install the bot (or anything for that matter) in the system32 folder, the bot won't work properly.
Don't install the directory in system32, which is what I did on the C: drive.