graphite-project / graphite-web

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

Pip install on graphite-web shows successfully installed but package is not visible in pip show/list commands #2707

Closed Zorrom closed 3 years ago

Zorrom commented 3 years ago

Describe the bug A clear and concise description of what the bug is. Installed graphite-web-1.1.8.tar.gz via pip on Python 3 environment. It installed all the dependency pip packages successfully along with graphite-web. But it is not showing graphite-web package via pip show command

[root@localhost pip-packs]# ls
cairocffi-0.9.0.tar.gz                         django_tagging-0.4.3-py2.py3-none-any.whl  pyparsing-2.4.7-py2.py3-none-any.whl  six-1.16.0-py2.py3-none-any.whl
cffi-1.14.5-cp27-cp27mu-manylinux1_x86_64.whl  graphite-web-1.1.8.tar.gz                  pytz-2021.1-py2.py3-none-any.whl      urllib3-1.26.6-py2.py3-none-any.whl
Django-1.11.29-py2.py3-none-any.whl            pycparser-2.20-py2.py3-none-any.whl        scandir-1.10.0.tar.gz

[root@localhost pip-packs]# pip install graphite-web-1.1.8.tar.gz 
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip install --user` instead.
Processing ./graphite-web-1.1.8.tar.gz
Collecting Django<3.1,>=1.8 (from graphite-web==1.1.8)
  Using cached https://files.pythonhosted.org/packages/49/49/178daa8725d29c475216259eb19e90b2aa0b8c0431af8c7e9b490ae6481d/Django-1.11.29-py2.py3-none-any.whl
Collecting django-tagging==0.4.3 (from graphite-web==1.1.8)
  Using cached https://files.pythonhosted.org/packages/b2/69/b391783b6fda8963558d3338685932de95d8cc51e8f1b7f38527435171b1/django_tagging-0.4.3-py2.py3-none-any.whl
Collecting pytz (from graphite-web==1.1.8)
  Using cached https://files.pythonhosted.org/packages/70/94/784178ca5dd892a98f113cdd923372024dc04b8d40abe77ca76b5fb90ca6/pytz-2021.1-py2.py3-none-any.whl
Collecting pyparsing (from graphite-web==1.1.8)
  Using cached https://files.pythonhosted.org/packages/8a/bb/488841f56197b13700afd5658fc279a2025a39e22449b7cf29864669b15d/pyparsing-2.4.7-py2.py3-none-any.whl
Collecting cairocffi (from graphite-web==1.1.8)
  Using cached https://files.pythonhosted.org/packages/62/be/ad4d422b6f38d99b09ad6d046ab725e8ccac5fefd9ca256ca35a80dbf3c6/cairocffi-0.9.0.tar.gz
Requirement already satisfied: urllib3 in /usr/lib/python2.7/site-packages (from graphite-web==1.1.8)
Collecting scandir (from graphite-web==1.1.8)
  Using cached https://files.pythonhosted.org/packages/df/f5/9c052db7bd54d0cbf1bc0bb6554362bba1012d03e5888950a4f5c5dadc4e/scandir-1.10.0.tar.gz
Requirement already satisfied: six in /usr/lib/python2.7/site-packages (from graphite-web==1.1.8)
Requirement already satisfied: cffi>=1.1.0 in /usr/lib64/python2.7/site-packages (from cairocffi->graphite-web==1.1.8)
Requirement already satisfied: pycparser in /usr/lib/python2.7/site-packages (from cffi>=1.1.0->cairocffi->graphite-web==1.1.8)
Installing collected packages: pytz, Django, django-tagging, pyparsing, cairocffi, scandir, graphite-web
  Running setup.py install for cairocffi ... done
  Running setup.py install for scandir ... done
  Running setup.py install for graphite-web ... done
Successfully installed Django-1.11.29 cairocffi-0.9.0 django-tagging-0.4.3 graphite-web pyparsing-2.4.7 pytz-2021.1 scandir-1.10.0
[root@localhost pip-packs]# pip show graphite-web
[root@localhost pip-packs]#  
[root@localhost pip-packs]# pip uninstall graphite-web
Cannot uninstall requirement graphite-web, not installed

To Reproduce Steps to reproduce the behavior: Download graphite-web pip package from https://pypi.org/project/graphite-web/1.1.8/#files or use pip install graphite-web command Once installed run pip show graphite-web and it results empty values

Expected behavior A clear and concise description of what you expected to happen. graphite-web should be installed and visible under pip show command

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

deniszh commented 3 years ago

Hi @Zorrom ,

Thansk for report! Which pip version do you use?

Zorrom commented 3 years ago

@deniszh Below is the pip version we are using

[root@pcrfclient01 graphite]# pip --version
pip 9.0.3 from /usr/lib/python3.6/site-packages (python 3.6)

Also just to update I tried installing graphite-web using easy_install instead of pip and it worked straight away. So any idea on why we cannot install it via pip

[root@localhost graphite]# easy_install graphite-web-1.1.8.tar.gz 
Processing graphite-web-1.1.8.tar.gz
Writing /tmp/easy_install-0uxfvc9d/graphite-web-1.1.8/setup.cfg
Running graphite-web-1.1.8/setup.py -q bdist_egg --dist-dir /tmp/easy_install-0uxfvc9d/graphite-web-1.1.8/egg-dist-tmp-k4c49e9j
warning: no files found matching '*' under directory 'distro/'
warning: no previously-included files found matching 'webapp/graphite/local_settings.py'
warning: no previously-included files found matching 'conf/*.conf'
zip_safe flag not set; analyzing archive contents...
graphite.__pycache__.app_settings.cpython-36: module references __file__
graphite.__pycache__.settings.cpython-36: module references __file__
graphite.__pycache__.wsgi.cpython-36: module references __file__
graphite.functions.__pycache__.__init__.cpython-36: module references __file__
creating /usr/local/lib/python3.6/site-packages/graphite_web-1.1.8-py3.6.egg
Extracting graphite_web-1.1.8-py3.6.egg to /usr/local/lib/python3.6/site-packages
Adding graphite-web 1.1.8 to easy-install.pth file
Installing build-index script to /usr/local/bin
Installing run-graphite-devel-server.py script to /usr/local/bin
Installing build-index.sh script to /usr/local/bin

Installed /usr/local/lib/python3.6/site-packages/graphite_web-1.1.8-py3.6.egg
Processing dependencies for graphite-web==1.1.8
Finished processing dependencies for graphite-web==1.1.8
[root@localhost graphite]# pip show graphite-web
Name: graphite-web
Version: 1.1.8
Summary: Enterprise scalable realtime graphing
Home-page: http://graphiteapp.org/
Author: Chris Davis
Author-email: chrismd@gmail.com
License: Apache Software License 2.0
Location: /usr/local/lib/python3.6/site-packages/graphite_web-1.1.8-py3.6.egg
Requires: Django, django-tagging, pytz, pyparsing, cairocffi, urllib3, scandir, six
piotr1212 commented 3 years ago

I think this is because we still use distutils instead of setuptools

Zorrom commented 3 years ago

Okay so are we planning to fix this via pip install or can I consider easy_install as as option and close this case

Thanks

piotr1212 commented 3 years ago

Switching to setuptools is a long standing issue which basically breaks all existing installations. Don't think anyone is working on this and don't expect this to be fixed anytime soon.

stale[bot] commented 3 years 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.

Zorrom commented 3 years ago

Closing this issue because easy_install graphite-web-1.1.8.tar.gz is working fine