Error with: pip3 install .
See original GitHub issueThis is entire error code 👍
ERROR: Command errored out with exit status 1: command: 'c:\users\wolvi\.conda\envs\cd-jl-1.0\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\wolvi\\AppData\\Local\\Temp\\pip-req-build-2p204ejw\\setup.py'"'"'; __file__='"'"'C:\\Users\\wolvi\\AppData\\Local\\Temp\\pip-req-build-2p204ejw\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info cwd: C:\Users\wolvi\AppData\Local\Temp\pip-req-build-2p204ejw\ Complete output (113 lines): setup.py entered $PATH=c:\users\wolvi\.conda\envs\cd-jl-1.0\Library\bin;C:\Users\wolvi\.conda\envs\cd-jl-1.0;C:\Users\wolvi\.conda\envs\cd-jl-1.0\Library\mingw-w64\bin;C:\Users\wolvi\.conda\envs\cd-jl-1.0\Library\usr\bin;C:\Users\wolvi\.conda\envs\cd-jl-1.0\Library\bin;C:\Users\wolvi\.conda\envs\cd-jl-1.0\Scripts;C:\Users\wolvi\.conda\envs\cd-jl-1.0\bin;C:\ProgramData\Anaconda3\condabin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\libnvvp;C:\ProgramData\Anaconda3;C:\ProgramData\Anaconda3\Library\mingw-w64\bin;C:\ProgramData\Anaconda3\Library\usr\bin;C:\ProgramData\Anaconda3\Library\bin;C:\ProgramData\Anaconda3\Scripts;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\MATLAB\R2018b\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v711\runtime\win32;C:\Program Files\SlikSvn\bin;C:\Program Files\Git\cmd;C:\Program Files\CMake\bin;C:\Program Files\NVIDIA Corporation\Nsight Compute 2019.3.0;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\Blender Foundation\Blender;C:\Program Files\Blender Foundation\Blender\2.80;C:\Program Files\Blender Foundation\Blender\2.80\python\lib;C:\Users\wolvi\AppData\Local\Programs\Python\Python37\Scripts;C:\Users\wolvi\AppData\Local\Programs\Python\Python37;C:\Tcl\bin;C:\Users\wolvi\AppData\Local\Microsoft\WindowsApps;.;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\libnvvp;C:\ProgramData\Anaconda3;C:\ProgramData\Anaconda3\Library\mingw-w64\bin;C:\ProgramData\Anaconda3\Library\usr\bin;C:\ProgramData\Anaconda3\Library\bin;C:\ProgramData\Anaconda3\Scripts;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\MATLAB\R2018b\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v711\runtime\win32;C:\Program Files\SlikSvn\bin;C:\Program Files\Git\cmd;C:\Program Files\CMake\bin;C:\Program Files\NVIDIA Corporation\Nsight Compute 2019.3.0;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\Blender Foundation\Blender;C:\Program Files\Blender Foundation\Blender\2.80;C:\Program Files\Blender Foundation\Blender\2.80\python\lib;. running egg_info running jsdeps 6.7.0 6.7.0 Installing build dependencies with npm. This may take a while... npm WARN prepublish-on-install As of npm@5,
prepublishscripts are deprecated. npm WARN prepublish-on-install Use
preparefor build steps and
prepublishOnlyfor upload-only. npm WARN prepublish-on-install See the deprecation note in
npm help scripts` for more information.
> jupyter_cadquery@0.9.1 prepublish C:\Users\wolvi\AppData\Local\Temp\pip-req-build-2p204ejw\js
> webpack
Hash: ecd4dbb11fa791d6081122e280df66799edb341cb37887592548f5420ba7
Version: webpack 4.39.1
Child
Hash: ecd4dbb11fa791d60811
Time: 1082ms
Built at: 2019-08-09 09:43:02
Asset Size Chunks Chunk Names
extension.js 1.19 KiB 0 [emitted] main
Entrypoint main = extension.js
[0] ./lib/extension.js 1.42 KiB {0} [built]
WARNING in configuration
The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment.
You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/configuration/mode/
Child
Hash: 22e280df66799edb341c
Time: 3798ms
Built at: 2019-08-09 09:43:04
2 assets
Entrypoint main = index.js index.js.map
[1] ./lib/index.js 895 bytes {0} [built]
[2] ./lib/image_button.js 1.93 KiB {0} [built]
[3] (webpack)/buildin/global.js 472 bytes {0} [built]
[4] (webpack)/buildin/module.js 497 bytes {0} [built]
[5] ./lib/tree_view.js 8.51 KiB {0} [built]
[6] ./style/index.css 1.06 KiB {0} [built]
[7] ./node_modules/css-loader/dist/cjs.js!./style/index.css 3.13 KiB {0} [built]
[11] ./package.json 983 bytes {0} [built]
+ 4 hidden modules
WARNING in configuration
The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment.
You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/configuration/mode/
ERROR in ./lib/tree_view.js
Module not found: Error: Can't resolve '@jupyter-widgets/controls' in 'C:\Users\wolvi\AppData\Local\Temp\pip-req-build-2p204ejw\js\lib'
@ ./lib/tree_view.js 15:0-76 50:16-30 51:19-33 67:15-30 69:4-19
@ ./lib/index.js
ERROR in ./lib/image_button.js
Module not found: Error: Can't resolve '@jupyter-widgets/controls' in 'C:\Users\wolvi\AppData\Local\Temp\pip-req-build-2p204ejw\js\lib'
@ ./lib/image_button.js 16:0-19:35 27:23-34 28:19-30 41:22-32
@ ./lib/index.js
Child
Hash: b37887592548f5420ba7
Time: 3502ms
Built at: 2019-08-09 09:43:04
2 assets
Entrypoint main = index.js index.js.map
[1] ./lib/embed.js 1.04 KiB {0} [built]
[2] ./lib/image_button.js 1.93 KiB {0} [built]
[3] (webpack)/buildin/global.js 472 bytes {0} [built]
[4] (webpack)/buildin/module.js 497 bytes {0} [built]
[5] ./package.json 983 bytes {0} [built]
+ 1 hidden module
WARNING in configuration
The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment.
You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/configuration/mode/
ERROR in ./lib/image_button.js
Module not found: Error: Can't resolve '@jupyter-widgets/controls' in 'C:\Users\wolvi\AppData\Local\Temp\pip-req-build-2p204ejw\js\lib'
@ ./lib/image_button.js 16:0-19:35 27:23-34 28:19-30 41:22-32
@ ./lib/embed.js
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! jupyter_cadquery@0.9.1 prepublish: `webpack`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the jupyter_cadquery@0.9.1 prepublish 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\wolvi\AppData\Roaming\npm-cache\_logs\2019-08-09T07_43_04_923Z-debug.log
rebuilding js and css failed
missing files: ['C:\\Users\\wolvi\\AppData\\Local\\Temp\\pip-req-build-2p204ejw\\jupyter_cadquery\\static\\index.js']
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\wolvi\AppData\Local\Temp\pip-req-build-2p204ejw\setup.py", line 177, in <module>
setup(**setup_args)
File "c:\users\wolvi\.conda\envs\cd-jl-1.0\lib\site-packages\setuptools\__init__.py", line 145, in setup
return distutils.core.setup(**attrs)
File "c:\users\wolvi\.conda\envs\cd-jl-1.0\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "c:\users\wolvi\.conda\envs\cd-jl-1.0\lib\distutils\dist.py", line 955, in run_commands
self.run_command(cmd)
File "c:\users\wolvi\.conda\envs\cd-jl-1.0\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "C:\Users\wolvi\AppData\Local\Temp\pip-req-build-2p204ejw\setup.py", line 46, in run
raise e
File "C:\Users\wolvi\AppData\Local\Temp\pip-req-build-2p204ejw\setup.py", line 39, in run
self.distribution.run_command('jsdeps')
File "c:\users\wolvi\.conda\envs\cd-jl-1.0\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "C:\Users\wolvi\AppData\Local\Temp\pip-req-build-2p204ejw\setup.py", line 111, in run
check_call([npmName, 'install'], cwd=node_root, stdout=sys.stdout, stderr=sys.stderr)
File "c:\users\wolvi\.conda\envs\cd-jl-1.0\lib\subprocess.py", line 311, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['npm.cmd', 'install']' returned non-zero exit status 2.
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.`
My version of jupyterlab is 1.0 on windows 1.0 and python 3.7
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (5 by maintainers)
Top GitHub Comments
Now its solved. Ty.
Now i try tu use in jupyterlab. I try tu build a reinforced concrete frame. Stay Tuned.
no further activity, so I close the issue. Feel free to reopen in case of further questions