Skip to content

galsim on candide #369

Closed
Closed

Description

@martinkilbinger

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.

Activity

  1. martinkilbinger commented on Jan 17, 2021

    @martinkilbinger
    ContributorAuthor

    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
    
  2. added
    bug
    on Jan 18, 2021
  3. sfarrens commented on Jan 18, 2021

    @sfarrens
    Member

    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.

  4. sfarrens commented on Jan 18, 2021

    @sfarrens
    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.

  5. martinkilbinger commented on Jan 18, 2021

    @martinkilbinger
    ContributorAuthor

    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.

  6. sfarrens commented on Jan 18, 2021

    @sfarrens
    Member

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

  7. sfarrens commented on Jan 18, 2021

    @sfarrens
    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.

  8. sfarrens commented on Jan 18, 2021

    @sfarrens
    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
    
  9. martinkilbinger commented on Jan 18, 2021

    @martinkilbinger
    ContributorAuthor

    Excellent, this works! Thanks a lot.

  10. linked a pull request that will close this issueInstallation Set Up #394on Apr 30, 2021
  11. sfarrens commented on May 7, 2021

    @sfarrens
    Member

    Resolved in #394

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions