Git Product home page Git Product logo

Comments (17)

noahkuhn avatar noahkuhn commented on May 2, 2024 4

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.

DidierRLopes avatar DidierRLopes commented on May 2, 2024 4

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.

d0tkom avatar d0tkom commented on May 2, 2024 3

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.

noahkuhn avatar noahkuhn commented on May 2, 2024 1

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.

noahkuhn avatar noahkuhn commented on May 2, 2024 1

If you're asking me: 0.7.1

from openbbterminal.

noahkuhn avatar noahkuhn commented on May 2, 2024

Seeing this as well, macOS 11.2.1, using Python 3.8.7 via a pyenv virtualenv.

from openbbterminal.

DidierRLopes avatar DidierRLopes commented on May 2, 2024

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.

noahkuhn avatar noahkuhn commented on May 2, 2024

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.

DidierRLopes avatar DidierRLopes commented on May 2, 2024

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.

nitsujri avatar nitsujri commented on May 2, 2024

@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.

michalchmura avatar michalchmura commented on May 2, 2024

Same issue here

from openbbterminal.

emilepetrone avatar emilepetrone commented on May 2, 2024

What version of fbprophet are you running?

from openbbterminal.

avocardio avatar avocardio commented on May 2, 2024

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.

noahkuhn avatar noahkuhn commented on May 2, 2024

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.

nitsujri avatar nitsujri commented on May 2, 2024

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.

michalchmura avatar michalchmura commented on May 2, 2024

For myself, upgrading matplotlib 3.1.1 β†’ 3.3.3 fixed it

from openbbterminal.

shadycuz avatar shadycuz commented on May 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.