EverythingMe / redshift_console

Redshift Ops Console

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

python site package does not include index.html

Liorba opened this issue · comments

after cloning the repo and run setup.py ,runt the runserver command I got the following error:

No such file or directory: '/Library/Python/2.7/site-packages/redshift_console-0.1.3-py2.7.egg/redshift_console/static/dist/index.html'

after little examination I found that the 'static' folder is not found in python site packages, moreover index.html is actually found in static/app and not in static/dist like the error mention

If you just clone the repo, then you need to build the static assets yourself (run gulp build, for which you need to install NodeJS and required packages).

When packaging the project for PyPi we run gulp build and create a distribution that includes the dist folder.

If you don't intend to develop the project, then you can simply run pip install redshift-console (or use the docker image), which includes everything you need to run the project.

If you plan on developing, then you need to install required dependencies. You can check the Makefile for a point of reference.

At first I tried to run pip install and got this error ...
it seems that setup.py does not copy the "static" folder to
/Library/Python/2.7/site-packages/redshift_console

then I clone the repo and run python setup.py install
and it didn't help.

Finally I tried to copy the static folder to /Library/Python/2.7/site-packages/redshift_console
but with no luck :(

I just created an empty virtualenv and ran pip install redshift-console, it installed version 0.1.3 and the package folder includes the static/dist folder.

Can you elaborate on how you installed it, and what environment (OS, Python version, pip version)?

sudo pip install redshift-console
and then
redshift-console runserver
when I open the browser on localhost:5000
OS mac os
Python 2.7.10
pip version 7.1.2

Closing as can't be reproduced.