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

Fail to install #1

Open
artyprog opened this issue Jul 17, 2018 · 5 comments
Open

Fail to install #1

artyprog opened this issue Jul 17, 2018 · 5 comments

Comments

@artyprog
Copy link

Hello,

Thanks for Javascripthon

I got the following error on install

c:\EXP\jspy>npm install --save-dev javascripthon-loader
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue

[email protected] postinstall c:\EXP\jspy\node_modules\javascripthon-loader
virtualenv-postinstall

Finding virtualenv *
(node:16988) [DEP0025] DeprecationWarning: sys is deprecated. Use util instead.
Downloading https://files.pythonhosted.org/packages/33/bc/fa0b5347139cd9564f0d44ebd2b147ac97c36b2403943dbee8a25fd74012/virtualenv-16.0.0.tar.gz
Unzipping https://files.pythonhosted.org/packages/33/bc/fa0b5347139cd9564f0d44ebd2b147ac97c36b2403943dbee8a25fd74012/virtualenv-16.0.0.tar.gz
Creating c:\EXP\jspy\node_modules\javascripthon-loader.node-virtualenv
Cleaning c:/EXP/jspy/node_modules/javascripthon-loader/.node-virtualenv/.node-virtualenv-sources
events.js:183
throw er; // Unhandled 'error' event
^

Error: spawn python3 ENOENT
at _errnoException (util.js:992:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
at onErrorNT (internal/child_process.js:372:16)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
npm WARN [email protected] No description
npm WARN [email protected] No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: virtualenv-postinstall
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall 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:\xxx\sxxxx\AppData\Roaming\npm-cache_logs\2018-07-17T06_13_36_886Z-debug.log

@chfw
Copy link

chfw commented Jul 17, 2018

do you have python3 installed?

@artyprog
Copy link
Author

Yes,
I have just install it on Linux and the innstall is OK
Bur I can't transpile python files

Here is my webpack config

var path = require('path')
var HtmlWebPackPlugin = require('html-webpack-plugin')

module.exports = {
entry: './src/app.js',
output: {
filename: 'application.js',
path: path.resolve(__dirname, 'dist')
},
module: {
rules: [
{
test: /.css$/,
use: ['style-loader', 'css-loader']
},
{
test: /.py$/,
loader: 'javascripthon-loader'
}
]
},
plugins: [new HtmlWebPackPlugin ({ template: 'src/index.html'})]
}

@artyprog
Copy link
Author

backslash have been removed...

@artyprog
Copy link
Author

and my package.json

{
"name": "jypy",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo "Error: no test specified" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"css-loader": "^1.0.0",
"html-webpack-plugin": "^3.2.0",
"javascripthon-loader": "^0.1.1",
"style-loader": "^0.21.0",
"webpack": "^4.16.1"
},
"dependencies": {
"parcel": "^1.9.7",
"webpack-cli": "^3.0.8"
}
}

@chfw
Copy link

chfw commented Jul 17, 2018

have you gotten virtualenv installed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants