Comments (6)
were do we use python?
from infiniboard.
The answer is node-gyp:
Put a python 3+ in your CLASSPATH, run npm and find out...: running npm install
with python 3.5.1 in PATH gives the following errors while python 2.7.11 works fine, since
> [email protected] install D:\Projekte\infiniboard\reflectoring\infiniboard\infiniboard-app\node_modules\bufferutil
> node-gyp rebuild
D:\Projekte\infiniboard\reflectoring\infiniboard\infiniboard-app\node_modules\bufferutil>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Python executable "C:\Program Files\Python 3.5\python.EXE" is v3.5.1, which is not supported by gyp.
gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0.
gyp ERR! stack at failPythonVersion (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:406:14)
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:395:9
gyp ERR! stack at ChildProcess.exithandler (child_process.js:193:7)
gyp ERR! stack at emitTwo (events.js:100:13)
gyp ERR! stack at ChildProcess.emit (events.js:185:7)
gyp ERR! stack at maybeClose (internal/child_process.js:827:16)
gyp ERR! stack at Socket.<anonymous> (internal/child_process.js:319:11)
gyp ERR! stack at emitOne (events.js:90:13)
gyp ERR! stack at Socket.emit (events.js:182:7)
gyp ERR! stack at Pipe._onclose (net.js:475:12)
gyp ERR! System Windows_NT 10.0.10586
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"
gyp ERR! cwd D:\Projekte\infiniboard\reflectoring\infiniboard\infiniboard-app\node_modules\bufferutil
gyp ERR! node -v v5.7.0
gyp ERR! node-gyp -v v3.2.1
gyp ERR! not ok
npm WARN install:[email protected] [email protected] install: `node-gyp rebuild`
npm WARN install:[email protected] Exit status 1
> [email protected] install D:\Projekte\infiniboard\reflectoring\infiniboard\infiniboard-app\node_modules\utf-8-validate
> node-gyp rebuild
D:\Projekte\infiniboard\reflectoring\infiniboard\infiniboard-app\node_modules\utf-8-validate>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Python executable "C:\Program Files\Python 3.5\python.EXE" is v3.5.1, which is not supported by gyp.
gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0.
gyp ERR! stack at failPythonVersion (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:406:14)
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:395:9
gyp ERR! stack at ChildProcess.exithandler (child_process.js:193:7)
gyp ERR! stack at emitTwo (events.js:100:13)
gyp ERR! stack at ChildProcess.emit (events.js:185:7)
gyp ERR! stack at maybeClose (internal/child_process.js:827:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
gyp ERR! System Windows_NT 10.0.10586
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"
gyp ERR! cwd D:\Projekte\infiniboard\reflectoring\infiniboard\infiniboard-app\node_modules\utf-8-validate
gyp ERR! node -v v5.7.0
gyp ERR! node-gyp -v v3.2.1
gyp ERR! not ok
npm WARN install:[email protected] [email protected] install: `node-gyp rebuild`
npm WARN install:[email protected] Exit status 1
from infiniboard.
ATM we don't use building native packages using node-gyp. So python 2.7 and others are not needed.
More infos: https://www.npmjs.com/package/node-gyp
from infiniboard.
You told me so. Question is, can users silently ignore the errors irrespectively if they have a python in their PATHs, and with whatever version?
from infiniboard.
Actually that's a good question. If the user happens to have all packages to build with node-gyp the build differs. I don't how locally build packages affect our build.
@acetous do you have any experience with node-gyp?
from infiniboard.
As far as I know our build system circle.ci builds node modules with node-gyp
so we should have a fair chance of detecting problems regarding this difference.
from infiniboard.
Related Issues (20)
- CVE-2018-1273 High Severity Vulnerability detected by WhiteSource
- CVE-2018-1274 High Severity Vulnerability detected by WhiteSource
- CVE-2017-16028 Medium Severity Vulnerability detected by WhiteSource
- CVE-2018-19839 Medium Severity Vulnerability detected by WhiteSource
- CVE-2018-11499 High Severity Vulnerability detected by WhiteSource
- CVE-2018-11693 High Severity Vulnerability detected by WhiteSource
- CVE-2018-11694 High Severity Vulnerability detected by WhiteSource
- switch build pipeline to GitLab CI
- add dashboard slug
- CVE-2018-11307 (Medium) detected in jackson-databind-2.8.9.jar
- CVE-2018-12022 (High) detected in jackson-databind-2.8.9.jar
- CVE-2018-14718 (High) detected in jackson-databind-2.8.9.jar
- CVE-2018-14721 (High) detected in jackson-databind-2.8.9.jar
- CVE-2018-20821 (Medium) detected in node-sass-v4.11.0
- CVE-2018-15756 (High) detected in spring-web-4.3.10.RELEASE.jar
- CVE-2018-8034 (High) detected in tomcat-embed-websocket-8.5.16.jar
- CVE-2019-0199 (High) detected in tomcat-embed-core-8.5.16.jar
- CVE-2019-5427 (High) detected in c3p0-0.9.1.1.jar
- update to spring boot 2
- add general Widget HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from infiniboard.