-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 #688
Comments
I'm afraid that this is a very uncommon problem. Could you please provide further information on the OS you're using and how you installed Auto-sklearn? Also, could you please upload the log file created by Auto-sklearn? |
os info:
python version:
installation: pip list:
test.py:
nohup python test.py &
|
automl_d74860caaa557f473ce23908ff7ba369.txt The attached file is the detailed log file with debug level. |
Thanks for the additional information. Unfortunately, the logs do not provide any further detail except that Auto-sklearn did not start training a single machine learning model. To further understand the problem, for how long does Auto-sklearn run, and when does the segfault happen? Also, would you be able to test Auto-sklearn in a conda environment to ensure that there's no issue with the installation? |
we meet the same problem also: in 2nd round, we meet segment error |
It seems to work, thx~
|
Thank you very reporting a solution to this issue. Could you please do me a favor and check the swig version installed with conda? I suspect that this is an issue of the recent SWIG4. |
perhaps, this swig version is 3.0.12
|
Thanks a lot for checking. I'll close this issue as we have found a solution. @sfalkner do you happen to know if the pyrfr behaves differently with SWIG4? |
@mfeurer I also have the "Segmentation fault" problem , and it remains unfixed after I install the newest anaconda3 and downgrade the version of swig to 3.0.12. |
I also encounter this problem, and unfortunately, the above solution seems doesn't work for me. |
I can add another data point on this issue, running into the same issue here. Tried downgrading to swig3 as well. (I am on a Mac, though) |
As an update, installing through conda seems to work (I'd be happy to post instructions if anyone needs it). My follow up question would be one for @mfeurer. Why is that so? If swig is installed through brew, I would assume that the package should be no difference no? |
I think I've isolated the issue, the segfault seems to be occuring when using the pyrfr version that the package currently specifies (0.7.4). If the package version is bumped to the latest version (0.8.0) I am not getting a segfault. @mfeurer could we get an intermediate patch with a bumped pyrfr version? |
On a Mac, and I'm segfaulting as well. I've tried both downgrading swig as well as trying the package with pyrfr at version 0.8.0, no luck with either. @adithyabsk can you provide more information about what worked for you? edit: If anyone is stuck on this and just wants to get it working, I ended up just running the auto-sklearn docker container and trying it out in there, it ran fine. |
I had the same issue, but fixed it with help from this issue. Adding information in case it helps anyone. OS: Windows Subsystem for Linux (WSL) on Windows 10, Python 3.7.3
I worked within a conda environment. Initially installed the latest Changed to Finally upgraded |
@dylancashman My setup is the exact same as @PGijsbers but I'm on macOS, I think the key piece that you might be missing is swig3.0 which is the version that seems to be working with auto sklearn. |
I followed all the thread and seems to be working now (fingers crossed). Finally I installed pyrfr from scratch. It showed this message:
It works fine finally 👍 PD: while training, it shows this, though:
|
It might not work with the compiler installed via conda, or be incompatible with the python binary from conda (as that might have been compiled with an incompatible compiler). In total, this issue appears to be solved by using swig from conda, making sure to use swig version 3.X and by using pyrfr 0.8. |
I couldn't run it on the docker container. I just got errors of "No module named 'numpy.random._pickle'" when I tried to do prediction using a model I had built before. Did you install/prepare anything else? Full traceback: root@006ed697a386:/mnt/mydata/AS_inf_env# python3 AS_field_WSOG_inf.py EDIT: Nevermind, i think this was just because I was using a different version |
|
Yes, the pyrfr requires SWIG version 3. What's not working if you install SWIG with Conda? Also, can you do |
Had the same issues on archlinux, been up- an downgrading pyrfr, swig, etc. whatsoever without success. Finally a working procedure as a combination of the above answers (not sure if first pacman/ln step is required):
|
I had the same issues on CentOS 7.5 (Core) A bit confused here. What is the difference between swig from package installation (such as yum or apt) and conda?. I have both different version with conda using version 3 and yum using version 4. Try to follow everything above without any success. |
I wanted to chime in here since I was having swig issues when using the current jupyter notebook docker image
|
Thanks for the suggestion @mmaybeno. In case it helps, we also provide a docker image of Auto-sklearn at https://github.com/automl/auto-sklearn/packages/ So far it is only available for the development version, but we'll provide a version for the master branch with the next release. |
Ah excellent news, thanks @mfeurer. I keep forgetting github has docker images now, as I only looked at dockerhub and noticed the latest image was 2 years old. |
Thanks for letting us know. I just added a push to dockerhub to our docker building github action as docker hub is used more often. |
when try the sample code:
something wrong with the automl.fit line, and got "Segmentation fault", the python command console exit.
does anyone come across this problem?
The text was updated successfully, but these errors were encountered: