Skip to content

Importing underscore modules (undefined symbol) #246

Description

@mjyb16

When I attempt to import any function, I get the following type of error:
ModuleNotFoundError: No module named 'casacore.tables._tables'

EDIT: After recompiling with pip install . using github as source, I no longer have the error above, but I still have an import error with undefined symbol:

>>> from casacore.tables import table Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/mjybarth/envs/resolve/lib/python3.8/site-packages/casacore/tables/__init__.py", line 60, in <module> from .msutil import * File "/home/mjybarth/envs/resolve/lib/python3.8/site-packages/casacore/tables/msutil.py", line 29, in <module> from casacore.tables.table import (table, taql, File "/home/mjybarth/envs/resolve/lib/python3.8/site-packages/casacore/tables/table.py", line 40, in <module> from ._tables import (Table, ImportError: /home/mjybarth/envs/resolve/lib/python3.8/site-packages/casacore/tables/_tables.cpython-38-x86_64-linux-gnu.so: undefined symbol: _ZN5boost6python6detail12gcc_demangleEPKc

EDIT 2: This occurs even if I use pip install python-casacore (ie with wheels). Note that I provide pip with the directories to Boost and casacore via :
export LD_LIBRARY_PATH=/cvmfs/soft.computecanada.ca/easybuild/software/2020/avx512/Compiler/intel2020/boost/1.80.0/lib:/home/mjybarth/casa/usr/local/lib

Please let me know how to resolve this issue!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions