Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to install with python 3.8.3 #93

Closed
ChristianBeier opened this issue Jan 19, 2021 · 4 comments
Closed

unable to install with python 3.8.3 #93

ChristianBeier opened this issue Jan 19, 2021 · 4 comments
Assignees
Labels
bug Something isn't working fixed in development branch The bug has been addressed in the development branch

Comments

@ChristianBeier
Copy link

ChristianBeier commented Jan 19, 2021

When I running npm install the build fails at
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Command failed: C:...\Programs\Python\Python38-32\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
npm ERR! gyp ERR! stack File "", line 1
npm ERR! gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
npm ERR! gyp ERR! stack ^
npm ERR! gyp ERR! stack SyntaxError: invalid syntax
npm ERR! gyp ERR! stack at ChildProcess.exithandler (node:child_process:333:12)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:376:20)
npm ERR! gyp ERR! stack at maybeClose (node:internal/child_process:1063:16)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:295:5)
npm ERR! gyp ERR! System Windows_NT 10.0.19042
npm ERR! gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\ADT\ADT_explorer\client\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
npm ERR! gyp ERR! cwd C:\ADT\ADT_explorer\client\node_modules\node-sass
npm ERR! gyp ERR! node -v v15.5.0 npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok
npm ERR! Build failed with error code: 1

Seems related to node-gyp v3.8.0 dependency of node-sass (<5) what supports only python2 (EOL)
sass/node-sass#3013
sass/node-sass#2877
Also interesting Libsaas and Node-Saas are deprecated. Not better to switch to sass as recommended?

@ChristianBeier
Copy link
Author

managed to run it with dart-saas https://github.com/sass/dart-sass/releases/tag/1.32.4

@ReneHezser
Copy link

Thanks for the pull request @ChristianBeier. I was stumbling across the same problem.

In the package.json change this:
"node-sass": "^4.14.1", --> "sass": "^1.32.4",

@jamescarpinter jamescarpinter self-assigned this Feb 1, 2021
@jamescarpinter jamescarpinter added the bug Something isn't working label Feb 1, 2021
@jamescarpinter
Copy link
Contributor

This fix is now in the development branch. Once we've finished our test pass, it'll be merged into master. Thanks!

@jamiewilbraham jamiewilbraham self-assigned this Mar 30, 2021
@jamiewilbraham jamiewilbraham added the fixed in development branch The bug has been addressed in the development branch label Mar 30, 2021
@jamiewilbraham
Copy link
Collaborator

Closing as the fix is now in the new default main branch here: https://github.com/Azure-Samples/digital-twins-explorer

Thanks again for reporting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed in development branch The bug has been addressed in the development branch
Projects
None yet
Development

No branches or pull requests

4 participants