Skip to content

"from lalframe import frread" -> "No module named ligo" on local build from source

Hi @duncanmmacleod, I have a local lalsuite compiled from up-to-date master (ef3b9e85, on Debian Stretch, python 2.7), but I can no longer use lalframe.frread due to some package dependency issue. I've tried reading #82 (closed) but some parts of it went over my head, so I hope you can help me:

from lalframe import frread
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/dkeitel/programs/lalsuite-opt/lib/python2.7/site-packages/lalframe/frread.py", line 34, in <module>
    from lal import (utils as lalutils, lal)
  File "/home/dkeitel/programs/lalsuite-opt/lib/python2.7/site-packages/lal/utils/__init__.py", line 29, in <module>
    from .cache import *
  File "/home/dkeitel/programs/lalsuite-opt/lib/python2.7/site-packages/lal/utils/cache.py", line 28, in <module>
    from ligo import segments
ImportError: No module named ligo

(/home/dkeitel/programs/lalsuite-opt is my install prefix for the local build.)

I have tried

pip install --user ligo-common
pip install --user ligo-segments

but the error persists. So...

  1. What do I need to do locally to get this working?

  2. Should/could this dependency somehow be checked at configure/build time? I think I understand from issue #82 (closed) that the problems should be resolved for published packages, but this does not seem to automatically hold for people like me building from source...?

Greetings, David

(@adam-mercer : I can't seem to be able to assign to Duncan, I think he should be a developer but isn't...?)