Repository navigation
Unable to create project #173
Copy link
Copy link
Open
Description
Hi all, I'm trying to initialize the cookiecutter project by following the main page's instructions, but I receive the error shown below.
- Node.JS version: v23.5.0
- npm version: 10.9.2
- Python version: 3.11
I'm not sure if it's the same issue raised in #148 in 2022, but the proposed solution of downgrading to node.js v14 is no longer possible as it's been deprecated.
Any help would be appreciated, thanks!
(dash playground) ➜ dash playground cookiecutter gh:plotly/dash-component-boilerplate
You've downloaded /Users/username/.cookiecutters/dash-component-boilerplate
before. Is it okay to delete and re-download it? [y/n] (y): y
[1/14] project_name (my dash component):
[2/14] project_shortname (my_dash_component):
[3/14] component_name (MyDashComponent):
[4/14] jl_prefix ():
[5/14] r_prefix ():
[6/14] author_name (Enter your first and last name (For package.json)): username
[7/14] author_email (Enter your email (For package.json)): username@gmail.com
[8/14] github_org ():
[9/14] description (Project Description):
[10/14] Select use_async
1 - False
2 - True
Choose from [1/2] (1):
[11/14] Select component_type
1 - Function Component
2 - Class Component
Choose from [1/2] (1):
[12/14] 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):
[13/14] publish_on_npm [y/n] (y): n
[14/14] install_dependencies [y/n] (y):
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.13.1.final.0-64 in 198ms
creator CPython3macOsBrew(dest=/Users/username/Repositories/playground/dash playground/my_dash_component/venv, clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, via=copy, app_data_dir=/Users/username/Library/Application Support/virtualenv)
added seed packages: pip==24.3.1
activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
Installing dependencies
Executing: venv/bin/python -m pip install -r requirements.txt
Collecting dash>=2.0.0 (from dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached dash-2.18.2-py3-none-any.whl.metadata (10 kB)
Collecting Flask<3.1,>=1.0.4 (from dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached flask-3.0.3-py3-none-any.whl.metadata (3.2 kB)
Collecting Werkzeug<3.1 (from dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached werkzeug-3.0.6-py3-none-any.whl.metadata (3.7 kB)
Collecting plotly>=5.0.0 (from dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached plotly-5.24.1-py3-none-any.whl.metadata (7.3 kB)
Collecting dash-html-components==2.0.0 (from dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached dash_html_components-2.0.0-py3-none-any.whl.metadata (3.8 kB)
Collecting dash-core-components==2.0.0 (from dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached dash_core_components-2.0.0-py3-none-any.whl.metadata (2.9 kB)
Collecting dash-table==5.0.0 (from dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached dash_table-5.0.0-py3-none-any.whl.metadata (2.4 kB)
Collecting importlib-metadata (from dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached importlib_metadata-8.5.0-py3-none-any.whl.metadata (4.8 kB)
Collecting typing-extensions>=4.1.1 (from dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached typing_extensions-4.12.2-py3-none-any.whl.metadata (3.0 kB)
Collecting requests (from dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached requests-2.32.3-py3-none-any.whl.metadata (4.6 kB)
Collecting retrying (from dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached retrying-1.3.4-py3-none-any.whl.metadata (6.9 kB)
Collecting nest-asyncio (from dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached nest_asyncio-1.6.0-py3-none-any.whl.metadata (2.8 kB)
Collecting setuptools (from dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached setuptools-75.6.0-py3-none-any.whl.metadata (6.7 kB)
Collecting coloredlogs>=15.0.1 (from dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached coloredlogs-15.0.1-py2.py3-none-any.whl.metadata (12 kB)
Collecting fire>=0.4.0 (from dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached fire-0.7.0-py3-none-any.whl
Collecting PyYAML>=5.4.1 (from dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached PyYAML-6.0.2-cp313-cp313-macosx_11_0_arm64.whl.metadata (2.1 kB)
Collecting humanfriendly>=9.1 (from coloredlogs>=15.0.1->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached humanfriendly-10.0-py2.py3-none-any.whl.metadata (9.2 kB)
Collecting termcolor (from fire>=0.4.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached termcolor-2.5.0-py3-none-any.whl.metadata (6.1 kB)
Collecting Jinja2>=3.1.2 (from Flask<3.1,>=1.0.4->dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached jinja2-3.1.5-py3-none-any.whl.metadata (2.6 kB)
Collecting itsdangerous>=2.1.2 (from Flask<3.1,>=1.0.4->dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached itsdangerous-2.2.0-py3-none-any.whl.metadata (1.9 kB)
Collecting click>=8.1.3 (from Flask<3.1,>=1.0.4->dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached click-8.1.8-py3-none-any.whl.metadata (2.3 kB)
Collecting blinker>=1.6.2 (from Flask<3.1,>=1.0.4->dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached blinker-1.9.0-py3-none-any.whl.metadata (1.6 kB)
Collecting tenacity>=6.2.0 (from plotly>=5.0.0->dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached tenacity-9.0.0-py3-none-any.whl.metadata (1.2 kB)
Collecting packaging (from plotly>=5.0.0->dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached packaging-24.2-py3-none-any.whl.metadata (3.2 kB)
Collecting MarkupSafe>=2.1.1 (from Werkzeug<3.1->dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached MarkupSafe-3.0.2-cp313-cp313-macosx_11_0_arm64.whl.metadata (4.0 kB)
Collecting zipp>=3.20 (from importlib-metadata->dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached zipp-3.21.0-py3-none-any.whl.metadata (3.7 kB)
Collecting charset-normalizer<4,>=2 (from requests->dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached charset_normalizer-3.4.1-cp313-cp313-macosx_10_13_universal2.whl.metadata (35 kB)
Collecting idna<4,>=2.5 (from requests->dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached idna-3.10-py3-none-any.whl.metadata (10 kB)
Collecting urllib3<3,>=1.21.1 (from requests->dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached urllib3-2.3.0-py3-none-any.whl.metadata (6.5 kB)
Collecting certifi>=2017.4.17 (from requests->dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached certifi-2024.12.14-py3-none-any.whl.metadata (2.3 kB)
Collecting six>=1.7.0 (from retrying->dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached six-1.17.0-py2.py3-none-any.whl.metadata (1.7 kB)
Using cached dash-2.18.2-py3-none-any.whl (7.8 MB)
Using cached dash_core_components-2.0.0-py3-none-any.whl (3.8 kB)
Using cached dash_html_components-2.0.0-py3-none-any.whl (4.1 kB)
Using cached dash_table-5.0.0-py3-none-any.whl (3.9 kB)
Using cached coloredlogs-15.0.1-py2.py3-none-any.whl (46 kB)
Using cached flask-3.0.3-py3-none-any.whl (101 kB)
Using cached plotly-5.24.1-py3-none-any.whl (19.1 MB)
Using cached PyYAML-6.0.2-cp313-cp313-macosx_11_0_arm64.whl (171 kB)
Using cached typing_extensions-4.12.2-py3-none-any.whl (37 kB)
Using cached werkzeug-3.0.6-py3-none-any.whl (227 kB)
Using cached importlib_metadata-8.5.0-py3-none-any.whl (26 kB)
Using cached nest_asyncio-1.6.0-py3-none-any.whl (5.2 kB)
Using cached requests-2.32.3-py3-none-any.whl (64 kB)
Using cached retrying-1.3.4-py3-none-any.whl (11 kB)
Using cached setuptools-75.6.0-py3-none-any.whl (1.2 MB)
Using cached blinker-1.9.0-py3-none-any.whl (8.5 kB)
Using cached certifi-2024.12.14-py3-none-any.whl (164 kB)
Using cached charset_normalizer-3.4.1-cp313-cp313-macosx_10_13_universal2.whl (195 kB)
Using cached click-8.1.8-py3-none-any.whl (98 kB)
Using cached humanfriendly-10.0-py2.py3-none-any.whl (86 kB)
Using cached idna-3.10-py3-none-any.whl (70 kB)
Using cached itsdangerous-2.2.0-py3-none-any.whl (16 kB)
Using cached jinja2-3.1.5-py3-none-any.whl (134 kB)
Using cached MarkupSafe-3.0.2-cp313-cp313-macosx_11_0_arm64.whl (12 kB)
Using cached six-1.17.0-py2.py3-none-any.whl (11 kB)
Using cached tenacity-9.0.0-py3-none-any.whl (28 kB)
Using cached urllib3-2.3.0-py3-none-any.whl (128 kB)
Using cached zipp-3.21.0-py3-none-any.whl (9.6 kB)
Using cached packaging-24.2-py3-none-any.whl (65 kB)
Using cached termcolor-2.5.0-py3-none-any.whl (7.8 kB)
Installing collected packages: dash-table, dash-html-components, dash-core-components, zipp, urllib3, typing-extensions, termcolor, tenacity, six, setuptools, PyYAML, packaging, nest-asyncio, MarkupSafe, itsdangerous, idna, humanfriendly, click, charset-normalizer, certifi, blinker, Werkzeug, retrying, requests, plotly, Jinja2, importlib-metadata, fire, coloredlogs, Flask, dash
Successfully installed Flask-3.0.3 Jinja2-3.1.5 MarkupSafe-3.0.2 PyYAML-6.0.2 Werkzeug-3.0.6 blinker-1.9.0 certifi-2024.12.14 charset-normalizer-3.4.1 click-8.1.8 coloredlogs-15.0.1 dash-2.18.2 dash-core-components-2.0.0 dash-html-components-2.0.0 dash-table-5.0.0 fire-0.7.0 humanfriendly-10.0 idna-3.10 importlib-metadata-8.5.0 itsdangerous-2.2.0 nest-asyncio-1.6.0 packaging-24.2 plotly-5.24.1 requests-2.32.3 retrying-1.3.4 setuptools-75.6.0 six-1.17.0 tenacity-9.0.0 termcolor-2.5.0 typing-extensions-4.12.2 urllib3-2.3.0 zipp-3.21.0
Executing: npm install --ignore-scripts
npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated rimraf@2.6.3: Rimraf versions prior to v4 are no longer supported
npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm warn deprecated @babel/plugin-proposal-object-rest-spread@7.20.7: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread 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 eslint@6.8.0: This version is no longer supported. Please see https://eslint.org/version-support for other options.
added 758 packages, and audited 759 packages in 5s
141 packages are looking for funding
run `npm fund` for details
2 vulnerabilities (1 high, 1 critical)
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
asset my_dash_component.min.js 1.54 KiB [emitted] [minimized] (name: main) 1 related asset
runtime modules 2.42 KiB 5 modules
orphan modules 1.7 KiB [orphan] 3 modules
./src/lib/index.js + 3 modules 1.84 KiB [not cacheable] [built] [code generated]
webpack 5.97.1 compiled successfully in 619 ms
Executing: venv/bin/python -m dash.development.component_generator ./src/lib/components my_dash_component -p package-info.json --jl-prefix '' --r-prefix ''
/Users/username/Repositories/playground/dash playground/my_dash_component/venv/lib/python3.13/site-packages/dash/development/component_generator.py:11: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
import pkg_resources
node:internal/modules/cjs/loader:1413
throw err;
^
Error: Cannot find module '/Users/username/Repositories/playground/dash'
at Function._resolveFilename (node:internal/modules/cjs/loader:1410:15)
at defaultResolveImpl (node:internal/modules/cjs/loader:1061:19)
at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1066:22)
at Function._load (node:internal/modules/cjs/loader:1215:37)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:234:24)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:151:5)
at node:internal/main/run_main_module:33:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v23.5.0
Error generating metadata in my_dash_component (status=1)
post_gen_project command failed: venv/bin/python -m dash.development.component_generator ./src/lib/components my_dash_component -p package-info.json --jl-prefix '' --r-prefix ''
ERROR: Stopping generation because post_gen_project hook script didn't exit successfully
Hook script failed (exit status: 1)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Activity
DylannChapmanZA commentedon Feb 18, 2025
(.env) \react-cloned-repo> set NODE_OPTIONS=--openssl-legacy-provider; cookiecutter https://github.com/plotly/dash-component-boilerplate.git
You've downloaded .cookiecutters\dash-component-boilerplate before. Is it okay to delete and re-download it? [y/n] (y): y
[1/14] project_name (my dash component): dash_react_test_component
[2/14] project_shortname (dash_react_test_component): test_comp
[3/14] component_name (TestComp): test_comp
[4/14] jl_prefix ():
[5/14] r_prefix ():
[6/14] author_name (Enter your first and last name (For package.json)):
[7/14] author_email (Enter your email (For package.json)):
[8/14] github_org ():
[9/14] description (Project Description): Creating my first Dash wrapped React component.
[10/14] Select use_async
1 - False
2 - True
Choose from [1/2] (1): 2
[11/14] Select component_type
1 - Function Component
2 - Class Component
Choose from [1/2] (1): 1
[12/14] 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
[13/14] publish_on_npm [y/n] (y): n
[14/14] install_dependencies [y/n] (y): y
use_async
True
Executing: virtualenv venv
created virtual environment CPython3.13.2.final.0-64 in 1103ms
creator CPython3Windows(dest=\react-cloned-repo\test_comp\venv, clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, via=copy, app_data_dir=\AppData\Local\pypa\virtualenv)
added seed packages: pip==25.0.1
activators BashActivator,BatchActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
Installing dependencies
Executing: venv\Scripts\python -m pip install -r requirements.txt
Collecting dash>=2.0.0 (from dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached dash-2.18.2-py3-none-any.whl.metadata (10 kB)
Collecting Flask<3.1,>=1.0.4 (from dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached flask-3.0.3-py3-none-any.whl.metadata (3.2 kB)
Collecting Werkzeug<3.1 (from dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached werkzeug-3.0.6-py3-none-any.whl.metadata (3.7 kB)
Collecting plotly>=5.0.0 (from dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached plotly-6.0.0-py3-none-any.whl.metadata (5.6 kB)
Collecting dash-html-components==2.0.0 (from dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached dash_html_components-2.0.0-py3-none-any.whl.metadata (3.8 kB)
Collecting dash-core-components==2.0.0 (from dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached dash_core_components-2.0.0-py3-none-any.whl.metadata (2.9 kB)
Collecting dash-table==5.0.0 (from dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached dash_table-5.0.0-py3-none-any.whl.metadata (2.4 kB)
Collecting importlib-metadata (from dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached importlib_metadata-8.6.1-py3-none-any.whl.metadata (4.7 kB)
Collecting typing-extensions>=4.1.1 (from dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached typing_extensions-4.12.2-py3-none-any.whl.metadata (3.0 kB)
Collecting requests (from dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached requests-2.32.3-py3-none-any.whl.metadata (4.6 kB)
Collecting retrying (from dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached retrying-1.3.4-py3-none-any.whl.metadata (6.9 kB)
Collecting nest-asyncio (from dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached nest_asyncio-1.6.0-py3-none-any.whl.metadata (2.8 kB)
Collecting setuptools (from dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached setuptools-75.8.0-py3-none-any.whl.metadata (6.7 kB)
Collecting coloredlogs>=15.0.1 (from dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached coloredlogs-15.0.1-py2.py3-none-any.whl.metadata (12 kB)
Collecting fire>=0.4.0 (from dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached fire-0.7.0-py3-none-any.whl
Collecting PyYAML>=5.4.1 (from dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached PyYAML-6.0.2-cp313-cp313-win_amd64.whl.metadata (2.1 kB)
Collecting humanfriendly>=9.1 (from coloredlogs>=15.0.1->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached humanfriendly-10.0-py2.py3-none-any.whl.metadata (9.2 kB)
Collecting termcolor (from fire>=0.4.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached termcolor-2.5.0-py3-none-any.whl.metadata (6.1 kB)
Collecting Jinja2>=3.1.2 (from Flask<3.1,>=1.0.4->dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached jinja2-3.1.5-py3-none-any.whl.metadata (2.6 kB)
Collecting itsdangerous>=2.1.2 (from Flask<3.1,>=1.0.4->dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached itsdangerous-2.2.0-py3-none-any.whl.metadata (1.9 kB)
Collecting click>=8.1.3 (from Flask<3.1,>=1.0.4->dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached click-8.1.8-py3-none-any.whl.metadata (2.3 kB)
Collecting blinker>=1.6.2 (from Flask<3.1,>=1.0.4->dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached blinker-1.9.0-py3-none-any.whl.metadata (1.6 kB)
Collecting narwhals>=1.15.1 (from plotly>=5.0.0->dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached narwhals-1.27.1-py3-none-any.whl.metadata (10 kB)
Collecting packaging (from plotly>=5.0.0->dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached packaging-24.2-py3-none-any.whl.metadata (3.2 kB)
Collecting MarkupSafe>=2.1.1 (from Werkzeug<3.1->dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached MarkupSafe-3.0.2-cp313-cp313-win_amd64.whl.metadata (4.1 kB)
Collecting zipp>=3.20 (from importlib-metadata->dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached zipp-3.21.0-py3-none-any.whl.metadata (3.7 kB)
Collecting charset-normalizer<4,>=2 (from requests->dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached charset_normalizer-3.4.1-cp313-cp313-win_amd64.whl.metadata (36 kB)
Collecting idna<4,>=2.5 (from requests->dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached idna-3.10-py3-none-any.whl.metadata (10 kB)
Collecting urllib3<3,>=1.21.1 (from requests->dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached urllib3-2.3.0-py3-none-any.whl.metadata (6.5 kB)
Collecting certifi>=2017.4.17 (from requests->dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached certifi-2025.1.31-py3-none-any.whl.metadata (2.5 kB)
Collecting six>=1.7.0 (from retrying->dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached six-1.17.0-py2.py3-none-any.whl.metadata (1.7 kB)
Collecting colorama (from click>=8.1.3->Flask<3.1,>=1.0.4->dash>=2.0.0->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached colorama-0.4.6-py2.py3-none-any.whl.metadata (17 kB)
Collecting pyreadline3 (from humanfriendly>=9.1->coloredlogs>=15.0.1->dash[dev]>=2.0.0->-r requirements.txt (line 2))
Using cached pyreadline3-3.5.4-py3-none-any.whl.metadata (4.7 kB)
Using cached dash-2.18.2-py3-none-any.whl (7.8 MB)
Using cached dash_core_components-2.0.0-py3-none-any.whl (3.8 kB)
Using cached dash_html_components-2.0.0-py3-none-any.whl (4.1 kB)
Using cached dash_table-5.0.0-py3-none-any.whl (3.9 kB)
Using cached coloredlogs-15.0.1-py2.py3-none-any.whl (46 kB)
Using cached flask-3.0.3-py3-none-any.whl (101 kB)
Using cached plotly-6.0.0-py3-none-any.whl (14.8 MB)
Using cached PyYAML-6.0.2-cp313-cp313-win_amd64.whl (156 kB)
Using cached typing_extensions-4.12.2-py3-none-any.whl (37 kB)
Using cached werkzeug-3.0.6-py3-none-any.whl (227 kB)
Using cached importlib_metadata-8.6.1-py3-none-any.whl (26 kB)
Using cached nest_asyncio-1.6.0-py3-none-any.whl (5.2 kB)
Using cached requests-2.32.3-py3-none-any.whl (64 kB)
Using cached retrying-1.3.4-py3-none-any.whl (11 kB)
Using cached setuptools-75.8.0-py3-none-any.whl (1.2 MB)
Using cached blinker-1.9.0-py3-none-any.whl (8.5 kB)
Using cached certifi-2025.1.31-py3-none-any.whl (166 kB)
Using cached charset_normalizer-3.4.1-cp313-cp313-win_amd64.whl (102 kB)
Using cached click-8.1.8-py3-none-any.whl (98 kB)
Using cached humanfriendly-10.0-py2.py3-none-any.whl (86 kB)
Using cached idna-3.10-py3-none-any.whl (70 kB)
Using cached itsdangerous-2.2.0-py3-none-any.whl (16 kB)
Using cached jinja2-3.1.5-py3-none-any.whl (134 kB)
Using cached MarkupSafe-3.0.2-cp313-cp313-win_amd64.whl (15 kB)
Using cached narwhals-1.27.1-py3-none-any.whl (308 kB)
Using cached six-1.17.0-py2.py3-none-any.whl (11 kB)
Using cached urllib3-2.3.0-py3-none-any.whl (128 kB)
Using cached zipp-3.21.0-py3-none-any.whl (9.6 kB)
Using cached packaging-24.2-py3-none-any.whl (65 kB)
Using cached termcolor-2.5.0-py3-none-any.whl (7.8 kB)
Using cached colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Using cached pyreadline3-3.5.4-py3-none-any.whl (83 kB)
Installing collected packages: dash-table, dash-html-components, dash-core-components, zipp, urllib3, typing-extensions, termcolor, six, setuptools, PyYAML, pyreadline3, packaging, nest-asyncio, narwhals, MarkupSafe, itsdangerous, idna, colorama, charset-normalizer, certifi, blinker, Werkzeug, retrying, requests, plotly, Jinja2, importlib-metadata, humanfriendly, fire, click, Flask, coloredlogs, dash
Successfully installed Flask-3.0.3 Jinja2-3.1.5 MarkupSafe-3.0.2 PyYAML-6.0.2 Werkzeug-3.0.6 blinker-1.9.0 certifi-2025.1.31 charset-normalizer-3.4.1 click-8.1.8 colorama-0.4.6 coloredlogs-15.0.1 dash-2.18.2 dash-core-components-2.0.0 dash-html-components-2.0.0 dash-table-5.0.0 fire-0.7.0 humanfriendly-10.0 idna-3.10 importlib-metadata-8.6.1 itsdangerous-2.2.0 narwhals-1.27.1 nest-asyncio-1.6.0 packaging-24.2 plotly-6.0.0 pyreadline3-3.5.4 requests-2.32.3 retrying-1.3.4 setuptools-75.8.0 six-1.17.0 termcolor-2.5.0 typing-extensions-4.12.2 urllib3-2.3.0 zipp-3.21.0
Executing: npm install --ignore-scripts
npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated rimraf@2.6.3: Rimraf versions prior to v4 are no longer supported
npm warn deprecated @babel/plugin-proposal-object-rest-spread@7.20.7: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead.
npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
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 eslint@6.8.0: This version is no longer supported. Please see https://eslint.org/version-support for other options.
added 761 packages, and audited 762 packages in 58s
144 packages are looking for funding
run
npm fundfor details2 vulnerabilities (1 high, 1 critical)
To address all issues (including breaking changes), run:
npm audit fix --force
Run
npm auditfor details.Building initial bundles...
Executing: npm run build:js
asset test_comp.min.js 3.8 KiB [emitted] [minimized] (name: main) 1 related asset
asset async-test_comp.js 548 bytes [emitted] [minimized] (name: async-test_comp) (id hint: async) 1 related asset
runtime modules 8.6 KiB 11 modules
orphan modules 1.3 KiB [orphan] 2 modules
built modules 3.11 KiB [built]
cacheable modules 3.03 KiB
./src/lib/index.js + 2 modules 1.42 KiB [built] [code generated]
./src/lib/fragments/test_comp.react.js 1.61 KiB [built] [code generated]
external "React" 42 bytes [built] [code generated]
external "PropTypes" 42 bytes [built] [code generated]
webpack 5.98.0 compiled successfully in 1201 ms
Executing: venv\Scripts\python -m dash.development.component_generator ./src/lib/components test_comp -p package-info.json --jl-prefix '' --r-prefix ''
\react-cloned-repo\test_comp\venv\Lib\site-packages\dash\development\component_generator.py:11: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
import pkg_resources
Error generating metadata in test_comp (status=0)
post_gen_project command failed: venv\Scripts\python -m dash.development.component_generator ./src/lib/components test_comp -p package-info.json --jl-prefix '' --r-prefix ''
Traceback (most recent call last):
File "\react-cloned-repo.env\Lib\site-packages\cookiecutter\hooks.py", line 157, in run_hook_from_repo_dir
run_hook(hook_name, project_dir, context)
~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "\react-cloned-repo.env\Lib\site-packages\cookiecutter\hooks.py", line 140, in run_hook
run_script_with_context(script, project_dir, context)
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "\react-cloned-repo.env\Lib\site-packages\cookiecutter\hooks.py", line 123, in run_script_with_context
run_script(temp.name, cwd)
~~~~~~~~~~^^^^^^^^^^^^^^^^
File "\react-cloned-repo.env\Lib\site-packages\cookiecutter\hooks.py", line 94, in run_script
raise FailedHookException(
f'Hook script failed (exit status: {exit_status})'
)
cookiecutter.exceptions.FailedHookException: Hook script failed (exit status: 1)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "\AppData\Local\Programs\Python\Python313\Lib\shutil.py", line 617, in _rmtree_unsafe
os.rmdir(fullname)
~~~~~~~~^^^^^^^^^^
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: '\react-cloned-repo\test_comp\node_modules\has-symbols'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "\react-cloned-repo.env\Scripts\cookiecutter.exe_main.py", line 7, in
sys.exit(main())
~~~~^^
File "\react-cloned-repo.env\Lib\site-packages\click\core.py", line 1161, in call
return self.main(*args, **kwargs)
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "\react-cloned-repo.env\Lib\site-packages\click\core.py", line 1082, in main
rv = self.invoke(ctx)
File "\react-cloned-repo.env\Lib\site-packages\click\core.py", line 1443, in invoke
return ctx.invoke(self.callback, **ctx.params)
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "\react-cloned-repo.env\Lib\site-packages\click\core.py", line 788, in invoke
return __callback(*args, **kwargs)
File "\react-cloned-repo.env\Lib\site-packages\cookiecutter\cli.py", line 203, in main
cookiecutter(
~~~~~~~~~~~~^
template,
^^^^^^^^^
...<12 lines>...
keep_project_on_failure=keep_project_on_failure,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "\react-cloned-repo.env\Lib\site-packages\cookiecutter\main.py", line 182, in cookiecutter
result = generate_files(
repo_dir=repo_dir,
...<5 lines>...
keep_project_on_failure=keep_project_on_failure,
)
File "\react-cloned-repo.env\Lib\site-packages\cookiecutter\generate.py", line 419, in generate_files
run_hook_from_repo_dir(
~~~~~~~~~~~~~~~~~~~~~~^
repo_dir,
^^^^^^^^^
...<3 lines>...
delete_project_on_failure,
^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "\react-cloned-repo.env\Lib\site-packages\cookiecutter\hooks.py", line 163, in run_hook_from_repo_dir
rmtree(project_dir)
~~~~~~^^^^^^^^^^^^^
File "\react-cloned-repo.env\Lib\site-packages\cookiecutter\utils.py", line 34, in rmtree
shutil.rmtree(path, onerror=force_delete)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "\AppData\Local\Programs\Python\Python313\Lib\shutil.py", line 790, in rmtree
return _rmtree_unsafe(path, onexc)
File "\AppData\Local\Programs\Python\Python313\Lib\shutil.py", line 621, in _rmtree_unsafe
onexc(os.rmdir, fullname, err)
~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
File "\AppData\Local\Programs\Python\Python313\Lib\shutil.py", line 754, in onexc
return onerror(func, path, exc_info)
File "\react-cloned-repo.env\Lib\site-packages\cookiecutter\utils.py", line 26, in force_delete
func(path)
~~~~^^^^^^
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: '\react-cloned-repo\test_comp\node_modules\has-symbols'
Hi I am getting this error when trying to create a repo from the cookiecutter template, can someone point me towards the correct solution because I am going round in circles trying to fix this.