Open pythoro opened 2 years ago
hey man, mind sharing with us all the steps you took to make it work? I am trying to do the same but it doesn't really work. if you can share the commands you run and on what path it would be great!
Sure, off the top of my head, I think this is what I did...
cookiecutter gh:plotly/dash-component-boilerplate
install_dependencies
to false
.python -m venv venv
. This will set up the virtual environment. (Equivalent of these lines)venv\scripts\activate
to activate the virtual environment. Not sure that's part of the script.python -m pip install -r requirements.txt
. Note that the virtual environment needs to be activated for this otherwise it'll install the packages globally. This step is here in the normal script.npm install --ignore-scripts
. This is here in the normal script.npm run build
. This step is here in the normal script.npm run build
again to rebuild it.python usage.py
in the same folder to test it out.Give that a try. I think at one point I also changed the forward slashes to backslashes in the build script here. Not sure if that's needed now or not.
well, funny enough I already changed my PC username to have no white space, so I no longer have a problem, but I really appreciate you going all the way explaining I am more than sure someone else will need this!
These lines to generate the virtual environment didn't work on my machine.
My python.exe is at c:\program files\python37\python.exe. Here's the error I get:
I worked around this by running the venv commands and remaining calls in post_gen_project.py manually, but it'd be better if it worked.
Looks like #23 is a similar but much older issue.