You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unable to run cookiecutter to generate dash-component-boilerplate #108
I'm sorry you encountered this error @jv1522; I was able to use cookiecutter locally, though I'm not currently using Windows on my workstation. Could you share the output of cookiecutter --version so we have a little more information?
Are you using git bash? I see a similar error was reported by another Windows user of cookiecutter here: cookiecutter/cookiecutter#1394.
Executing: npm install --ignore-scripts
npm WARN deprecated topo@3.0.3: This module has moved and is now available at @hapi/topo. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated hoek@6.1.3: This module has moved and is now available at @hapi/hoek. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
npm WARN deprecated joi@14.3.1: This module has moved and is now available at @hapi/joi. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
added 966 packages, and audited 967 packages in 2m
70 packages are looking for funding
run `npm fund` for details
16 vulnerabilities (12 moderate, 4 high)
To address issues that do not require attention, run:
npm audit fix
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
Building initial bundles...
Executing: npm run build:js
> my_dash_component@0.0.1 build:js
> webpack --mode production
node:internal/crypto/hash:67
this[kHandle] = new _Hash(algorithm, xofLen);
^
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:67:19)
at Object.createHash (node:crypto:130:10)
at module.exports (C:\Users\gusta\dash-component-boilerplate\my_dash_component\node_modules\webpack\lib\util\createHash.js:135:53)
at NormalModule._initBuildHash (C:\Users\gusta\dash-component-boilerplate\my_dash_component\node_modules\webpack\lib\NormalModule.js:401:16)
at handleParseError (C:\Users\gusta\dash-component-boilerplate\my_dash_component\node_modules\webpack\lib\NormalModule.js:452:10)
at C:\Users\gusta\dash-component-boilerplate\my_dash_component\node_modules\webpack\lib\NormalModule.js:484:5
at C:\Users\gusta\dash-component-boilerplate\my_dash_component\node_modules\webpack\lib\NormalModule.js:343:12
at C:\Users\gusta\dash-component-boilerplate\my_dash_component\node_modules\loader-runner\lib\LoaderRunner.js:373:3
at iterateNormalLoaders (C:\Users\gusta\dash-component-boilerplate\my_dash_component\node_modules\loader-runner\lib\LoaderRunner.js:214:10)
at iterateNormalLoaders (C:\Users\gusta\dash-component-boilerplate\my_dash_component\node_modules\loader-runner\lib\LoaderRunner.js:221:10)
at C:\Users\gusta\dash-component-boilerplate\my_dash_component\node_modules\loader-runner\lib\LoaderRunner.js:236:3
at context.callback (C:\Users\gusta\dash-component-boilerplate\my_dash_component\node_modules\loader-runner\lib\LoaderRunner.js:111:13)
at C:\Users\gusta\dash-component-boilerplate\my_dash_component\node_modules\babel-loader\lib\index.js:59:71 {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
Node.js v17.3.0
post_gen_project command failed: npm run build:js
ERROR: Stopping generation because post_gen_project hook script didn't exit successfully
Hook script failed (exit status: 1)
I am having the same issue:
WSL 2 with ubuntu
Node 18.1.0
npm 8.8.0
python 3.10.4
project_name [my dash component]: crystal_visualizer
project_shortname [crystal_visualizer]:
component_name [CrystalVisualizer]:
jl_prefix []:
r_prefix []:
author_name [Enter your first and last name (For package.json)]: brandon
author_email [Enter your email (For package.json)]: btam@nanoacdemic.com
github_org []:
description [Project Description]:
Select use_async:
1 - False
2 - True
Choose from 1, 2 [1]:
Select license:
1 - MIT License
2 - BSD License
3 - ISC License
4 - Apache Software License 2.0
5 - GNU General Public License v3
6 - Not open source
Choose from 1, 2, 3, 4, 5, 6 [1]: 6
publish_on_npm [True]: False
install_dependencies [True]:
use_async
False
use_async is set to False, your component will not be lazy loaded and fragments will not be created.
Executing: virtualenv venv
created virtual environment CPython3.10.4.final.0-64 in 402ms
creator CPython3Posix(dest=/home/brandon/nano-academic-wsl/es_app/crystal_visualizer/venv, clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/brandon/.local/share/virtualenv)
added seed packages: pip==22.1.2, setuptools==62.2.0, wheel==0.37.1
activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
Installing dependencies
Executing: venv/bin/python -m pip install -r requirements.txt
Collecting dash[dev]>=1.15.0
Using cached dash-2.5.0-py3-none-any.whl (9.8 MB)
Collecting dash-table==5.0.0
Using cached dash_table-5.0.0-py3-none-any.whl (3.9 kB)
Collecting Flask>=1.0.4
Using cached Flask-2.1.2-py3-none-any.whl (95 kB)
Collecting dash-html-components==2.0.0
Using cached dash_html_components-2.0.0-py3-none-any.whl (4.1 kB)
Collecting dash-core-components==2.0.0
Using cached dash_core_components-2.0.0-py3-none-any.whl (3.8 kB)
Collecting flask-compress
Using cached Flask_Compress-1.12-py3-none-any.whl (7.9 kB)
Collecting plotly>=5.0.0
Downloading plotly-5.8.2-py2.py3-none-any.whl (15.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 15.2/15.2 MB 22.7 MB/s eta 0:00:00
Collecting fire>=0.4.0
Using cached fire-0.4.0-py2.py3-none-any.whl
Collecting coloredlogs>=15.0.1
Using cached coloredlogs-15.0.1-py2.py3-none-any.whl (46 kB)
Collecting PyYAML>=5.4.1
Using cached PyYAML-6.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (682 kB)
Collecting humanfriendly>=9.1
Using cached humanfriendly-10.0-py2.py3-none-any.whl (86 kB)
Collecting six
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting termcolor
Using cached termcolor-1.1.0-py3-none-any.whl
Collecting itsdangerous>=2.0
Using cached itsdangerous-2.1.2-py3-none-any.whl (15 kB)
Collecting click>=8.0
Using cached click-8.1.3-py3-none-any.whl (96 kB)
Collecting Werkzeug>=2.0
Using cached Werkzeug-2.1.2-py3-none-any.whl (224 kB)
Collecting Jinja2>=3.0
Using cached Jinja2-3.1.2-py3-none-any.whl (133 kB)
Collecting tenacity>=6.2.0
Using cached tenacity-8.0.1-py3-none-any.whl (24 kB)
Collecting brotli
Using cached Brotli-1.0.9-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (2.7 MB)
Collecting MarkupSafe>=2.0
Using cached MarkupSafe-2.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (25 kB)
Installing collected packages: termcolor, dash-table, dash-html-components, dash-core-components, brotli, Werkzeug, tenacity, six, PyYAML, MarkupSafe, itsdangerous, humanfriendly, click, plotly, Jinja2, fire, coloredlogs, Flask, flask-compress, dash
Successfully installed Flask-2.1.2 Jinja2-3.1.2 MarkupSafe-2.1.1 PyYAML-6.0 Werkzeug-2.1.2 brotli-1.0.9 click-8.1.3 coloredlogs-15.0.1 dash-2.5.0 dash-core-components-2.0.0 dash-html-components-2.0.0 dash-table-5.0.0 fire-0.4.0 flask-compress-1.12 humanfriendly-10.0 itsdangerous-2.1.2 plotly-5.8.2 six-1.16.0 tenacity-8.0.1 termcolor-1.1.0
Executing: npm install --ignore-scripts
npm WARN deprecated topo@3.0.3: This module has moved and is now available at @hapi/topo. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated hoek@6.1.3: This module has moved and is now available at @hapi/hoek. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
npm WARN deprecated joi@14.3.1: This module has moved and is now available at @hapi/joi. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
added 971 packages, and audited 972 packages in 35s
74 packages are looking for funding
run `npm fund` for details
4 high severity vulnerabilities
To address all issues, run:
npm audit fix
Run `npm audit` for details.
Building initial bundles...
Executing: npm run build:js
> crystal_visualizer@0.0.1 build:js
> webpack --mode production
node:internal/crypto/hash:67
this[kHandle] = new _Hash(algorithm, xofLen);
^
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:67:19)
at Object.createHash (node:crypto:133:10)
at module.exports (/home/brandon/nano-academic-wsl/es_app/crystal_visualizer/node_modules/webpack/lib/util/createHash.js:135:53)
at NormalModule._initBuildHash (/home/brandon/nano-academic-wsl/es_app/crystal_visualizer/node_modules/webpack/lib/NormalModule.js:401:16)
at handleParseError (/home/brandon/nano-academic-wsl/es_app/crystal_visualizer/node_modules/webpack/lib/NormalModule.js:452:10)
at /home/brandon/nano-academic-wsl/es_app/crystal_visualizer/node_modules/webpack/lib/NormalModule.js:484:5
at /home/brandon/nano-academic-wsl/es_app/crystal_visualizer/node_modules/webpack/lib/NormalModule.js:343:12
at /home/brandon/nano-academic-wsl/es_app/crystal_visualizer/node_modules/loader-runner/lib/LoaderRunner.js:373:3
at iterateNormalLoaders (/home/brandon/nano-academic-wsl/es_app/crystal_visualizer/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
at iterateNormalLoaders (/home/brandon/nano-academic-wsl/es_app/crystal_visualizer/node_modules/loader-runner/lib/LoaderRunner.js:221:10)
at /home/brandon/nano-academic-wsl/es_app/crystal_visualizer/node_modules/loader-runner/lib/LoaderRunner.js:236:3
at context.callback (/home/brandon/nano-academic-wsl/es_app/crystal_visualizer/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
at /home/brandon/nano-academic-wsl/es_app/crystal_visualizer/node_modules/babel-loader/lib/index.js:59:71 {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
Node.js v18.1.0
post_gen_project command failed: npm run build:js
ERROR: Stopping generation because post_gen_project hook script didn't exit successfully
Hook script failed (exit status: 1)
The current release breaks on any system using Node > 16 because of a dependency on the version of 'webpack' used by the 'cookiecutter' script was broken by a transition in Node 17 to using OpenSSL 3 and right now it causes the template creation process to fail without a great explanation.
More importantly, anyone following the README instructions and uses the current Node LTS (18) (which the README links to) will not be able to build this
Just chiming in to say, that I just ran into the same issue while trying to use cookiecutter to set up my project. Has anyone managed to figure it out yet?
Activity
rpkyle commentedon Dec 1, 2020
I'm sorry you encountered this error @jv1522; I was able to use
cookiecutterlocally, though I'm not currently using Windows on my workstation. Could you share the output ofcookiecutter --versionso we have a little more information?Are you using
git bash? I see a similar error was reported by another Windows user ofcookiecutterhere: cookiecutter/cookiecutter#1394.xhluca commentedon Jan 25, 2021
I tried running this with:
I ran the cookiecutter:
And didn't notice this problem. Here's the output I got:
GusFurtado commentedon Mar 12, 2022
I'm facing the same error.
Brandontam29 commentedon Jun 10, 2022
I am having the same issue:
WSL 2 with ubuntu
Node 18.1.0
npm 8.8.0
python 3.10.4
dmeinrath commentedon Nov 28, 2022
Is there an update on this issue?
The current release breaks on any system using Node > 16 because of a dependency on the version of 'webpack' used by the 'cookiecutter' script was broken by a transition in Node 17 to using OpenSSL 3 and right now it causes the template creation process to fail without a great explanation.
More importantly, anyone following the README instructions and uses the current Node LTS (18) (which the README links to) will not be able to build this
chibi-dogs commentedon Jan 30, 2023
Just chiming in to say, that I just ran into the same issue while trying to use cookiecutter to set up my project. Has anyone managed to figure it out yet?
borisdiakur commentedon Feb 7, 2023
Here is a workaround:
On Windows you'll have to use
set NODE_OPTIONS=--openssl-legacy-provider ....apivan2 commentedon Apr 28, 2023
Thanks @borisdiakur
Add PowerShell:
$env:NODE_OPTIONS="--openssl-legacy-provider"; cookiecutter https://github.com/plotly/dash-component-boilerplate.git