polyglot icon indicating copy to clipboard operation
polyglot copied to clipboard

ModuleNotFoundError: No module named 'utKit'

Open nonoumasy opened this issue 5 years ago • 2 comments

On Google colab, I tried installing using: !pip install pypolyglot !pip3 install pyicu !pip3 install pycld2

it gives this error:


ModuleNotFoundError Traceback (most recent call last) in () ----> 1 from polyglot import ebook

/usr/local/lib/python3.6/dist-packages/polyglot/init.py in () ----> 1 import utKit 2 import cl_utils 3 from printpdf import printpdf 4 from htmlCleaner import htmlCleaner 5 from ebook import ebook

ModuleNotFoundError: No module named 'utKit'

nonoumasy avatar May 07 '20 21:05 nonoumasy

Same issue in a local Python 3 virtualenv. I just did pip install pypolyglot, then

$ polyglot init
Traceback (most recent call last):
  File "/home/krystof/.virtualenvs/polyglot-tests/bin/polyglot", line 5, in <module>
    from polyglot.cl_utils import main
  File "/home/krystof/.virtualenvs/polyglot-tests/lib/python3.8/site-packages/polyglot/__init__.py", line 1, in <module>
    import utKit
ModuleNotFoundError: No module named 'utKit'

krystofl avatar Oct 17 '20 21:10 krystofl

Have the same issue with Python 3. When I modify the __init__.py in polyglot/polyglot from this

import utKit

to this

from . import utKit

my interpreter will find the file but runs into a bunch of Python 2 syntax related errors (print "something" instead of print("something") etc.) So it seems like this project is not compatible with Python 3?

ModnarUser avatar Apr 22 '21 18:04 ModnarUser