-
Notifications
You must be signed in to change notification settings - Fork 8
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
Installation issues: 'p2ptrans --help' terminated by signal SIGSEGV (Address boundary error)
#8
Comments
Btw, I'm not sure what the "on certain systems" issue is, but if it's related to libstdc++ no longer being included on Mac, there's a solution to this: https://github.com/pandas-dev/pandas/blob/8e4424fbcfc98d23085ddbcf8765946bc85da035/setup.py#L477 |
@mkhorton I haven't gotten a chance to test the latest updates on Mac yet. Let me work on it and I will get back to you very soon |
No worries, happy to help too if I can. Github Actions is a nice way to do cross-platform testing, you can write a single test which is just installing p2ptrans and run it in a matrix of OSs [Windows, macOS, Ubuntu, etc.] and flag if there's an error. Forgot to add that I was using gfortran 9.2.0 for compilation. |
@mkhorton I was not able to reproduce your problem. I tested the installation and Mojave 10.14.5 What steps did you take exactly? Are you installing in a virtual environment, a conda environment, using |
Gfortran via homebrew, in a fresh conda environment as listed above.
Installed dependencies (starting numpy), initially tried a “python setup.py
develop” but also then tried installing directly from the git repo instead
(as listed in your README).
…On Tue, Mar 3, 2020 at 08:48, Félix Therrien ***@***.***> wrote:
@mkhorton <https://github.com/mkhorton> I was not able to reproduce your
problem. I tested the installation and p2ptrans --help on Sierra and on
Mojave without any issue.
Mojave 10.14.5
gfortran 9.2.0
make 3.16.3
python 3.8.2
What steps did you take exactly? Are you installing in a virtual
environment, a conda environment, using --user or system wide? It seems
like you were installing a particular commit, did you use the -e option?
is the local bin folder in your PATH?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#8?email_source=notifications&email_token=AAWWWRBB5IOGFR7YR57Y2D3RFUYGDA5CNFSM4K67PBBKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENUH6NI#issuecomment-594050869>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAWWWRENRINRBEFYGNDW2WLRFUYGDANCNFSM4K67PBBA>
.
|
@mkhorton If I understand correctly, the installation is successful but the program fails when you try to run it. Is that correct? Note: After the installation completes. What happens if you try to import p2ptrans in python? e.g. If that works fine, what is the first line in the file |
Yes, that's correct, I get a segfault and Python itself crashes.
Yeah, I made sure to install all requirements first.
The same error.
|
@mkhorton I think I was able to reproduce the error! I get it only when using a conda environment on MacOS. It seems like pip failed to build the wheel but was still able to finish installing anyway:
Do you see that somewhere in your install output? Anyway, if that is the correct error then this is the same as this issue: hmmlearn/hmmlearn#43 and this:
should solve it. |
Frustratingly, still seeing the error, despite claiming the wheel built successfully:
However, your intuition about this being a conda issue seems to be correct -- I installed via a clean virtualenv and it seems to work fine :-) Why conda is presenting a problem I'm not sure. |
Ah! Yes you are right! In my excitement I did not try the actual faulty |
Ah ok, thanks for the info! What aspects of pylada does p2ptrans depend upon? |
It depends on multiple functions and classes of pylada... |
Ok here is a solution: (in a fresh conda env)
|
I can confirm that works!! Also just noting the setup.py has |
pylada-light is just the name of the repo, the package name is pylada. Of course putting both pylada and p2ptrans on PyPl would probably be better! See #9 |
I've just merged a branch in pylada that builds pylada with scikit-build. It also tests macos + conda via a github action. So now it should be sufficient to do |
@mdavezac Thank you so much! |
'p2ptrans --help' terminated by signal SIGSEGV (Address boundary error)
Tried both
CXXFLAGS="-std=c++11" pip install git+https://github.com/ftherrien/p2ptrans
andpip install git+https://github.com/ftherrien/p2ptrans
pip freeze
:and Python 3.7.6 on macOS 10.15.2
The text was updated successfully, but these errors were encountered: