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

Virheitä Python versiolla 3.5.4 #1

Open
ronilaukkarinen opened this issue Oct 17, 2018 · 3 comments
Open

Virheitä Python versiolla 3.5.4 #1

ronilaukkarinen opened this issue Oct 17, 2018 · 3 comments

Comments

@ronilaukkarinen
Copy link

Moi!

Mielenkiintoinen projekti! mielestäni kaikki dependenssit kunnossa, mutta sain tällaista virhettä, osaisitko autella?

(venv) [12:43:20] rolle 6-17-saabotti $ python --version
Python 3.5.4
(venv) [12:43:26] rolle 6-17-saabotti $ python weather.py 
Traceback (most recent call last):
  File "weather.py", line 9, in <module>
    v = libvoikko.Voikko(u"fi")
  File "/home/rolle/venv/lib64/python3.5/site-packages/libvoikko.py", line 433, in __init__
    self.__lib = self.__getLib()
  File "/home/rolle/venv/lib64/python3.5/site-packages/libvoikko.py", line 419, in __getLib
    return VoikkoLibrary.open(path=cls._sharedLibrarySearchPath)
  File "/home/rolle/venv/lib64/python3.5/site-packages/libvoikko.py", line 302, in open
    return cls(fileName)
  File "/home/rolle/venv/lib64/python3.5/site-packages/libvoikko.py", line 346, in __init__
    self.voikkoInsertHyphensCstr.argtypes = [c_void_p, c_char_p, c_char_p, c_int]
  File "/usr/lib64/python3.5/ctypes/__init__.py", line 359, in __getattr__
    func = self.__getitem__(name)
  File "/usr/lib64/python3.5/ctypes/__init__.py", line 364, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /lib64/libvoikko.so.1: undefined symbol: voikkoInsertHyphensCstr
Exception ignored in: <bound method Voikko.__del__ of <libvoikko.Voikko object at 0x7f59607ff208>>
Traceback (most recent call last):
  File "/home/rolle/venv/lib64/python3.5/site-packages/libvoikko.py", line 443, in __del__
    self.terminate()
  File "/home/rolle/venv/lib64/python3.5/site-packages/libvoikko.py", line 473, in terminate
    if self.__handle:
AttributeError: 'Voikko' object has no attribute '_Voikko__handle'
(venv) [12:43:29] rolle 6-17-saabotti $ 
@roopeux
Copy link

roopeux commented Jun 16, 2020

Ronilla varmaan vastauksen tarve jo ohi, mutta sama virheilmoitus tuli itselle tilanteessa, jossa libvoikosta oli vahingossa asennettuna pari kolme kopiota roottina ja userina. Pip3 uninstall libvoikko korjasi tilanteen.

@jamesstoneco
Copy link

This was fixed for me by installing in the os the libvoikko package (in addition to the python package), for example on macosx brew install libvoikko

@ronilaukkarinen
Copy link
Author

@roopeux @jamesstoneco Yeah, no need for this any more, but I was running it on fedora and something awry with libvoikko because could not get it to work properly... current python version for me is 3.8.3 and (Fedora 31) so I can imagine this tool will be deprecated soon.

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

3 participants