Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ImportError: undefined symbol

See original GitHub issue

Describe the bug An ImportError is thrown when trying to import ants following from source installation

To Reproduce Steps to reproduce the behavior:

  1. git clone
  2. cd ANTsPy
  3. git checkout v0.2.3
  4. python3 install --user

Expected behavior No ImportError is thrown.

Additional Context

  • CentOS 7.6.1810
  • Python 3.6.1
  • GCC 9.1.0
  • CMake 3.13.1

Full traceback:

ImportError                               Traceback (most recent call last)
<ipython-input-1-78f96f50f910> in <module>()
----> 1 import ants

~/src/ANTsPy/ants/ in <module>()
      5     pass
----> 7 from .core import *
      8 from .utils import *
      9 from .segmentation import *

~/src/ANTsPy/ants/core/ in <module>()
----> 2 from .ants_image import *
      3 from .ants_image_io import *
      5 from .ants_transform import *

~/src/ANTsPy/ants/core/ in <module>()
     25 import inspect
---> 27 from .. import utils, registration, segmentation, viz
     28 from . import ants_image_io as iio2

~/src/ANTsPy/ants/utils/ in <module>()
----> 2 from .bias_correction import *
      3 from .channels import *
      4 from .convert_nibabel import *
      5 from .crop_image import *

~/src/ANTsPy/ants/utils/ in <module>()
----> 4 from . import process_args as pargs
      5 from .get_mask import get_mask
      6 from .iMath import iMath

~/src/ANTsPy/ants/utils/ in <module>()
     13 from ..core import ants_image as iio
---> 14 from .. import lib
     16 _short_ptype_map = {

~/src/ANTsPy/ants/lib/ in <module>()
      3 ## LOCAL ##
----> 4 from .antiAlias import *
      5 from .antsImage import *
      6 from .antsImageClone import *

ImportError: /home/users/a5b/src/ANTsPy/ants/lib/ undefined symbol: _ZN3itk13ProcessObject8SetInputERKSsPNS_10DataObjectE

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:14 (14 by maintainers)

github_iconTop GitHub Comments

stnavacommented, Mar 15, 2020
ruebergercommented, Mar 15, 2020


Read more comments on GitHub >

github_iconTop Results From Across the Web

Python ImportError - undefined symbol - for custom C++ module
My Python module compiles with no issues and is loaded in Python properly. However, when I compile this module on Ubuntu 11.10 or...
Read more >
ImportError: undefined symbol: _ZTIN4base16classE #1403
It seems that it happens when a "function" definition can not be found. It could be because you declared a method, but did...
Read more >
ImportError : undefined symbol - Google Groups
hi cython users: i am new to i want to use cython to wapper the localmemcache project. i wapper one and successfuly...
Read more >
ImportError of 'undefined symbol' - Support
Hi, I installed the hscPipe 7.9.1 with binary distribution (by setup EUPS_PKGROOT ) at Fedora30. It start from scratch.
Read more >
Erlang->C++->Python->C/C++ Import Error: undefined symbol
This error happens when the C++ driver runs the PyImport_Import() function on the Python file. It looks like the shared library mentioned in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found