graphite-project / graphite-web

A highly scalable real-time graphing system
http://graphite.readthedocs.org/
Apache License 2.0
5.91k stars 1.26k forks source link

[BUG] Cant install using pip. #2815

Open adamboutcher opened 1 year ago

adamboutcher commented 1 year ago

Describe the bug Doesn't install using pip correctly

To Reproduce

/usr/bin/python3 -m venv /opt/graphite source /opt/graphite/bin/activate pip install graphite-web but no such file or directory: /opt/graphite/webapp/graphite

Expected behavior Expected the complete tar to be there.

Environment (please complete the following information):

Additional context The tar file from Pypi is correct but however pip deals with this results in that directory not being there.

adamboutcher commented 1 year ago

Related? https://github.com/graphite-project/graphite-web/issues/1972 https://github.com/graphite-project/graphite-web/pull/2409 https://github.com/graphite-project/graphite-web/issues/2205

stale[bot] commented 11 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

deniszh commented 11 months ago

Yes, latest pip/virtualenv are broken. For python 3.9 you can use pip==20.1.1 and virtualenv==16.7.10

earthgecko commented 9 months ago

Just FYI for anyone else that bumps into this. Another method to circumvent this pip and virtualenv issue is to install this in your virtualenv as follows with no-binary

cd /opt/graphite
source bin/activate
bin/pip3 install --no-binary=:all: https://github.com/graphite-project/graphite-web/tarball/1.1.10

This works on Python 3.8, 3.9 and 3.10