openbb-finance / openbbterminal Goto Github PK
View Code? Open in Web Editor NEWInvestment Research for Everyone, Everywhere.
Home Page: https://openbb.co
License: MIT License
Investment Research for Everyone, Everywhere.
Home Page: https://openbb.co
License: MIT License
Very impressive work, thanks for offering this up to the community.
Installation took a few passes. In the end, I needed to do these installations after installing the requirements.txt
pip uninstall pandas_ta
pip install pandas_ta
pip install python-Levenshtein
pip install lunarcalendar
pip install fbprophet
Not sure why I had to uninstall pandas, but doing so let me continue.
So far, running disc > sectors gives a segfault. I have added my AlphaVantage key although to be fair I just signed up for this project so I'm not positive it's active?
$ pip install -r requirements.txt
[...]
Collecting sentencepiece==0.1.91
Using cached sentencepiece-0.1.91.tar.gz (500 kB)
ERROR: Command errored out with exit status 1:
command: /home/jesse/.pyenv/versions/3.9.0/bin/python3.9 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-yjce8k7u/sentencepiece_58f20c99078f4de4ad0e726ec4d0b947/setup.py'"'"'; __file__='"'"'/tmp/pip-in
stall-yjce8k7u/sentencepiece_58f20c99078f4de4ad0e726ec4d0b947/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"
'))' egg_info --egg-base /tmp/pip-pip-egg-info-qcmgf7cu
cwd: /tmp/pip-install-yjce8k7u/sentencepiece_58f20c99078f4de4ad0e726ec4d0b947/
Complete output (5 lines):
Package sentencepiece was not found in the pkg-config search path.
Perhaps you should add the directory containing `sentencepiece.pc'
to the PKG_CONFIG_PATH environment variable
No package 'sentencepiece' found
Failed to find sentencepiece pkgconfig
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/ba/f6/520b56e5977f62aee48833da8b4ff2fdc2b10ebfa0dd78556b1d707d4086/sentencepiece-0.1.91.tar.gz#sha256=f9700cf607ea064d9fad34c751fbf49953dcc56fe68c54b277481aa0aec5c18f (from
https://pypi.org/simple/sentencepiece/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement sentencepiece==0.1.91
ERROR: No matching distribution found for sentencepiece==0.1.91
Hi there!
The -t S_ticker [-s S_start_date]... is confusing me. What does the -t mean, do I put the date there? What is going on haha
Thank you,
Quaid
Hello ! Kudos to great work. Currently I'm going through all the code to understand the terminal. I live in india and We have two stock markets - NSE & BSE. I couldn't find any list of stock tickers from india which are available in this module ? Can you share the list of available shares which are available in Timeseries AlphaVantage module if they're availalbe with you ? Else Can you suggest any other free API which i can use instead of alphavantage ?
tensorflow_gpu==1.1.0
is not found.
Collecting tensorflow_gpu==1.1.0 (from -r requirements.txt (line 4))
Could not find a version that satisfies the requirement tensorflow_gpu==1.1.0 (from -r requirements.txt (line 4)) (from versions: 1.13.1, 1.13.2, 1.14.0, 1.15.0rc0, 1.15.0rc1, 1.15.0rc2, 1.15.0rc3, 1.15.0, 1.15.2, 1.15.3, 1.15.4, 1.15.5, 2.0.0a0, 2.0.0b0, 2.0.0b1, 2.0.0rc0, 2.0.0rc1, 2.0.0rc2, 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.1.0rc0, 2.1.0rc1, 2.1.0rc2, 2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.2.0rc0, 2.2.0rc1, 2.2.0rc2, 2.2.0rc3, 2.2.0rc4, 2.2.0, 2.2.1, 2.2.2, 2.3.0rc0, 2.3.0rc1, 2.3.0rc2, 2.3.0, 2.3.1, 2.3.2, 2.4.0rc0, 2.4.0rc1, 2.4.0rc2, 2.4.0rc3, 2.4.0rc4, 2.4.0, 2.4.1)
No matching distribution found for tensorflow_gpu==1.1.0 (from -r requirements.txt (line 4))
I tried running:
load -t GME -s 2020-02-25 -i 5
Loading Intraday 5min GME stock with starting period 2020-02-25 for analysis.
But the command finished and I'm not seeing anything? Am I doing something wrong? Don't see errors either..
Thanks
I get several errors while installing the requirements on Ubuntu 20.04.
Building wheel for appscript (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_47q6av7/appscript/setup.py'"'"'; file='"'"'/tmp/pip-install-47q6av7/appscript/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-8zf7z1dv
cwd: /tmp/pip-install-47q6av7/appscript/
Complete output (39 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.8
copying appscript_3x/lib/mactypes.py -> build/lib.linux-x86_64-3.8
copying appscript_3x/lib/osax.py -> build/lib.linux-x86_64-3.8
creating build/lib.linux-x86_64-3.8/aem
copying appscript_3x/lib/aem/kae.py -> build/lib.linux-x86_64-3.8/aem
copying appscript_3x/lib/aem/init.py -> build/lib.linux-x86_64-3.8/aem
copying appscript_3x/lib/aem/aemcodecs.py -> build/lib.linux-x86_64-3.8/aem
copying appscript_3x/lib/aem/aemconnect.py -> build/lib.linux-x86_64-3.8/aem
copying appscript_3x/lib/aem/findapp.py -> build/lib.linux-x86_64-3.8/aem
copying appscript_3x/lib/aem/aemsend.py -> build/lib.linux-x86_64-3.8/aem
copying appscript_3x/lib/aem/typewrappers.py -> build/lib.linux-x86_64-3.8/aem
copying appscript_3x/lib/aem/mactypes.py -> build/lib.linux-x86_64-3.8/aem
copying appscript_3x/lib/aem/aemreference.py -> build/lib.linux-x86_64-3.8/aem
creating build/lib.linux-x86_64-3.8/appscript
copying appscript_3x/lib/appscript/terminology.py -> build/lib.linux-x86_64-3.8/appscript
copying appscript_3x/lib/appscript/defaultterminology.py -> build/lib.linux-x86_64-3.8/appscript
copying appscript_3x/lib/appscript/keywordwrapper.py -> build/lib.linux-x86_64-3.8/appscript
copying appscript_3x/lib/appscript/init.py -> build/lib.linux-x86_64-3.8/appscript
copying appscript_3x/lib/appscript/reservedkeywords.py -> build/lib.linux-x86_64-3.8/appscript
copying appscript_3x/lib/appscript/referencerenderer.py -> build/lib.linux-x86_64-3.8/appscript
copying appscript_3x/lib/appscript/genericreference.py -> build/lib.linux-x86_64-3.8/appscript
copying appscript_3x/lib/appscript/reference.py -> build/lib.linux-x86_64-3.8/appscript
copying appscript_3x/lib/appscript/terminologyparser.py -> build/lib.linux-x86_64-3.8/appscript
running build_ext
building 'aem.ae' extension
creating build/temp.linux-x86_64-3.8
creating build/temp.linux-x86_64-3.8/appscript_3x
creating build/temp.linux-x86_64-3.8/appscript_3x/ext
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.8 -c appscript_3x/ext/ae.c -o build/temp.linux-x86_64-3.8/appscript_3x/ext/ae.o -DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_6 -D__LP64
In file included from appscript_3x/ext/ae.c:16:
appscript_3x/ext/ae.h:26:10: fatal error: Carbon/Carbon.h: Datei oder Verzeichnis nicht gefunden
26 | #include <Carbon/Carbon.h>
| ^~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Building wheel for fbprophet (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_47q6av7/fbprophet/setup.py'"'"'; file='"'"'/tmp/pip-install-_47q6av7/fbprophet/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-o8c5hg2u
cwd: /tmp/pip-install-_47q6av7/fbprophet/
Complete output (44 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib
creating build/lib/fbprophet
creating build/lib/fbprophet/stan_model
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-install-_47q6av7/fbprophet/setup.py", line 122, in
setup(
File "/usr/lib/python3/dist-packages/setuptools/init.py", line 144, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.8/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.8/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/wheel/bdist_wheel.py", line 223, in run
self.run_command('build')
File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3.8/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/tmp/pip-install-_47q6av7/fbprophet/setup.py", line 48, in run
build_models(target_dir)
File "/tmp/pip-install-_47q6av7/fbprophet/setup.py", line 36, in build_models
from fbprophet.models import StanBackendEnum
File "/tmp/pip-install-_47q6av7/fbprophet/fbprophet/init.py", line 8, in
from fbprophet.forecaster import Prophet
File "/tmp/pip-install-_47q6av7/fbprophet/fbprophet/forecaster.py", line 17, in
from fbprophet.make_holidays import get_holiday_names, make_holidays_df
File "/tmp/pip-install-_47q6av7/fbprophet/fbprophet/make_holidays.py", line 14, in
import fbprophet.hdays as hdays_part2
File "/tmp/pip-install-_47q6av7/fbprophet/fbprophet/hdays.py", line 13, in
from convertdate.islamic import from_gregorian, to_gregorian
ModuleNotFoundError: No module named 'convertdate'
Running setup.py install for appscript ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_47q6av7/appscript/setup.py'"'"'; file='"'"'/tmp/pip-install-47q6av7/appscript/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-j24seff8/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/[...]/.local/include/python3.8/appscript
cwd: /tmp/pip-install-47q6av7/appscript/
Complete output (40 lines):
running install
Distribution option extra_path is deprecated. See issue27919 for details.
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.8
copying appscript_3x/lib/mactypes.py -> build/lib.linux-x86_64-3.8
copying appscript_3x/lib/osax.py -> build/lib.linux-x86_64-3.8
creating build/lib.linux-x86_64-3.8/aem
copying appscript_3x/lib/aem/kae.py -> build/lib.linux-x86_64-3.8/aem
copying appscript_3x/lib/aem/init.py -> build/lib.linux-x86_64-3.8/aem
copying appscript_3x/lib/aem/aemcodecs.py -> build/lib.linux-x86_64-3.8/aem
copying appscript_3x/lib/aem/aemconnect.py -> build/lib.linux-x86_64-3.8/aem
copying appscript_3x/lib/aem/findapp.py -> build/lib.linux-x86_64-3.8/aem
copying appscript_3x/lib/aem/aemsend.py -> build/lib.linux-x86_64-3.8/aem
copying appscript_3x/lib/aem/typewrappers.py -> build/lib.linux-x86_64-3.8/aem
copying appscript_3x/lib/aem/mactypes.py -> build/lib.linux-x86_64-3.8/aem
copying appscript_3x/lib/aem/aemreference.py -> build/lib.linux-x86_64-3.8/aem
creating build/lib.linux-x86_64-3.8/appscript
copying appscript_3x/lib/appscript/terminology.py -> build/lib.linux-x86_64-3.8/appscript
copying appscript_3x/lib/appscript/defaultterminology.py -> build/lib.linux-x86_64-3.8/appscript
copying appscript_3x/lib/appscript/keywordwrapper.py -> build/lib.linux-x86_64-3.8/appscript
copying appscript_3x/lib/appscript/init.py -> build/lib.linux-x86_64-3.8/appscript
copying appscript_3x/lib/appscript/reservedkeywords.py -> build/lib.linux-x86_64-3.8/appscript
copying appscript_3x/lib/appscript/referencerenderer.py -> build/lib.linux-x86_64-3.8/appscript
copying appscript_3x/lib/appscript/genericreference.py -> build/lib.linux-x86_64-3.8/appscript
copying appscript_3x/lib/appscript/reference.py -> build/lib.linux-x86_64-3.8/appscript
copying appscript_3x/lib/appscript/terminologyparser.py -> build/lib.linux-x86_64-3.8/appscript
running build_ext
building 'aem.ae' extension
creating build/temp.linux-x86_64-3.8
creating build/temp.linux-x86_64-3.8/appscript_3x
creating build/temp.linux-x86_64-3.8/appscript_3x/ext
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.8 -c appscript_3x/ext/ae.c -o build/temp.linux-x86_64-3.8/appscript_3x/ext/ae.o -DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_6 -D__LP64
In file included from appscript_3x/ext/ae.c:16:
appscript_3x/ext/ae.h:26:10: fatal error: Carbon/Carbon.h: Datei oder Verzeichnis nicht gefunden
26 | #include <Carbon/Carbon.h>
| ^~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_47q6av7/appscript/setup.py'"'"'; file='"'"'/tmp/pip-install-_47q6av7/appscript/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-j24seff8/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/[...]/.local/include/python3.8/appscript Check the logs for full command output.
Somebody had these issues or has an idea how to resolve?
Python 3 offers typing support: https://docs.python.org/3/library/typing.html
You are still using prefixes in your method parameters like s_
, l_
etc. to indicate, that a parameter must be a string or list etc.
Why do not use Python3 typing instead? l_whatever
will become whatever: list
So, this may not be the right place for this but I am completely new to coding (although not trading). I have downloaded python and the files for this terminal however am having a hell of a time opening and running it.
Any help on how to install the terminal would be really welcome.
Hi,
I keep getting this error when trying predictions techniques:
To have at least one X,y arrays, the sequence size needs to be bigger than numInputs+numOutputs
is it something wrong with the way I run the commands? check below:
> help
Daily Stock: TSLA (from 2021-01-01)
Prediction Techniques:
help show this prediction techniques menu again
q quit this menu, and shows back to main menu
quit quit to abandon program
sma simple moving average
knn k-Nearest Neighbors
linear linear regression (polynomial 1)
quadratic quadratic regression (polynomial 2)
cubic cubic regression (polynomial 3)
regression regression (other polynomial)
arima autoregressive integrated moving average
prophet Facebook's prophet prediction
mlp MultiLayer Perceptron
rnn Recurrent Neural Network
lstm Long-Short Term Memory
> knn
To have at least one X,y arrays, the sequence size needs to be bigger than numInputs+numOutputs
> linear
To have at least one X,y arrays, the sequence size needs to be bigger than numInputs+numOutputs
> lstm
To have at least one X,y arrays, the sequence size needs to be bigger than numInputs+numOutputs
> rnn
To have at least one X,y arrays, the sequence size needs to be bigger than numInputs+numOutputs
> cubic
To have at least one X,y arrays, the sequence size needs to be bigger than numInputs+numOutputs
>
Thank!
import FundamentalAnalysis as fa ModuleNotFoundError: No module named 'FundamentalAnalysis'
I'm getting this error while running, even after installing all the dependencies
In true algotrading fashion having support for data exports would be really helpful (csv probably) for those trying to perform other analysis on the data without directly building onto the terminal itself. Maybe an abstract Data
class with methods for flexible loading/exporting would be best for this, but you're the expert. Also, support for multiple ticker data requests would be useful when trying to compile and export this data, so some implementation of asyncio
could be beneficial there in the long term for those trying to gather large quantities of data on slower connections.
Also, I love these small Easter egg type things: print("Hope you made money today. Good bye my lover, good bye my friend.\n")
Thank you for doing this. It is impressive.
I tested LSTM with a ticker whose df_stock begins in May 2006. The predictions were for dates beginning on May 11 2006.
This should be predictions for dates starting at the end of the series, so in 2021. I will attempt to debug this. I would really like to see it working.
This came through when installing requirements.txt on Mac:
ERROR: Could not find a version that satisfies the requirement scipy==1.6.1
ERROR: No matching distribution found for scipy==1.6.1
Running pip install -r requirements.txt
results in
fatal error C1083: Cannot open include file: 'Carbon/Carbon.h': No such file or directory
on Windows which is required by appscript.
I am not sure if you intend this project to also run on Windows, yet I would like to point out that appscript is no longer maintained, see http://appscript.sourceforge.net/ I am not even sure where you use it searching on GitHub on the strings App(
and appscript
yields no hits beyond requirements.txt.
This is what I get when trying to run it. Couldn't install appscript and fbprophet. Python 3.8.8 (Win 10)
(venv_for_GamestonkTerminal) D:\Downloads\GamestonkTerminal-main>gamestonk_terminal.py
Traceback (most recent call last):
File "D:\Downloads\GamestonkTerminal-main\gamestonk_terminal.py", line 12, in
from prediction_techniques import pred_menu as pm
File "D:\Downloads\GamestonkTerminal-main\prediction_techniques\pred_menu.py", line 16, in
from prediction_techniques import fbprophet
File "D:\Downloads\GamestonkTerminal-main\prediction_techniques\fbprophet.py", line 11, in
from fbprophet import Prophet
ModuleNotFoundError: No module named 'fbprophet'
(venv_for_GamestonkTerminal) D:\Downloads\GamestonkTerminal-main>
This looks super interesting and I'd like to use it, but I'm not sure how to get started.
I've installed the requirements ok, but how do I begin using it?
It would be really useful to have a "getting started" section in the readme.
I followed this guide https://imgur.com/a/gqgVJPn to setup the terminal in anaconda environment but I'm getting the flair module error even though that is already installed along with pytorch. Can someone clarify me on this about what I should do ?
This is the complete error I'm getting -
warnings.warn('Using slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning')
Traceback (most recent call last):
File "D:\rPython\GamestonkTerminal\gamestonk_terminal.py", line 11, in
from sentiment import sen_menu as sm
File "D:\rPython\GamestonkTerminal\sentiment\sen_menu.py", line 5, in
from sentiment import twitter_api
File "D:\rPython\GamestonkTerminal\sentiment\twitter_api.py", line 5, in
import flair
ModuleNotFoundError: No module named 'flair'
Hi, I saw the maintainer is planning to release a documentation. In the meanwhile I wanted to share my experience installing and running the code on macOS.
I had python3 previously setup with Anaconda (installed with homebrew brew install --cask anaconda
).
Cloned the repo with git clone https://github.com/DidierRLopes/GamestonkTerminal.git
.
cd
into the repo directory and then pip3 install -r requirements.txt
.
Then I tried to run the script but some errors came out.
First prawcore said it was outdated.
Second Importing plotly failed. Interactive plots will not work.
solved with pip install --upgrade plotly
.
Finally the code was running fine but crashed every time a graph had to show up. I ended up changing and updating some dependencies in ./requirements.txt
:
- praw==7.1.4
- prawcore==1.5.0
+ praw==7.2.0
+ prawcore==2.0.0
...
- matplotlib==3.1.1
+ matplotlib==3.3.3
then again pip3 install -r requirements.txt
.
Hope this help someone while waiting for an official starting guide. Congrats for this amazing project!
using virtual env with python version 3.6.8
Mac OS 11.2.1
when trying to install requirements get the this:
ERROR: Could not find a version that satisfies the requirement scipy==1.6.1
anyone else got the same error?
Thanks!
While we can already see the sentiment of the market. In my opinion it would be nice to see and screen out different stock. For instance on trading view I love to filter my stocks between
When i try to run python gamestonk_terminal.py in conda environment, it says "Key already registered with the same priority: GroupSpatialSoftmax". Any solutions ?
I already have it so I'm not sure why it keeps giving me :
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/pc/xltjzqf95wzc7mv816m9g71m0000gn/T/pip-install-y497l2jg/sentencepiece_86788c200dcb4ecda7c6b1a3df1c4a46/setup.py'"'"'; file='"'"'/private/var/folders/pc/xltjzqf95wzc7mv816m9g71m0000gn/T/pip-install-y497l2jg/sentencepiece_86788c200dcb4ecda7c6b1a3df1c4a46/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/pc/xltjzqf95wzc7mv816m9g71m0000gn/T/pip-pip-egg-info-fogkqa8j
cwd: /private/var/folders/pc/xltjzqf95wzc7mv816m9g71m0000gn/T/pip-install-y497l2jg/sentencepiece_86788c200dcb4ecda7c6b1a3df1c4a46/
Complete output (2 lines):
/bin/sh: pkg-config: command not found
Failed to find sentencepiece pkgconfig
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/ba/f6/520b56e5977f62aee48833da8b4ff2fdc2b10ebfa0dd78556b1d707d4086/sentencepiece-0.1.91.tar.gz#sha256=f9700cf607ea064d9fad34c751fbf49953dcc56fe68c54b277481aa0aec5c18f (from https://pypi.org/simple/sentencepiece/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement sentencepiece==0.1.91
ERROR: No matching distribution found for sentencepiece==0.1.91
I am working through the dependencies on windows and have finally run into a snag I haven't been able to figure. During the fbprophet installation, the environment notices that pystan is missing and installs Cython, pystan, fbprophet, config, beautifulsoup4, alpha-vantage. After this, it retries running setup.py for fbprophet and quickly fails due to not finding pystan despite it being installed in the enviroment. Any guesses here?
Running 64 bit Windows 10 and an Intel i9. Sorry in advance for the poor formatting below I couldn't hunt down where it spit out the log file.
Running setup.py clean for fbprophet
Failed to build fbprophet
Installing collected packages: Cython, pystan, fbprophet, config, beautifulsoup4, alpha-vantage
Running setup.py install for fbprophet ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\jack\desktop\projects\python\gamestonkterminal-main\env\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Jack\AppData\Local\Temp\pip-install-ilbs4rh4\fbprophet_381b22e31e0d4e2d9547bbde2aeb1418\setup.py'"'"'; file='"'"'C:\Users\Jack\AppData\Local\Temp\pip-install-ilbs4rh4\fbprophet_381b22e31e0d4e2d9547bbde2aeb1418\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\Jack\AppData\Local\Temp\pip-record-z8zczdsi\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\jack\desktop\projects\python\gamestonkterminal-main\env\include\site\python3.6\fbprophet'
cwd: C:\Users\Jack\AppData\Local\Temp\pip-install-ilbs4rh4\fbprophet_381b22e31e0d4e2d9547bbde2aeb1418
Complete output (45 lines):
running install
running build
running build_py
creating build
creating build\lib
creating build\lib\fbprophet
creating build\lib\fbprophet\stan_model
Importing plotly failed. Interactive plots will not work.
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\Jack\AppData\Local\Temp\pip-install-ilbs4rh4\fbprophet_381b22e31e0d4e2d9547bbde2aeb1418\setup.py", line 149, in
long_description_content_type='text/markdown',
File "c:\users\jack\desktop\projects\python\gamestonkterminal-main\env\lib\site-packages\setuptools_init_.py", line 153, in setup
return distutils.core.setup(**attrs)
File "C:\Users\Jack\AppData\Local\Programs\Python\Python36\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Users\Jack\AppData\Local\Programs\Python\Python36\lib\distutils\dist.py", line 955, in run_commands
self.run_command(cmd)
File "C:\Users\Jack\AppData\Local\Programs\Python\Python36\lib\distutils\dist.py", line 974, in run_command
File "c:\users\jack\desktop\projects\python\gamestonkterminal-main\env\lib\site-packages\setuptools\command\install.py", line 61, in run
return orig.install.run(self)
File "C:\Users\Jack\AppData\Local\Programs\Python\Python36\lib\distutils\command\install.py", line 545, in run
self.run_command('build')
File "C:\Users\Jack\AppData\Local\Programs\Python\Python36\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\Jack\AppData\Local\Programs\Python\Python36\lib\distutils\dist.py", line 974, in run_command
File "C:\Users\Jack\AppData\Local\Programs\Python\Python36\lib\distutils\command\build.py", line 135, in run
File "C:\Users\Jack\AppData\Local\Programs\Python\Python36\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\Jack\AppData\Local\Programs\Python\Python36\lib\distutils\dist.py", line 974, in run_command
File "C:\Users\Jack\AppData\Local\Temp\pip-install-ilbs4rh4\fbprophet_381b22e31e0d4e2d9547bbde2aeb1418\setup.py", line 48, in run
build_models(target_dir)
File "C:\Users\Jack\AppData\Local\Temp\pip-install-ilbs4rh4\fbprophet_381b22e31e0d4e2d9547bbde2aeb1418\setup.py", line 38, in build_models
StanBackendEnum.get_backend_class(backend).build_model(target_dir, MODEL_DIR)
File "C:\Users\Jack\AppData\Local\Temp\pip-install-ilbs4rh4\fbprophet_381b22e31e0d4e2d9547bbde2aeb1418\fbprophet\models.py", line 209, in build_model
import pystan
File "c:\users\jack\desktop\projects\python\gamestonkterminal-main\env\lib\site-packages\pystan_init_.py", line 9, in
from pystan.api import stanc, stan
File "c:\users\jack\desktop\projects\python\gamestonkterminal-main\env\lib\site-packages\pystan\api.py", line 13, in
import pystan._api # stanc wrapper
ImportError: DLL load failed: The specified module could not be found.
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\jack\desktop\projects\python\gamestonkterminal-main\env\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Jack\AppData\Local\Temp\pip-install-ilbs4rh4\fbprophet_381b22e31e0d4e2d9547bbde2aeb1418\setup.py'"'"'; file='"'"'C:\Users\Jack\AppData\Local\Temp\pip-install-ilbs4rh4\fbprophet_381b22e31e0d4e2d9547bbde2aeb1418\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\Jack\AppData\Local\Temp\pip-record-z8zczdsi\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\jack\desktop\projects\python\gamestonkterminal-main\env\include\site\python3.6\fbprophet' Check the logs for full command output.
Love the project. I think the project would see lots of benefit from moving to a different package manager then just pip
and the requirements.txt
. poetry
would make it easier to support multiple Pythons like 3.6
to 3.10
. It also would help increase development velocity by making it easier to use latest versions of dependencies and making it easier to develop/contribute by having poetry
manage the virtual environment for us. poetry
can also help push a package to pypi if that's a direction you want to go in and I recommend you do.
If this is something you want to explore I can push a PR with a CONTRIBUTING.md
and poetry
setup to manage dependencies. After that we can talk about automated testing, releases and making GameStonkTerminal pip
installable.
Most of what I have in mind comes from HyperModern Python.
would be nice to have pred models like the rnn and lstm load existing data without recalculating the pred every time, assuming the input data (e.g. start date) doesn't get updated
Can you help an absolute beginner how to start and use this?
Okay so basically im an absolute beginner and coding but ive been investing for a while and wanted to give this a shot but i dont get it. :D Please help? Could you make a more detailed installation description in steps?
Thanks!
(terminal) C:\Users\Diego>C:\Users\Diego\Documents\GitHub\GamestonkTerminal\gamestonk_terminal.py
Traceback (most recent call last):
File "C:\Users\Diego\Documents\GitHub\GamestonkTerminal\gamestonk_terminal.py", line 6, in
from helper_funcs import *
File "C:\Users\Diego\Documents\GitHub\GamestonkTerminal\helper_funcs.py", line 3, in
from holidays import US as holidaysUS
ModuleNotFoundError: No module named 'holidays'
Link to guide https://imgur.com/a/gqgVJPn
Ive already tried conda install holidays and theyre all in there. I dont know what to do now as the python file refuses to open.
SOLVED it looks like while everything else was in check all i had to do was open the .py file through anaconda so essentially just this: Python
C:\Users\Diego>C:\Users\Diego\Documents\GitHub\GamestonkTerminal\gamestonk_terminal.py
Using python 3.8:
python3 gamestonk_terminal.py
RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd
Traceback (most recent call last):
File "gamestonk_terminal.py", line 6, in <module>
from helper_funcs import *
File "/Users/pel/Projects/Gamestonk/GamestonkTerminal/helper_funcs.py", line 9, in <module>
import matplotlib
File "/Users/pel/Library/Python/3.8/lib/python/site-packages/matplotlib/__init__.py", line 205, in <module>
_check_versions()
File "/Users/pel/Library/Python/3.8/lib/python/site-packages/matplotlib/__init__.py", line 190, in _check_versions
from . import ft2font
ImportError: numpy.core.multiarray failed to import
pip3 show numpy
Name: numpy
Version: 1.19.2
Summary: NumPy is the fundamental package for array computing with Python.
Home-page: https://www.numpy.org
Author: Travis E. Oliphant et al.
Author-email: None
License: BSD
Location: /Users/pel/Library/Python/3.8/lib/python/site-packages
Requires:
Required-by: yfinance, transformers, torch, TimeSeriesCrossValidation, tensorflow, tensorboard, statsmodels, scipy, scikit-learn, Quandl, pystan, pmdarima, patsy, pandas, opt-einsum, matplotlib, Keras-Preprocessing, hyperopt, h5py, gensim, fbprophet, cmdstanpy, bpemb
Would be nice to see how a model can be compared to current data. Like a sub option under pred to compare each model's data from 1 week ago to current prices.
I'd make a PR for this, but I'm not sure exactly how the file structure works and else I'd need manage repo. This would help manage the issues coming in.
When installing requirements.txt below Warning is mentioned but the protocol continues until shows an Error when trying to use the TimeSeriesCrossValidation.
Does anyone else have that issue?
Cloning https://github.com/DidierRLopes/TimeSeriesCrossValidation (to revision 1e29d393204abb3bde23ff3f15258ed85d3b263e) to /private/var/folders/l2/4cfnd_1x137ckrhhhxts8dym0000gn/T/pip-install-84wtkg3g/timeseriescrossvalidation_a0a31939a46b4e00840c584a15a790ad
Running command git clone -q https://github.com/DidierRLopes/TimeSeriesCrossValidation /private/var/folders/l2/4cfnd_1x137ckrhhhxts8dym0000gn/T/pip-install-84wtkg3g/timeseriescrossvalidation_a0a31939a46b4e00840c584a15a790ad
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
WARNING: Discarding git+https://github.com/DidierRLopes/TimeSeriesCrossValidation@1e29d393204abb3bde23ff3f15258ed85d3b263e. Command errored out with exit status 1: git clone -q https://github.com/DidierRLopes/TimeSeriesCrossValidation /private/var/folders/l2/4cfnd_1x137ckrhhhxts8dym0000gn/T/pip-install-84wtkg3g/timeseriescrossvalidation_a0a31939a46b4e00840c584a15a790ad Check the logs for full command output.
Hey, awesome project idea!
I tried installing this on Ubuntu Linux 20.04 but pip complains about the following:
xlwings (lets you bypass but sounds bad to do)
wheel (error)
I'm using python 3.6.13 on the aforementioned OS.
Installing the requirements fbprophet and appscript fails on Windows 10 with Python 3.8.8 64bit Version. Is there a fix? I read that fbprophet needs a compiler on windows, but I couldn't figure it out yet. If there is an easy fix, I appreciate it!
Probably not the best place but maybe helps somebody so I'm dumping here:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
wsl --set-default-version 2
Install Ubuntu 20.04 LTS from Microsoft Store
Run it, let it do its thing, set username and password and you should end up in a terminal window
Run the following commands to install a few dependencies and check out Gamestonk Terminal from GitHub:
sudo apt update && sudo apt upgrade -y
sudo apt install python3-venv python3-dev g++ pkg-config libfreetype6-dev -y
git clone https://github.com/DidierRLopes/GamestonkTerminal.git
cd GamestonkTerminal
nano requirements.txt
python3 -m venv venv_for_GamestonkTerminal
source ./venv_for_GamestonkTerminal/bin/activate
export INSTALL_ON_LINUX=1
pip3 install wheel
pip3 install numpy==1.19.2
pip3 install -r requirements.txt
python3 gamestonk_terminal.py
Note: To get plotly/graphs to work you will also need to install Nvidia beta CUDA drivers for WSL on latest Windows Insider build, which requires joining MS Insider program. Hopefully they will be out of beta soon.
You need to activate Python venv again if you close your Ubuntu terminal to run Gamestonk:
cd GamestonkTerminal
source ./venv_for_GamestonkTerminal/bin/activate
python3 gamestonk_terminal.py
A continuation of the issuses on windows
Sorry one more, just was able to do that last one
Traceback (most recent call last):
File "gamestonk_terminal.py", line 12, in
from prediction_techniques import pred_menu as pm
File "C:\GamestonkTerminal\prediction_techniques\pred_menu.py", line 16, in
from prediction_techniques import fbprophet
File "C:\GamestonkTerminal\prediction_techniques\fbprophet.py", line 11, in
from fbprophet import Prophet
ModuleNotFoundError: No module named 'fbprophet'
Original sentence: "Hence, it is recommended for the user to set up a virtual python environment previous to install these."
Corrected: Hence, it is recommended for the user to set up a virtual python environment prior to installing these.
hi,
i think it would nice to provide binaries for "end-users" , instead of using current installation method.
pip install -r requirements.txt
The python binaries can be built using pyinstaller. However the overhead would be to build windows binary on windows computer.
regards
Hey, excellent work man. Is there a way to set prediction days ? i.e to just 1? cant find anything relating to it
This is a really great job! I like what you did. I like it that much, that I would love to use some of your features in my Game Stonk Telegram Bot (https://github.com/exislow/telegram-stonks-bot).
To do so, it would be great, if you could provide all the features you offer (dd, charts, news etc.) as a separate lib, which can be installed using pip (PyPi).
I mean, it would be great if the "terminal" feature of your script is just a wrapper for all your libraries. So, everybody could re-use your libraries easily instead of ripping your code apart without almost any chance to get code update.
Also versioning would be great, or at least a stable branch called "release".
It takes a very long time to install all dependencies. Are really all of the dependencies required? Maybe some are only for dev and could be moved e.g. to requirements-dev.txt
?
Also some of the dependencies have no version pinning. This is not a good practice.
What do you think? Less dependencies could increase deploy time...
Thanks for creating this package, it looks quite nice.
I ran into a couple errors while installing the pip requirements and I am documenting them here.
'gensim.models.fasttext_inner': 'gensim/models/fasttext_inner.c',
RuntimeError: Python version >= 3.7 required.
I ran pyenv install 3.7.10
and pyenv global 3.7.10
to resolve this error.
pip install wheel
resolved the issue.numpy.distutils.system_info.NotFoundError: No BLAS/LAPACK libraries found. Note: Accelerate is no longer supported.
To build Scipy from sources, BLAS & LAPACK libraries need to be installed.
Attempting to install blas using brew install llvm@9 openblas
At the moment if find stocks only in wallstreetbets
subreddit.
> popular
Search for latest tickers under 50 'pennystocks' posts
0 tickers found.
Search for latest tickers under 50 'RobinHoodPennyStocks' posts
0 tickers found.
Search for latest tickers under 50 'Daytrading' posts
0 tickers found.
Search for latest tickers under 50 'StockMarket' posts
0 tickers found.
Search for latest tickers under 50 'stocks' posts
0 tickers found.
Search for latest tickers under 50 'investing' posts
0 tickers found.
Search for latest tickers under 50 'wallstreetbets' posts
23 tickers found.
The CLI for this app is incredibly useful and allows the user to carry out a lot of analysis.
Is there any planned work to develop a dashboard to visualise multiple analyses at once, or retrieve model performance metrics from previously trained models? For instance, I can see that tensorboard
is listed as a dependency, but I can't see that being used anywhere within the project.
For quick and dirty dashboards, streamlit is often a good place to start.
If this is something you're looking for help with, I'd be happy to contribute.
when you run pip install -r requirement.txt
in your mac, if you encounter error related to tensorflow
, sentencepieces
or matplotlib
, please check the followings:
ft2build
, they run brew install freetype
then install the requirement again, it works ( like described here https://stackoverflow.com/questions/12363557/matplotlib-install-failure-on-mac-osx-10-8-mountain-lion/12790839 )dun know if there is anyone facing the same errors, i hope it helps :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.