Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

norm 1.5.9 python binding failure #52

Open
urluberluneuf opened this issue Mar 18, 2022 · 4 comments
Open

norm 1.5.9 python binding failure #52

urluberluneuf opened this issue Mar 18, 2022 · 4 comments

Comments

@urluberluneuf
Copy link

On ubuntu 20.04 with python 2.7.18: I get this:

import pynorm
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.7/dist-packages/pynorm/init.py", line 6, in
from pynorm.instance import Instance
File "/usr/local/lib/python2.7/dist-packages/pynorm/instance.py", line 17, in
import pynorm.constants as c
File "/usr/local/lib/python2.7/dist-packages/pynorm/constants.py", line 10, in
from pynorm.core import libnorm
File "/usr/local/lib/python2.7/dist-packages/pynorm/core.py", line 510, in
libnorm = get_libnorm()
File "/usr/local/lib/python2.7/dist-packages/pynorm/core.py", line 504, in get_libnorm
libnorm.NormCountCompletedObjects.restype = ctypes.c_uint32
File "/usr/lib/python2.7/ctypes/init.py", line 379, in getattr
func = self.getitem(name)
File "/usr/lib/python2.7/ctypes/init.py", line 384, in getitem
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /home/titi/Documents/NORM/norm-1.5.9/build/libnorm.so: undefined symbol: NormCountCompletedObjects

config.log

@urluberluneuf
Copy link
Author

I found the problem: the function does not exist ! in the core.py file, the lines 504 and 505 need to be commented.

@bebopagogo
Copy link
Collaborator

bebopagogo commented Mar 19, 2022 via email

@urluberluneuf
Copy link
Author

I made a mistake closing this issue: I may have found a way to circumvent the problem, the problem exists anyway !

@urluberluneuf urluberluneuf reopened this Mar 19, 2022
@bebopagogo
Copy link
Collaborator

This has been addressed in the recent commit that addressed other Python binding issues.

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

No branches or pull requests

2 participants