node-mapnik icon indicating copy to clipboard operation
node-mapnik copied to clipboard

Could not initialize ICU resources for expression

Open BHare1985 opened this issue 8 years ago • 1 comments

Windows 10 NodeJS 4.5.0 node-mapnik 3.5.13

When trying to process my regular expressions in styling mapnik crashes:

Trace: [Error: Could not initialize ICU resources for expression: "([Highlighted] = 1) and ([StyleIndex].match('\d20')) and ([StyleIndex].match('5\d\d'))" in style 'defaultLayer-shape' in Style]

This occurred when I reinstalled my modules (which i havent done in a year), so I have a lot of work ahead of me of tracking down where the bug is coming from. Just wanted to see if anyone has some direction on what could caused this?

I already tried installing C++ 2010 Redistributables (x86 and x64) as per https://github.com/mapnik/mapnik/issues/3508

Code worked without issue last year. Microsoft redistributables: https://i.imgur.com/AgrwyDl.png

Same code works fine on Windows Server 2012 with these installed programs: https://i.imgur.com/pL9BHha.png

Same code also works fine on Amazon AWS Node Beanstalk (Linux)

BHare1985 avatar Oct 24 '18 20:10 BHare1985

How did you solve this? We're trying to run node-mapnik on Windows Server 2022 and getting this error: Trace: [Error: Could not initialize ICU resources for expression: "([StyleIndex].match('2\d\d'))" in style 'defaultLayer-end' in Style]

We tried installing the same programs and redistributables as you and also installed full-icu but still get that error.

pam-ms2soft avatar Sep 20 '23 03:09 pam-ms2soft