-
-
Notifications
You must be signed in to change notification settings - Fork 943
Description
While I followed Setup Your Environment;
I encounter few issues and place that can be improved:
- Under Setting up Visual Studio Code IDE at Create VS Code launch.json file; the screenshot is PyCharm and not VS Code.
now lets talk about the issues I encounter.
- NOTE: My OS is Ubuntu 24.04 LTS (under WSL)
- the main issue is that Python 3.12 comes by default on Ubuntu 24.04 LTS
1. How to install and make Python 3.10 the default version
sudo apt update
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt install python3.10 python3.10-venv python3.10-setuptools python3.10-wheel
sudo update-alternatives --install /usr/bin/python3.10 python3 /usr/bin/python3.10 1
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.10 1
after that we can continue by following the docs such as Create virtual environment will be a cut and paste from the docs python -m venv venv
and so on...
2. if python -m pip install OctoBot
returned this error:
AttributeError: install_layout. Did you mean: 'install_platlib'?
[end of output]note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pyaes
Running setup.py clean for pyaes
Failed to build OctoBot Async-Channel OctoBot-Backtesting OctoBot-Commons OctoBot-> Evaluators OctoBot-Services OctoBot-Tentacles-Manager OctoBot-Trading trading-backend pyaes
ERROR: Could not build wheels for OctoBot, Async-Channel, OctoBot-Backtesting, OctoBot-> Commons, OctoBot-Evaluators, OctoBot-Services, OctoBot-Tentacles-Manager, OctoBot-Trading, > trading-backend, pyaes, which is required to install pyproject.toml-based projects
fix it by running inside the venv
...
pip install --upgrade cython # Required for pyaes compilation
pip install OctoBot --no-cache-dir # Bypass wheel build issues
PS: I just hope that this will lead to more people developing for Octobot and avoid new problems around this topic.