mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-28 21:12:16 +00:00
* Re-solve the dependencies for optimization extras * Remove unused reportlab helpers * Update install from source and troubleshooting docs * Fix typos found by cspell * Prevent po menu from launching when optimization toolkit not installed * Add optimization dependencies to default requirements.txt for the CI * Add optimization toolkit installation to the CI * Fix markdown linting * Update CI test dependency installation for matrix tests * Fix markdown linting * Update source installation docs * Clean up ToC in the main readme * Update the SDK documentation * Fix markdown linting after making readme sections linkable * Fix more markdown linting * Fix more markdown linting * Update secrets detection with exclusion rules * Bump detect-secrets configuration * Tune secret detector * Fix more markdown linting * Add optimization toolkit install to installer GH actions * Add optimization toolkit install to docker build * Fix typos * Add "all" extras setting to install torch and riskfolio * Move forecasting dependencies to pyproject.toml * Update CI build configs * Update documentation to feature the "all" extra * Lint markdown * Update docs to specify requirement of having a C compiler * Added log Id to codesigning steps in inteel Macos workflow * Changed disk for the m1 macos build * Changed disk for the m1 macos build * Changed disk for the intel macos build * taking out sigtool removal line * Remove dev version number from pyproject.toml * removing sigtool from all build steps * changes to m1 build and commenting test_report_economy * more m1 build changes * testing exit on conda setup * some more * changing shell to bash to setup conda * bash on lines * bash on all lines * small bash removals * intel fix and test_crypto int test * upgrading setupminiconda version * adding back in intel conda init and reset * intel removal of init * taking bash back out from m1 * removing old codesign lines * adding codesign specific binaries * ssl fix for all terminal * removing if installer * various ssl fixes across commands * fixing ssl mistake * integration test changes * Linting + remove comment * Update poetry.lock * Update requirements * Update the docs to mention that PO is not working on arm arch * Update deps to pin setuptools * Disable reports on pyinstaller packaged version * Update reports * small grammar change for forecast report message * Pin grpcio following introduced regression in 1.51.0 * Update docs to reflect changes in how optimization is installed Co-authored-by: Luqman Bello <lb@Luqmans-MacBook-Pro.local> Co-authored-by: James Simmons <simmonsj330@gmail.com> Co-authored-by: James Simmons <53658028+simmonsj330@users.noreply.github.com> Co-authored-by: James Maslek <jmaslek11@gmail.com> Co-authored-by: Chavithra <chavithra@gmail.com>
148 lines
5.2 KiB
Markdown
Vendored
148 lines
5.2 KiB
Markdown
Vendored
# TROUBLESHOOT
|
|
|
|
<!-- markdownlint-disable MD033 -->
|
|
|
|
If you are visiting this page it means that you're having issues installing. We deeply apologize for that.
|
|
|
|
Since the start of the project we've come across different types of issues experienced by the users. This page tries to combine issues, and their solutions.
|
|
This will allow to give the best install experience to everyone regardless of any programming skills.
|
|
|
|
<ol>
|
|
<li>
|
|
<a href="#">Standard Install Troubles</a>
|
|
<ul>
|
|
<li><a href="#microsoft-visual-v++">Microsoft Visual C++</a></li>
|
|
<li><a href="#wheel">Wheel</a></li>
|
|
<li><a href="#Poetry">Poetry</a></li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<a href="#">ModuleNotFoundError Trouble</a>
|
|
<ul>
|
|
<li><a href="#general">General</a></li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<a href="#machine-learning-troubles">Machine Learning Troubles</a>
|
|
</li>
|
|
<li>
|
|
<ul>
|
|
<li><a href="#CRLF-versus-LF">CRLF versus LF</a></li>
|
|
</ul>
|
|
</li>
|
|
</ol>
|
|
|
|
## Standard Install Troubles
|
|
|
|
### Microsoft Visual C++
|
|
|
|
If you are on Windows and your terminal has too many red error lines, it is likely that
|
|
this is the issue. Go to this page and install the 2019 Build Tools (not the latest):
|
|
<https://answers.microsoft.com/en-us/windows/forum/windows_other-windows_install/microsoft-visual-c-140/6f0726e2-6c32-4719-9fe5-aa68b5ad8e6d>
|
|
|
|
### Wheel
|
|
|
|
`conda install -c conda-forge wheel` or `pip install wheel`
|
|
|
|
### Poetry
|
|
|
|
If you get errors about .whl files not existing (usually on Windows) you have to reinitialize the following folder.
|
|
Just removing the 'artifacts' folder could also be enough:
|
|
|
|
| Platform | Location |
|
|
| -------- | ------------------------------- |
|
|
| Linux | "~/.cache/pypoetry" |
|
|
| Mac | "~/Library/Caches/pypoetry" |
|
|
| Windows | "%localappdata%/pypoetry/cache" |
|
|
|
|
When you try to add a package to Poetry it is possible that it causes a similar issue. Here you can remove the
|
|
'artifacts' folder again to reinitialize Poetry.
|
|
|
|
If you run into trouble with Poetry, and the advice above did not help, your best bet is to try
|
|
|
|
1. `poetry update --lock`
|
|
|
|
2. `conda deactivate` -> `conda activate obb`, then try again
|
|
|
|
3. Track down the offensive package and purge it from your anaconda `<environment_name>` folder, then try again
|
|
(removing through conda can sometimes leave locks behind)
|
|
|
|
| Platform | Location |
|
|
| --------- | -------------------------------------------- |
|
|
| Linux/Mac | "~/anaconda3/envs" or "~/opt/anaconda3/envs" |
|
|
| Windows | "%userprofile%/anaconda3/envs" |
|
|
|
|
4. Completely nuke your conda environment folder and make a new environment from scratch
|
|
|
|
5. Reboot your computer and try again
|
|
|
|
6. Submit a ticket on GitHub
|
|
|
|
#### JSONDecodeError during `poetry install`
|
|
|
|
Sometimes poetry can throw a `JSONDecodeError` on random packages while running `poetry install`.
|
|
This can be observed on macOS 10.14+ running python 3.8+.
|
|
This is because of the use of an experimental installer that can be switched off to avoid the mentioned error.
|
|
Run
|
|
|
|
```bash
|
|
poetry config experimental.new-installer false
|
|
```
|
|
|
|
as advised [here](https://github.com/python-poetry/poetry/issues/4210) and it should fix the installation process.
|
|
|
|
## ModuleNotFoundError Trouble
|
|
|
|
### General
|
|
|
|
In the case when you run into an error of the form `ModuleNotFoundError: No module named '_______'` before you start installing these modules that have not been found please check that you have most followed the recommended installation instructions.
|
|
These errors often can occur when you have not activated the virtual environment where you have installed the terminal, or you have not used the `poetry install` command to install the dependencies.
|
|
|
|
In case you wish to proceed with an alternative way to install the terminal feel free to install the missing packages via pip. For example if you get the error that `yfinance` is not found, you would run `pip install yfinance`
|
|
|
|
### Machine Learning Troubles
|
|
|
|
If you run into issues installing or `Cannot convert a symbolic Tensor...` at runtime, try this:
|
|
|
|
```bash
|
|
poetry install
|
|
poetry install -E prediction
|
|
```
|
|
|
|
_Commands that may help you in case of an error:_
|
|
|
|
- `python -m pip install --upgrade pip`
|
|
- `poetry update --lock`
|
|
- `poetry install`
|
|
|
|
### CRLF versus LF
|
|
|
|
When trying to commit code changes, pylint will prevent you from doing so if your line break settings are set to
|
|
CRLF (default for Windows).
|
|
This is because the entire package uses LF (default for Linux/Mac), and it is therefore
|
|
important that you change this setting to LF _before_ you make any changes to the code.
|
|
|
|
It is possible that CRLF automatically turns back on, you can correct this with:
|
|
|
|
```bash
|
|
git config --global core.autocrlf false
|
|
```
|
|
|
|
In case you already made coding adjustments, you have to reset your cache, and the changes you made to the code with
|
|
the following:
|
|
|
|
```bash
|
|
git rm --cached -r .
|
|
git reset --hard
|
|
```
|
|
|
|
### Unable to run openbb from VS Code integrated terminal
|
|
|
|
Occurs when vscode terminal python version/path is different from the terminal version.
|
|
|
|
To fix it add this to vscode JSON settings ([ref](https://stackoverflow.com/questions/54582361/vscode-terminal-shows-incorrect-python-version-and-path-launching-terminal-from)):
|
|
|
|
```bash
|
|
"terminal.integrated.inheritEnv": false,
|
|
```
|