Skip to content
This repository has been archived by the owner on Jan 22, 2021. It is now read-only.

Undefined symbol when importing ATK.Core Python module #6

Closed
SpotlightKid opened this issue Mar 26, 2016 · 4 comments
Closed

Undefined symbol when importing ATK.Core Python module #6

SpotlightKid opened this issue Mar 26, 2016 · 4 comments

Comments

@SpotlightKid
Copy link

>>> import ATK.Core
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.5/site-packages/ATK/Core/__init__.py", line 2, in <module>
    from .Core import *
  File "/usr/lib/python3.5/site-packages/ATK/Core/Core.py", line 30, in <module>
    _Core = swig_import_helper()
  File "/usr/lib/python3.5/site-packages/ATK/Core/Core.py", line 26, in swig_import_helper
    _mod = imp.load_module('_Core', fp, pathname, description)
  File "/usr/lib/python3.5/imp.py", line 242, in load_module
    return load_dynamic(name, filename, file)
  File "/usr/lib/python3.5/imp.py", line 342, in load_dynamic
    return _load(spec)
ImportError: /usr/lib/python3.5/site-packages/ATK/Core/_Core.so: undefined symbol: _ZN3ATK16OutPointerFilterIxEC1EPxilb

Note: I moved /usr/lib/site-packages/ATK to /usr/lib/python3.5/site-packages since /usr/lib/site-packages is not a valid Python module directory on non-debian-based systems.

@mbrucher
Copy link
Owner

That's intriguing. I'll try to reproduce the issue.
You can set the Python specific folder by using PYTHON_INSTALL_FOLDER

@mbrucher
Copy link
Owner

OK, I guess the issue is with the differences between long and long long on Linux. I should be able to do something better now.

@mbrucher
Copy link
Owner

Let's say this is closed until proven otherwise ;)
If it compiles, now it should be OK, as the SWIG wrappers explicitly uses the same types as the C++ instantiations.

@SpotlightKid
Copy link
Author

Yes, this seems to have fixed the issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants