-
Notifications
You must be signed in to change notification settings - Fork 31
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
Sigaltstack: Cannot allocate memory #36
Comments
I have uncovered what seems to be causing the problem, although I don't know why. When I pip install pyfasttext, I install cython and numpy before. Now, I have noticed that when I install pyfasttext using pip on Mac OS X, it reads the requirement for cysignals and installs the latest (which is 1.6.7). This seems to be the root cause for the error I am getting above. If I install cysignals-1.6.6, pyfasttext works. The solution for me then, is to install cython, numpy and cysignals-1.6.6 before installing pyfasttext. There seems to be something in cysignals-1.6.7 that breaks pyfasttext for me on Mac OS X. Trying the same cysignals version in the Docker Ubuntu container does not break it. |
Hello @saxelsen89, Thanks for the detailed bug report! Can you file an issue in the cysignal bug tracker ? (here: https://github.com/sagemath/cysignals/issues) I should add a way to disable cysignals at compile time... Thanks, Vincent |
@saxelsen89 could you please share your dockerfile ? I am trying to install pyfasttext on docker but unfortunately it crashes during install. |
@kadir-gunel I install in several steps:
Alternatively, if you use requirements.txt file, you can do
or make 2 requirement.txt files and install one, then the other. This is the Dockerfile for testing:
|
@saxelsen89 Thank you for fast reply. Unfortunately, I still get error.
This list of errors continues and at the end gives :
As I understand there are missing packages like gfortran but even I install them I get the same result. |
Resolved! For me the main problem was determining the version of the cython!
Thank you again ! |
Hi,
I have been using your library a lot recently and it's great. Yesterday I decided to do a clean install of my environment, so I removed my virtual environment and recreated it and installed cython, numpy and pyfasttext.
Ever since I removed the virtual environment and recreated it, whenever I try to import pyfasttext
my python process immediately exits and outputs
sigaltstack: Cannot allocate memory
.I have previously removed and re-installed it plenty of times without any issues.
Have you seen or heard about this behavior before?
If I install and run it in a Docker container there is no problem, making me think it might be my python installation that has somehow corrupted. But I have not changed anything inbetween reinstalling pyfasttext. I am running Python 3.5.2 on a Mac with High Sierra 10.13.3, if that helps.
Thanks.
The text was updated successfully, but these errors were encountered: