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

Ubuntu installation problem #244

Open
DuyguA opened this issue May 4, 2021 · 2 comments
Open

Ubuntu installation problem #244

DuyguA opened this issue May 4, 2021 · 2 comments

Comments

@DuyguA
Copy link

DuyguA commented May 4, 2021

I installed pyicu via pip , but I still have the following problem:

from icu import Locale
ImportError: cannot import name 'Locale' from 'icu' (/usr/local/lib/python3.8/dist-packages/icu/__init__.py)

icu looks installed correctly, but there's no Locale:

>>> import icu
>>> dir(icu)
['ExternalEventSink', 'ExternalEventSource', 'NAME', 'Pipe', 'SimpleNamespace', '__all__', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__', 'atexit', 'component', 'config', 'configuration', 'constants', 'copy', 'cycle', 'event', 'eyetracking', 'fuel_monitor', 'generator', 'get_event_sinks', 'get_event_sources', 'get_external_event_sinks', 'get_external_event_sources', 'highlight', 'keyhandler', 'log', 'main_panel', 'os', 'overlay', 'panel', 'pprint', 'process', 'random', 'run', 'start', 'system_monitor', 'task_fuel_monitor', 'task_system_monitor', 'task_tracking', 'tk', 'traceback', 'tracking']

Any help is appreciated, thanks in advance!

@g8a9
Copy link

g8a9 commented May 24, 2021

Up. I am having the same installation issue on Ubuntu 20.04.

Edit: I solved the issue by manually updating pyicu, pycld2, and morfessor to the latest versions. I think that the package does not install all the dependencies correctly (I can't see anything relevant in the setup.py)

@DuyguA
Copy link
Author

DuyguA commented May 25, 2021

@g8a9 many thanks for the tip! I installed via pip, I don't know if they're the latest versions. Would you mind telling the version numbers of pyicu , pycld2 and morfessor ?

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