Questions tagged [pyicu]

Python version of the ICU library

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

30 questions
1
vote
0 answers

An error occurred while installing pyicu==2.8

I have built an API server with python's Flask package. I'm trying to deploy the server on Heroku using the terminal but doesn't seem to work. I have already tried using the Heroku Build Pack to install packages listed in the Aptfile with…
Libby Lebyane
  • 167
  • 2
  • 14
1
vote
1 answer

cmp_to_key is not working in python3 for .csv files

I'm working with .csv files, so I need to sort by specific column this answer doesn't work: sorting with two key= arguments thus using the idea from How do I sort unicode strings alphabetically in Python? we have in python2 import icu # conda…
Andrei
  • 579
  • 6
  • 12
1
vote
1 answer

Segmentation fault with Python with install of PyICU

I have been trying to install a Python library called Polyglot, which in turn requires PyICU, the source of my woes. After a wild goose chase of errors, I was able to install PyICU on my EC2 instance. However, when running Polyglot, and in turn…
Stefan G.
  • 167
  • 7
1
vote
1 answer

"unknown type name 'decltype'": Installing pyicu on mac failed, with gcc error

I ran the following command (because I have both python2 and python3 on my mac): $ CFLAGS=-I/usr/local/opt/icu4c/include LDFLAGS=-L/usr/local/opt/icu4c/lib sudo python3 -m pip install pyicu The error information is as below: Installing collected…
Yan Yang
  • 1,804
  • 2
  • 15
  • 37
1
vote
1 answer

install pyicu on mac; library not found for -licule

I having some difficulties to install pyicu in my mac. I first had this problem, that is I solved. But now the instalation is giving the following error: ld: library not found for -licule So, which library is this licule?
Miguel
  • 2,738
  • 3
  • 35
  • 51
1
vote
0 answers

Why would ICU output be different on two machines?

I am working on an interface to i18n library ICU (and PyICU) for Flask. In my test suite, I have a test that checks output for different locale settings. The problem I'm having is that locally my tests pass, whereas on the TravisCI instance where…
fraxture
  • 5,113
  • 4
  • 43
  • 83
1
vote
1 answer

PyICU works in Django shell but not on web server

I'm getting this error when trying to access ICU's Collator attribute on a staging server. AttributeError at /... 'module' object has no attribute 'Collator' When launching Django's shell and executing the exact same code, everything seems to be…
JLinden
  • 98
  • 12
0
votes
0 answers

Getting a flat name error when running python that imports PyICU

I am trying to run a python program that uses pyicu module on a virtual environment. After calling pip install pyicu and successfully downloading the 2.10.2 version, I am getting an error in the __init__.py folder: class ICUError(Exception): …
Carla
  • 1
0
votes
1 answer

Installing PyICU on continuumio/miniconda3:4.9.2 image

Unfortunately when using the Docker base: continuumio/miniconda3:4.9.2 from https://hub.docker.com/r/continuumio/miniconda3 and running: pip install PyICU==2.4.2 I get this error: ------ …
0
votes
1 answer

Unable to install polyglot on macOS High Sierra 10.13.6

I tried installing through pip install polyglot and got following error: Collecting polyglot Using cached https://files.pythonhosted.org/packages/e7/98/e24e2489114c5112b083714277204d92d372f5bbe00d5507acf40370edb9/polyglot-16.7.4.tar.gz Requirement…
Daniel García Baena
  • 1,191
  • 4
  • 19
  • 33
0
votes
1 answer

could not find libicui18n.so.58 in ubuntu 16.04

I am trying to install pyicu in virtualenv pip install PyICU it installed but while trying to use its method, it through below error from icu import * Traceback (most recent call last): File "", line 1, in File…
Harish
  • 157
  • 2
  • 11
0
votes
2 answers

PyICU in python 3 error : ImportError: libicui18n.so.58

As I'm doing a project for non-english (Sinhala) language I need to sort the words in unicode. So I followed answer in this question and installed PyICU in a conda environment which I have already installed tensorflow and NLTK. Now in python…
Thidasa Pankaja
  • 930
  • 8
  • 25
  • 44
0
votes
1 answer

FileNotFoundError when trying to install PyICU

When I try to install PyICU I get the error message "FileNotFoundError: [WinError 2] The system cannot find the file specified" (in German below in the code). From other questions I have learned that I might have to do with my path. But since I am…
M. Kern
  • 3
  • 4
0
votes
1 answer

Installation of PyICU on Heroku

Anyone know how to install PyICU on Heroku? Here is what I tried so far: Created a heroku-buildpack-multi application. In .buildpacks https://github.com/ddollar/heroku-buildpack-apt https://github.com/heroku/heroku-buildpack-python.git In…
0
votes
2 answers

install PyICU under pypy

I want to install pyicu on pypy on Ubuntu linux, but this command returns the following error: cc -O2 -fPIC -Wimplicit -I/opt/pypy-2.0.2/include -c format.cpp -o build/temp.linux- x86_64-2.7/format.o -DPYICU_VER="1.5" cc1plus: attention : command…
1
2