question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Unicode characters in the path

See original GitHub issue
  • Node Version: latest
  • Platform: Windows 10
  • Compiler: visual studio
  • Module: better-sqlite3

I open issue in better-sqlite3, there says me it’s problem with gyp and "The relevant error line is The relevant error line is UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0x9c in position 15: ordinal not in range(128) "



Full error 
npm install better-sqlite3

> better-sqlite3@7.1.0 install E:\KrzyśBot\node_modules\better-sqlite3
> prebuild-install || npm run build-release

prebuild-install WARN install No prebuilt binaries found (target=12.16.3 runtime=node arch=x64 libc= platform=win32)

> better-sqlite3@7.1.0 build-release E:\KrzyśBot\node_modules\better-sqlite3
> node-gyp rebuild --release


E:\KrzyśBot\node_modules\better-sqlite3>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild --release )  else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild --release )
Traceback (most recent call last):
  File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\gyp_main.py", line 50, in <module>
    sys.exit(gyp.script_main())
  File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 554, in script_main
    return main(sys.argv[1:])
  File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 547, in main
    return gyp_main(args)
  File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 532, in gyp_main
    generator.GenerateOutput(flat_list, targets, data, params)
  File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\generator\msvs.py", line 2008, in GenerateOutput
    msvs_version)
  File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\generator\msvs.py", line 1843, in _CreateProjectObjects
    guid = _GetGuidOfProject(proj_path, spec)
  File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\generator\msvs.py", line 910, in _GetGuidOfProject
    guid = guid or MSVSNew.MakeGuid(proj_path)
  File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\MSVSNew.py", line 48, in MakeGuid
    d = hashlib.md5((str(seed) + str(name)).encode('utf-8')).hexdigest().upper()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x9c in position 15: ordinal not in range(128)
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:351:16)
gyp ERR! stack     at ChildProcess.emit (events.js:310:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Windows_NT 10.0.18363
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--release"
gyp ERR! cwd E:\KrzyśBot\node_modules\better-sqlite3
gyp ERR! node -v v12.16.3
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! better-sqlite3@7.1.0 build-release: `node-gyp rebuild --release`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the better-sqlite3@7.1.0 build-release script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\skiue\AppData\Roaming\npm-cache\_logs\2020-06-17T19_17_04_971Z-debug.log
npm WARN rollback Rolling back readable-stream@3.6.0 failed (this is probably harmless): EPERM: operation not permitted, lstat 'E:\KrzyśBot\node_modules\bl\node_modules'
npm WARN HarborTest@1.0.0 No repository field.
npm WARN HarborTest@1.0.0 No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! better-sqlite3@7.1.0 install: `prebuild-install || npm run build-release`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the better-sqlite3@7.1.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\skiue\AppData\Roaming\npm-cache\_logs\2020-06-17T19_17_05_309Z-debug.log

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

9reactions
bzozcommented, Jun 18, 2020

Sorry, non-ascii chars in the path are not supported. Try maybe “KrzysiekBot” for the path 😃

2reactions
cclausscommented, Jun 18, 2020

KrzyśBot is the problem … Unicode (not ascii) in the path.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python 3.10 - Existing Path With Unicode Characters
The error itself is unexpected as I am using absolute paths and the script works for 6 other directories before it fails on...
Read more >
How can I use unicode characters in the path to an FGDB
I am attempting to use the RasterToGeodatabase_conversion to store rasters in a raster catalog stored in the File Geodatabase.
Read more >
Nginx Unicode characters in local folder path = 500 "Internal ...
If I try to browse to a folder or file with any of those characters the server will respond with a 500 error....
Read more >
I cannot install CCS since the path contains bad Unicode ...
Hi everyones,. I receive the error at the first installation step: "Your temp directory pah contains Unicode Characters which can corrupt the ...
Read more >
RStudio can't deal with file names with unicode characters
I've suddenly started having a problem in RStudio when I've got file/folder names that contain unicode characters.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found