Error generating metadata in test_component (status=255)
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- javascript, nodejs, python
- Domain
- build-system, tooling
Research direction
Start by reproducing the failure with npm run build in the generated dash component boilerplate, using the example JavaScript component and the reported Windows/Python 3.8 setup. Inspect the output from dash-generate-components and the surrounding build:py_and_r command; done means identifying the cause and getting a freshly generated example component through the build successfully.
Written by the indexing model from the issue text.
Description
Hello,
I have been having an issue with the dash component boilerplate not generating my components. When I execute
npm run build
It generates the following error
`Error generating metadata in test_component (status=255)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! test_component@0.0.1 build:py_and_r: dash-generate-components ./src/lib/components test_component -p package-info.json --r-prefix ''
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the test_component@0.0.1 build:py_and_r 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\mabadir\AppData\Roaming\npm-cache_logs\2020-06-15T15_43_13_527Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! test_component@0.0.1 build: npm run build:js && npm run build:py_and_r
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the test_component@0.0.1 build 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\mabadir\AppData\Roaming\npm-cache_logs\2020-06-15T15_43_13_559Z-debug.log
To test whether this was something that was wrong with my javascript, I ran the cookiecutter command again in a new python project to create a new component. For set up I selected the following
You've downloaded C:\Users\mabadir.cookiecutters\dash-component-boilerplate before. Is it okay to delete and re-download it? [yes]:
project_name [my dash component]: Test Component
project_shortname [test_component]:
component_name [TestComponent]:
r_prefix []:
author_name [Enter your first and last name (For package.json)]: MA
author_email [Enter your email (For package.json)]: ma
github_org []:
description [Project Description]: testing
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]:
publish_on_npm [True]: False
install_dependencies [True]:
Executing: c:\python38\python.exe -m venv venv
From there I tried npm run build on the example javascript component provided, and it still gave me the above error. Can you please advise?
Edit: Forgot to mention that it was working before.
- Dominant language
- Python
- Stars
- 294
- Forks
- 196
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from plotly/dash-component-boilerplate
-
Difficulty 1/5 Under an hour Newbie friendliness 75/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
plotly/dash-component-boilerplate#173 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
plotly/dash-component-boilerplate#170 · 1 comment ·
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 45/100
plotly/dash-component-boilerplate#166 · 1 reaction ·
-
Running build Open
Difficulty 3/5 1-2 days Newbie friendliness 30/100
All issues in plotly/dash-component-boilerplate
Similar issues
-
bug confirmed issue
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
open-webui/open-webui#30750 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
OpenwaterHealth/openmotion-bloodflow-app#604 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
good first issue
Difficulty 1/5 Under an hour Newbie friendliness 90/100