Comments (17)
Fellow novice here too, so this might not be the best method, but try this. Pretty sure this is what worked for me. Granted I'm still getting some other errors doing various things:
pyenv deactivate
pyenv virtualenv-delete gamestonk
pip install virtualenv
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
python gamestonk_terminal.py
You will likely get an error and be missing a bunch of dependencies so just note the module name at the bottom of the error and keep running
pip install xxxxxxx
and then retrying
python gamestonk_terminal.py
until it works... Basically what is happening is that your virtual environment files get put in the root of your project directory instead of under .pyenv/blah/blah/blah. I bet there are reasons to put that folder outside the root (version control, central location) but I'll figure that out another day.
My guess is that @DidierRLopes is going to tighten the hell out of this thing, hopefully with all this feedback it will get much more reliable.
from openbbterminal.
Hey guys,
Sorry for all the issues with the requirements. I didn't expect so many people to be interested in this project, hence why didn't have a more robust "installation" process.
I'm working on these during weekend:
- Using poetry to manage packages
- Reduce requirements to whatever is strictly necessary
- Making sure I can run a docker image from this
Bear with me since I'm new to these topics, but this should allow for the code to be much more smooth in installation process.
from openbbterminal.
I was getting segfault as well when running view on Big Sur, but updating matplotlib from 3.1.1 to 3.3.3 fixed it.
from openbbterminal.
I got this to work by scrapping pyenv virtual environments and just using virtualenv directly. Took a ton of manual pip installs to get all dependencies, but I think I'm in the clear. Not sure if the person that posted this issue was using pyenv & virtualenv.
from openbbterminal.
If you're asking me: 0.7.1
from openbbterminal.
Seeing this as well, macOS 11.2.1, using Python 3.8.7 via a pyenv virtualenv.
from openbbterminal.
This is odd I didn't have such issue.
Can you try to load a dataframe partially? I.e. set a starting date?
You can do so with:
load -t GME -s 2020-06-04
And then attempt view, or pred funcs.
It may be due to the size of the dataframe we're getting from Alpha Vintage. But I'd find it odd that you are seeing this issue and I'm not. I'm using Python 3.8.6 on a macOS 10.13.6
from openbbterminal.
I just ran that and it just does the segfault. I think this is a macOS 11 issue. Hopefully it can be sorted out, I'd love to have a crack at this thing!
> view [1] 74984 segmentation fault python gamestonk_terminal.py
from openbbterminal.
Nice!
@avocardio can you try instead of using pyenv & virtualenv, to use only virtualenv directly?
Yes, the pip install dependencies have been a bit of a nightmare :/
from openbbterminal.
@noahkuhn I ran into the same problem but am a python amateur.
Specifically, how do you not use pyenv and use virtualenv directly?
I thought I was doing that by
rm .python-version
pip install -r requirements.txt
Now my prompt looks like GamestonkTerminal git:(main)
instead of (gamestonk) GamestonkTerminal git:(main)
, so I thought that was using it without pyenv, but honestly I'm not sure where pip install
is going when I don't have the (gamestonk)
prefix.
But I still get a segfault trying to run View.
from openbbterminal.
Same issue here
from openbbterminal.
What version of fbprophet
are you running?
from openbbterminal.
Nice!
@avocardio can you try instead of using pyenv & virtualenv, to use only virtualenv directly?
Yes, the pip install dependencies have been a bit of a nightmare :/
How exactly do I use virtualenv directly? I have been trying by reinstalling like @noahkuhn did but sadly has not worked for me.
from openbbterminal.
Hmm, that should work. Basically you need to get out of whatever pyenv virtualenv you are in, then make sure you have virtualenv installed to begin with, go into your project folder, create a new virtualenv using the virtualenv command (NOT pyenv virtualenv) and then activate it. At that point you can use pyenv to set the Python version.
Again, I'm just learning python so this might all be bad practice, but it's what worked for me.
Also, I would make sure you are using Python 3.6.8, which is what @DidierRLopes used to build this. My biggest hurdle was getting 3.6.8 installed on macOS 11.2.1. There are some bugs lurking in pyenv that make it impossible to install without patching the installation files.
The command at this link re: 3.6.8 is what eventually worked for me: https://gist.github.com/aputs/1e898436c70c23ea739899a7942a720a
from openbbterminal.
Came back to report that switching to pyenv
+ poetry
it all works great!
Thanks so much @DidierRLopes + team. For me personally, this issue is closed.
from openbbterminal.
For myself, upgrading matplotlib 3.1.1 β 3.3.3
fixed it
from openbbterminal.
I'm going to close this now. Lots has changed since this was opened.
The project has been testest to work with Pythons 3.6.8
, 3.7
and 3.8
.
We are using poetry
to manage the project and that is one option for installing. The other is to install with the requirements.txt
. Feel free to use any virtual environment you want.
Just make sure to run pip install --upgrade pip
as that was affecting some people as tensorflow
requires pip >= 2.19 (or something like that).
We also have a dockerfile if you would prefer to use docker. We will also soon be offering an "official image" on dockerhub.
Oh and Windows is only supported with docker because pystan
is not available for windows (officially).
If you are having problems please open a new issue =).
π GamestonkTerminal π
from openbbterminal.
Related Issues (20)
- [Bug] Incorrect `uvicorn` command in the docs
- [FR] model portfolio vs proposed portfolio
- [Bug] multi-ticker option - load many stock prices HOT 11
- [Bug] packaged installer crashes on M1 Mac running Sonoma HOT 5
- [Bug] No results for balance sheet with yfinance ticker symbol HOT 2
- [Bug] HOT 1
- [Bug] Input should be 'fmp', 'intrinio', 'polygon' or 'tiingo' [type=literal_error, input_value='yfinance', input_type=str] HOT 2
- [Bug] No module named 'openbb' HOT 5
- FEMA-R6-Tribal-2093059929@hims .dos.go~3$ΔΒ‘9999''' ( 5908 =cdb-sole.ownership and controlling/"itualectual"propeyΒ‘
- openBB Figma assets
- [Bug] cannot import name 'start_blocking_portal' from 'anyio' HOT 7
- [Bug]: generating extra frames during oauth login using gmail HOT 2
- [Bug] - Report .html couldn't be created. HOT 1
- [Bug] Docs Spelling Mistakes
- [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
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.