Skip to content
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

galsim on candide #369

Closed
martinkilbinger opened this issue Jan 16, 2021 · 9 comments · Fixed by #394
Closed

galsim on candide #369

martinkilbinger opened this issue Jan 16, 2021 · 9 comments · Fixed by #394
Assignees
Labels
bug Something isn't working

Comments

@martinkilbinger
Copy link
Contributor

martinkilbinger commented Jan 16, 2021

Sometimes galsim is not working correctly on candide. E.g. import galsim gives error messages;
Dependency check in the pipeline fails with a segmentation fault. Sam, could you have a look, please. See message below the error I get.

@martinkilbinger martinkilbinger self-assigned this Jan 16, 2021
@martinkilbinger
Copy link
Contributor Author

martinkilbinger commented Jan 17, 2021

This worked:

conda create --name sp3 python=3.7
conda activate sp3
conda install -c conda-forge galsim
python -c "import galsim; print(galsim.__version__)"

2.2.4

However, using the shapepipe install script:

./install_shapepipe --no-exe --vos --env-name=sp4
conda activate sp4
python -c "import galsim; print(galsim.__version__)"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/mkilbing/.conda/envs/sp4/lib/python3.7/site-packages/galsim/__init__.py", line 112, in <module>
    from .position import Position, PositionI, PositionD
  File "/home/mkilbing/.conda/envs/sp4/lib/python3.7/site-packages/galsim/position.py", line 19, in <module>
    from . import _galsim
ImportError: /home/mkilbing/.conda/envs/sp4/lib/python3.7/site-packages/galsim/_galsim.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZN6galsim11BaseDeviate9serializeEv

@martinkilbinger martinkilbinger added the bug Something isn't working label Jan 18, 2021
@sfarrens
Copy link
Member

sfarrens commented Jan 18, 2021

I was not able to replicate this on macOS, but I was on Candide. So I assume this is an issue with the run path that was recently added. I will investigate and open a PR.

@sfarrens
Copy link
Member

@martinkilbinger I am also not able to replicate this on CANFAR. Can you let me know where you encountered this error. So far I can only reproduce it on Candide.

@martinkilbinger
Copy link
Contributor Author

yes, I only have this error on candide as well. Not sure whether you want more details ? I tried a new instatllation from scratch, in /home/mkilbing/tmp/shapepipe, with conda env test.

@sfarrens
Copy link
Member

No, that's fine. I just wanted to know if it was a Candide-specific issue or not.

@sfarrens
Copy link
Member

@martinkilbinger OK, I found the issue. The pipeline environment installs Galsim via Conda while MCCD has a pip requirement on Galsim. I will attempt to resolve this.

@sfarrens
Copy link
Member

I have opened a PR on the MCCD repo to resolve this.

In the meantime, for an existing ShapePipe environment, all you need to do is:

pip uninstall galsim -y
conda uninstall galsim -y
conda install -c conda-forge galsim -y

@martinkilbinger
Copy link
Contributor Author

Excellent, this works! Thanks a lot.

@sfarrens sfarrens linked a pull request Apr 30, 2021 that will close this issue
5 tasks
@sfarrens sfarrens mentioned this issue Apr 30, 2021
5 tasks
@sfarrens
Copy link
Member

sfarrens commented May 7, 2021

Resolved in #394

@sfarrens sfarrens closed this as completed May 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants