Questions tagged [pyicu]

Python version of the ICU library

PyICU is a Python wrapper around the C++ ICU library.

30 questions
11
votes
2 answers

Polyglot ImportError: cannot import name 'Locale' from 'icu'

I was trying to run the polyglot for my sentimental analysis. After a lot of struggling,, I successfully installed Polyglot and pyicu. However when I ran my program, it gave me this error, and I don't know how to fix it Traceback (most recent…
Siyi Zhou
  • 111
  • 1
  • 3
8
votes
2 answers

How to correctly install PyICU on Heroku?

I am trying to deploy my Python app on Heroku, but have been unsuccessful. It seems that a problem is occurring with the PyICU package, which I'm unsure how to correct. I've confirmed that this is the only issue with my deployment; when I remove…
MeL
  • 1,269
  • 3
  • 12
  • 30
8
votes
2 answers

Error installing PyICU in python 3.6.2 recently installed package

So, just installed the newest 3.6.2 python version and updated pip and setuptools, so I started installing PyICU and I got an installation error without, navigating inside internet I have not found the same error, I found some similar in 1.9.5 but…
Trebia Project.
  • 930
  • 2
  • 17
  • 36
7
votes
3 answers

Pip can't install pyicu

I am running a AWS that runs Ubuntu 20.04. I am trying to install the package pyicu, but I am facing problems. I tried running sudo apt install libicu-dev, but I still can't install pyicu. I am not able to install brew on the aws server. Any other…
Petar
  • 113
  • 1
  • 7
4
votes
1 answer

Import or Symbol not Found Error with polyglot when PyICU and icu4c installed correctly

I'm really struggling with polyglot, pyicu and icu4c - and it seems like I'm not the only one... I'm running Mac OS High Sierra 10.13.6 and python3 with a virtualenv Here are the steps I've taken, largely based on this article: Start from a new…
Nahko
  • 78
  • 10
4
votes
2 answers

Can't install pyicu due to 'icu-config'

I'm trying to install pyicu for python 3.5 on mac according to this link https://struggley.wordpress.com/2015/07/14/installation-pyicu-on-mac-osx-yosemite/ However, when I excute pip3 install pyicu, I got this error Collecting pyicu Using cached…
Chenlu
  • 449
  • 1
  • 6
  • 19
4
votes
1 answer

Python sort a list of objects/dictionaries with a given sortKey function

(I use Python 2 here) I have a list of dictionaries, say dei = [{'name': u'Thor'}, {'name': u'Œdipus'}, {'name': u'Creon'}] I would like to sort that list by their 'name' attribute. This is easily done so: dei.sort(key=lambda d: d['name']) Now,…
Eoshyn
  • 43
  • 2
4
votes
1 answer

GCC error installing pyICU on centos

I have a problem while installing the polyglot library in Centos. The build of pyICU failes with gcc exit code 1. I looked around in the web and did not find a lot of useful resources. The following packages are installed on the system: Pip…
Mat Fluor
  • 467
  • 1
  • 6
  • 17
3
votes
1 answer

pyicu on mac : ./common.h:38:13: error: unknown type name 'decltype'

I am trying to install pyicu on osx 10.12.4 , But i am keep getting error : I am trying to use polyglot : from polyglot.downloader import downloader print(downloader.supported_languages_table("ner2", 3)) But it's giving pyicu error so i am…
Aaditya Ura
  • 12,007
  • 7
  • 50
  • 88
2
votes
1 answer

install pyicu 64 on macOS with python2

I first installed icu4c from the Homebrew formula: $ brew install icu4c $ ls /usr/local/Cellar/icu4c/ 64.2 then setup the flags accordingly: export ICU_VERSION=64 export PYICU_INCLUDES=/usr/local/Cellar/icu4c/64.2/include export…
loretoparisi
  • 15,724
  • 11
  • 102
  • 146
2
votes
2 answers

Import error for icu in Mac and Ubuntu, although pyicu is installed correctly

I have pyicu installed in both MacOS and Ubuntu 14.04 but it shows ImportError upon importing. For MacOS high sierra output is: Traceback (most recent call last): File "", line 1, in File…
Siddharth Das
  • 1,057
  • 1
  • 15
  • 33
2
votes
1 answer

Unable to install pyicu on MacOS

I tried installing through pip3 install pyicu and got following error: Collecting pyicu Using cached https://files.pythonhosted.org/packages/bb/ef/3a7fcbba81bfd213e479131ae21445a2ddd14b46d70ef0109640b580bc5d/PyICU-2.0.3.tar.gz Complete output from…
Siddharth Das
  • 1,057
  • 1
  • 15
  • 33
2
votes
2 answers

How transliterate unicode text with PyICU to ASCII?

There is the PyICU library, which I understand can be used to transliterate strings. However there are no docs. Anyone have a simple example which transliterates a unicode string to ASCII, with PyICU? The C++ ICU documentation for transliteration is…
Prof. Falken
  • 24,226
  • 19
  • 100
  • 173
1
vote
0 answers

failed importing ICUFoldingFilter while using pylucene

When issuing an import statement from lucene.ICUFoldingFilter import ICUFoldingFilter I'm getting an error: ValueError: (2, 'No such file or directory',…
user2773013
  • 3,102
  • 8
  • 38
  • 58
1
vote
0 answers

how to install polyglot on windows

I would like to use the python polyglot library but I couldn't manage to use it I installed it using the command git clone https://github.com/aboSamoor/polyglot cd polyglot python setup.py install when I want to try the code proposed on their…
An0n7me
  • 11
  • 3
1
2