Open mcharytoniuk opened 9 years ago
try to read file /usr/share/unicode/UnicodeData.txt … /usr/share/unicode/UnicodeData.txt not found. try to read file /usr/share/unicode-data/UnicodeData.txt … /usr/share/unicode-data/UnicodeData.txt not found. try to read file UnicodeData.txt … UnicodeData.txt not found. try to download … GET unicode.org:80/Public/UNIDATA/UnicodeData.txt request timed out.
mac pro os x node install.js not work
same thing again could you do something with this?
curl -vvv -s -i 'http://unicode.org:80/Public/UNIDATA/UnicodeData.txt'
* About to connect() to unicode.org port 80 (#0)
* Trying 216.97.88.9... Connection timed out
* couldn't connect to host
* Closing connection #0
Why not bundle the file with the lib? This is really annoying..
update the install.js by replacing this code :
unicodedatafile = { host: "unicode.org",
By this code : unicodedatafile = { host: "http://unicode.org",
Finally, how to solve the questions on MacOs?
I've started hitting this timeout issue a lot on a Travis build:
> unicode@0.6.1 postinstall /home/travis/build/guyellis/plant/node_modules/unicode
> node install.js
try to read file /usr/share/unicode/UnicodeData.txt …
/usr/share/unicode/UnicodeData.txt not found.
try to read file /usr/share/unicode-data/UnicodeData.txt …
/usr/share/unicode-data/UnicodeData.txt not found.
try to read file UnicodeData.txt …
UnicodeData.txt not found.
try to download …
GET unicode.org:80/Public/UNIDATA/UnicodeData.txt
request timed out.
Any ideas why Travis would be timing out?
I doubt that it is limited to your Travis environment. When it happens, try getting the file in your web browser. The file is simply not reliably available at that location.
You have two option:
^ cause above is your host being blacklisted for excess downloads, see #16
I am not the package maintainer but I'll leave this info here because it may be useful:
The other way to overcome
UnicodeTable.txt
download problems under corporate networks, weird proxies, etc is to download everyting manually and distribute "unicode" under "bundledDependencies" in package.json:Then just place
unicode
package with downloadedUnicodeTable.txt
and generatedcategory
dir under your project'snode_modules
and keep it versioned (actuallypackage.json
file andcategory
directory is enough forunicode
to work).I hope it helps someone. I think it can be also mentioned in a README.