-
Notifications
You must be signed in to change notification settings - Fork 1.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" while importing ModelFactory #3851
Comments
I've just noticed that I'm getting this "segmentation fault 11" in several other cases (e.g. when simply importing |
I installed NuPIC, on an Ubuntu 16.04 virtual machine, using Python 2.7.12. So far, I have not run into this issue. Later, I will try to install it on the Python versions 2.7.10 and 2.7.15. This will be my workaround until I (or someone else) solve this "segmentation fault 11" problem. |
I think you'll have to compile locally on 10.13.6. We don't continue to support the latest OS builds. |
I was just talking to @lscheinkman and he is running the same OS as you @nbro. He thinks this has something to do with your virtualenv python environment. The Seg11 does not tell us much. Brew is not going to work either. I suggest you try to get virtualenv setup as bare as possible, make sure there is no numpy there before you install nupic. In the past, this problem has been a symptom of some numpy dependency mismatch. If nothing else works, try outside of virtualenv. At least that will tell us that it is a problem with the python environment. |
I installed NuPIC on an empty virtual environment (apart from the default Python packages that are added automatically to the environment when you create it, i.e. I will try to install it outside of the virtual environment, but I don't think this is the problem (I think I already tried it). |
There is something off in your python environment. Sometimes bad things in your global python env can leak into virtualenv. That has happened to me before. |
System Information
Problem Description
I installed NuPIC in a virtual environment by issuing the command
pip install nupic
. This also installed all NuPIC's dependencies, includingnupic.bindings
. I can importnupic
normally without getting errors, but if I try to importModelFactory
fromnupic.frameworks.opf.model_factory
I get a "Segmentation fault: 11".or, using Homebrew installed one,
Even if I install NuPIC from the local source code, using
pip install .
I get a "segmentation fault 11".I have looked for similar issues. It's not the first time that people, in the NuPIC community, report a "segmentation fault" error.
Comments
In the README file, you state that NuPIC binaries are only available for OSX 10.9 and 10.10, so I suppose that no one has tried to port NuPIC to (or test on) OS X 10.13. Anyway, NuPIC (not nupic.core) is a Python package, so I don't really get what you mean by "binary" here, in this context.
If this is an issue that all Mac OS X 10.13 users have, then this is a big limitation, I think, and the issue should be solved.
I am a bit puzzled that I can import
nupic
, but not that particular class.nupic.frameworks.opf.model_factory
probably contains the execution of code which causes this segmentation fault.Question
Can some Mac OS X user reproduce this error?
The text was updated successfully, but these errors were encountered: