-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segmentation fault: 11 (OSX) when trying to run 'view' or 'pred' #4
Comments
Seeing this as well, macOS 11.2.1, using Python 3.8.7 via a pyenv virtualenv. |
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: 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 |
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!
|
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. |
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 :/ |
@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
Now my prompt looks like But I still get a segfault trying to run View. |
Same issue here |
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:
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
and then retrying
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. |
What version of |
If you're asking me: 0.7.1 |
How exactly do I use virtualenv directly? I have been trying by reinstalling like @noahkuhn did but sadly has not worked for me. |
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 |
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. |
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:
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. |
Came back to report that switching to Thanks so much @DidierRLopes + team. For me personally, this issue is closed. |
For myself, upgrading |
I'm going to close this now. Lots has changed since this was opened. The project has been testest to work with Pythons We are using Just make sure to run 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 If you are having problems please open a new issue =). 🚀 GamestonkTerminal 🌔 |
Pretty new to this; when trying to run view or pred, like using knn, a little file pops up but then closes after a few seconds and gives me this error.
The text was updated successfully, but these errors were encountered: