Comments (14)
Sweet!
Well done!! Thank you for this! It was the first screenshot I've seen of an outside user being able to use it successfully, this made my day!
PS: If you load a stock with load -t TSLA
you'll be able to see the remaining menu options, as they required a ticker symbol!
Thanks :)
from openbbterminal.
I just checked and I don't import torch anywhere in the code.
There may be some convolved dependency. Can you try to upgrade your torch to: torch 1.7.1
That's the one that my machine has. So:
pip install torch==1.7.1
from openbbterminal.
Here is the commands I ran (the levenshtein one may not be necessary):
git clone https://github.com/DidierRLopes/GamestonkTerminal
cd GamestonkTerminal/
pip3 install -r requirements.txt
export INSTALL_ON_LINUX=1; pip3 install xlwings
pip3 install -r requirements.txt
pip3 install git+https://github.com/DidierRLopes/TimeSeriesCrossValidation
pip3 install python-Levenshtein
pip uninstall torch
pip3 uninstall torch
pip install torch
pip3 install torch
pip3 install fbprophet
python3 gamestonk_terminal.py map
Here is the entire command output (top one was cut off but it was just the requirements install): https://pastebin.com/raw/0tvUG9GV
from openbbterminal.
Hey Josh,
Thank you for raising this.
I've admittedly not tested this on Ubuntu. I'm not familiar with this error.
Have you tried:pip install wheel
Is that your full error message? I'd copy paste your error message on google, because this seems to be happening before reaching the actual terminal's code.
Instead of running the requirements, you can also attempt to install each library one by one, using:
pip install library==version
Hope this helps,
Regards
from openbbterminal.
Running into this as well, xlwing won't be available on linux because it requires an installation of excel. Not sure if there are any work arounds.
OSError: xlwings requires an installation of Excel and therefore only works on Windows and macOS.
@DidierRLopes - could you give some insight into how heavily that library is used within the codebase? Would it be feasible to rework it with something else, or is it foundational?
from openbbterminal.
Hey there!
I never import such library, my suspicion is that some other library requires it (like pandas or so), hence why pipreqs added it to the requirements list.
Can you give it a go without that package, and let me know if everything run smoothly?
Thanks for feedback!
from openbbterminal.
I'm testing it right now! On KDE neon (ubuntu base).
Full error:
raise OSError("xlwings requires an installation of Excel and therefore only works on Windows and macOS. To enable the installation on Linux nevertheless, do: export INSTALL_ON_LINUX=1; pip install xlwings")
OSError: xlwings requires an installation of Excel and therefore only works on Windows and macOS. To enable the installation on Linux nevertheless, do: export INSTALL_ON_LINUX=1; pip install xlwings
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
I'm not sure what to do now: TimeSeriesCrossValidation successfully installed but what command to run now?
edit 2: will not run 😢
matt@matt:~/GamestonkTerminal$ python3 gamestonk_terminal.py map
Traceback (most recent call last):
File "gamestonk_terminal.py", line 11, in <module>
from sentiment import sen_menu as sm
File "/home/matt/GamestonkTerminal/sentiment/sen_menu.py", line 5, in <module>
from sentiment import twitter_api
File "/home/matt/GamestonkTerminal/sentiment/twitter_api.py", line 5, in <module>
import flair
File "/home/matt/.local/lib/python3.8/site-packages/flair/__init__.py", line 2, in <module>
import torch
File "/home/matt/.local/lib/python3.8/site-packages/torch/__init__.py", line 190, in <module>
from torch._C import *
ImportError: /home/matt/.local/lib/python3.8/site-packages/torch/lib/libtorch_cuda.so: cannot read file data
from openbbterminal.
Do you still get the xlwings error even though you removed that line from the requirements.txt file?
from openbbterminal.
I simply ran export INSTALL_ON_LINUX=1; pip3 install xlwings
and it installed fine.
from openbbterminal.
Beast!! Well done.
@joshcoyne @epigramengineer can you attempt this solution?
@sigaloid thanks for this! Do you think I should add this note somewhere on the README, for people installing from a Ubuntu machine?
from openbbterminal.
Well, it installed the dependency. I get this error on run, though:
matt@matt:~/GamestonkTerminal$ python3 gamestonk_terminal.py map
Traceback (most recent call last):
File "gamestonk_terminal.py", line 11, in <module>
from sentiment import sen_menu as sm
File "/home/matt/GamestonkTerminal/sentiment/sen_menu.py", line 5, in <module>
from sentiment import twitter_api
File "/home/matt/GamestonkTerminal/sentiment/twitter_api.py", line 5, in <module>
import flair
File "/home/matt/.local/lib/python3.8/site-packages/flair/__init__.py", line 2, in <module>
import torch
File "/home/matt/.local/lib/python3.8/site-packages/torch/__init__.py", line 190, in <module>
from torch._C import *
ImportError: /home/matt/.local/lib/python3.8/site-packages/torch/lib/libtorch_cuda.so: cannot read file data
Not sure if it's related to this specific dependency though.
from openbbterminal.
2021-02-24 22:29:17.109039: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory
2021-02-24 22:29:17.109083: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
Traceback (most recent call last):
File "gamestonk_terminal.py", line 12, in <module>
from prediction_techniques import pred_menu as pm
File "/home/matt/GamestonkTerminal/prediction_techniques/pred_menu.py", line 16, in <module>
from prediction_techniques import fbprophet
File "/home/matt/GamestonkTerminal/prediction_techniques/fbprophet.py", line 11, in <module>
from fbprophet import Prophet
ModuleNotFoundError: No module named 'fbprophet'
Currently running pip3 install fbprophet
which throws some errors about not having lunarcalendar
as well. Trying to install lunarcalendar, then fbprophet, then running the main one. It seems the dependencies are a bit hard to track down. will report back
edit: installing fbprophet worked!
from openbbterminal.
This is amazing. I've been analyzing stocks for the past 20 minutes. I hope this grows to be an even more awesome project :)
from openbbterminal.
This should be all resolved through the latest PRs with improvements in the requirements!
Will close this ticket on that basis, thanks!
from openbbterminal.
Related Issues (20)
- [IMPROVE] HOT 1
- [Bug] - IntrinioInsiderTradingData: underlying_shares - Input should be a valid integer, got a number with a fractional part
- [Bug] [Rest API]: Literal error when a comma-separated list of countries is used.
- `news` command doesn't work as documented
- Want to access a running openBBTerminal container running on my local server through a web browser HOT 3
- [Bug] 3D Volatility Surface -- axes are off HOT 1
- [Bug] Receiving TypeError after login HOT 2
- [IMPROVE] News feature needs to improve make sure the news is about the stocks and not random news. HOT 1
- CAPM code returns error HOT 5
- [Bug] Blank charts HOT 8
- [Bug] Cannot search for a term with spaces in it in the funds menu of OpenBB Terminal
- [Bug] obb.fixedincome.government.treasury_rates(): Federal Reserve website error - We're sorry, but an unhandled error has occurred. HOT 1
- [Bug] No historical price data with yfinance HOT 9
- [FR]: Historical EPS data from AlphaVantage
- [FR] Source Support
- Copper to Gold Ratio Example
- [FR] - add provider for yfinance-cache HOT 2
- [Bug] Installing openbb-core also installs ruff, prevents upgrade to ">=0.2.0 HOT 2
- [IMPROVE] DCF Calculations
- [Bug] TypeError returned when attempting to import OpenBB in Jupyter Notebook HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openbbterminal.