ImportError: undefined symbol
See original GitHub issueIssue Description
Describe the bug
An ImportError
is thrown when trying to import ants following from source installation
To Reproduce Steps to reproduce the behavior:
git clone https://github.com/ANTsX/ANTsPy.git
cd ANTsPy
git checkout v0.2.3
python3 setup.py 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/__init__.py in <module>()
5 pass
6
----> 7 from .core import *
8 from .utils import *
9 from .segmentation import *
~/src/ANTsPy/ants/core/__init__.py in <module>()
1
----> 2 from .ants_image import *
3 from .ants_image_io import *
4
5 from .ants_transform import *
~/src/ANTsPy/ants/core/ants_image.py in <module>()
25 import inspect
26
---> 27 from .. import utils, registration, segmentation, viz
28 from . import ants_image_io as iio2
29
~/src/ANTsPy/ants/utils/__init__.py in <module>()
1
----> 2 from .bias_correction import *
3 from .channels import *
4 from .convert_nibabel import *
5 from .crop_image import *
~/src/ANTsPy/ants/utils/bias_correction.py in <module>()
2
3
----> 4 from . import process_args as pargs
5 from .get_mask import get_mask
6 from .iMath import iMath
~/src/ANTsPy/ants/utils/process_args.py in <module>()
12
13 from ..core import ants_image as iio
---> 14 from .. import lib
15
16 _short_ptype_map = {
~/src/ANTsPy/ants/lib/__init__.py in <module>()
2
3 ## LOCAL ##
----> 4 from .antiAlias import *
5 from .antsImage import *
6 from .antsImageClone import *
ImportError: /home/users/a5b/src/ANTsPy/ants/lib/antiAlias.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN3itk13ProcessObject8SetInputERKSsPNS_10DataObjectE
Issue Analytics
- State:
- Created 3 years ago
- Comments:14 (14 by maintainers)
Top 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 cython.today 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
https://pypi.org/project/antspyx/0.2.4/
congrats