polyglot icon indicating copy to clipboard operation
polyglot copied to clipboard

Segmentation fault on importing polyglot Text or Word

Open punsiitg opened this issue 8 years ago • 3 comments

Hello,

I have python 2.7.12 anaconda distribution installed on Mac OS Sierra 10.2. I installed polyglot using pip install polyglot and installation worked fine. However, I come across segmentation fault when importing Text or Word from polyglot.text.

  1. import polyglot ---- no error
  2. from polyglot.text import Text ---- segmentation fault: 11

Can someone please help ?

punsiitg avatar Feb 08 '17 05:02 punsiitg

Did you manage to solve it?

JohanWork avatar Feb 14 '19 07:02 JohanWork

Any updates on this ? Having the same issue

ehben83 avatar Aug 17 '22 09:08 ehben83

As far as I could see, it is a problem with the used pycld2. I located the problem by using the python builtin faulthandler in my script:

import faulthandler 
faulthandler.enable()

With this info, I found an open pull request where the last comment has helped: https://github.com/aboSamoor/pycld2/pull/44

kuranai avatar Aug 23 '22 18:08 kuranai