-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pip install of 0.9.15 = No $GRAPHITE_ROOT/webapp/graphite exists #1508
Comments
As additional info, everything is correct when not using pip and instead building from source. |
@jblaine, |
That works.
|
FWIW
|
Cool! Thanks a lot for testing! |
I just encountered a similar problem trying to install graphite with pip and solved it by downgrading pip the following way, then retrying |
Have just encountered the same problem. |
I can confirm this behavior, and it started with pip version 7.0.0. This can be worked around with the Related, from the pip version 7.0.0 release notes:
At the very least we should mention this issue in our install docs. |
@jblaine So we can't "fix" the docs for 0.9.15 since they're associated with the tag, which is associated with the pypi package, etc. Yay for python packaging once again. For the time being please make sure to use |
It seems that installing from GitHub behaves as expected regardless of pip version even not on the master branch. For example:
works as expected, but
does not. So it seems like this problem has not been fixed on master; the only reason it currently seems to work is that you're not installing the master branch from PyPi. Even once the next version of graphite-web is released, the problem will continue for anyone installing from PyPi. IMO this issue should be reopened. Anyone have any idea why Edit: Link to relevant question on Launchpad: https://answers.launchpad.net/graphite/+question/401544 |
It seems the problem isn't just related to where you got the tarball from (as in, the install mechanism used). The tarball on GitHub is actually different from the one hosted on PyPI! Compare the contents of https://github.com/graphite-project/graphite-web/tarball/0.9.15 with that of https://pypi.python.org/packages/b6/f3/7e4bae02f1a21cc29e9e9205bbc01aa29cdc6c696a996d41c1143e8935e3/graphite-web-0.9.15.tar.gz#md5=f4e80ba810fa83f57a62a2b8dd4e3545
It's still unclear as to what specific difference between the two files is causing this. |
Yep, pypi version (sic!) has following in setup.cfg
Not sure how that section can do exactly opposite thing and bring package to /usr/local... |
Actually, it looks like the contents don't really matter after all. While those two packages do have slightly different contents, whether they get installed to I conducted 4 tests, each with a freshly-built, identically configured VM, using pip 8.1.1 from the official Ubuntu Xenial apt repository. In both cases where I named the file
In both cases where I named the file
So... yeah. What the heck, pip?!?! 😦 |
After running a few more experiments, it looks like it always installs under
pip 9.0.1 also appears to behave similarly. |
I'm wondering what's result has '--no-binary' flag on pip. |
@Ajedi32 - I mean, it's known issue, see previous comment - #1508 (comment) |
@deniszh I'm dealing with some rather unique circumstances which make using the |
Installing graphite with pip >= 7.0.0 causes it to install to the wrong location unless you pass it the `--no-binary=:all:` option. (See [pip install of 0.9.15 = No $GRAPHITE_ROOT/webapp/graphite exists][1].) As Ubuntu Xenial includes pip 8.1 by default, passing this option is necessary. Note that passing install options to pip [requires Puppet v4.1+][2] so this fix will not work on systems using older versions of Puppet. (Even Ubuntu Xenial only includes Puppet 3.8 in its package repositories, which is unfortunate.) Other workarounds are possible, including [downgrading to pip 6.1.1 before installing Graphite][3], or [installing from a tarball with a name that doesn't include all of the letters of package name][4] but this solution seems like the most straighforward one. [1]: graphite-project/graphite-web#1508 (comment) [2]: puppetlabs/puppet@c2697c6 [3]: echocat#309 (comment) [4]: echocat#309 (comment)
Installing graphite with pip >= 7.0.0 causes it to install to the wrong location unless you pass it the `--no-binary=:all:` option. (See [pip install of 0.9.15 = No $GRAPHITE_ROOT/webapp/graphite exists][1].) As Ubuntu Xenial includes pip 8.1 by default, passing this option is necessary. Note that passing install options to pip [requires Puppet v4.1+][2] so this fix will not work on systems using older versions of Puppet. (Even Ubuntu Xenial only includes Puppet 3.8 in its package repositories, which is unfortunate.) Other workarounds are possible, including [downgrading to pip 6.1.1 before installing Graphite][3], or [installing from a tarball with a name that doesn't include all of the letters of package name][4] but this solution seems like the most straighforward one. [1]: graphite-project/graphite-web#1508 (comment) [2]: puppetlabs/puppet@c2697c6 [3]: echocat#309 (comment) [4]: echocat#309 (comment)
There is a bug with pip and the way the Graphite package is setup that causes webapp directory not to be created. graphite-project/graphite-web#1508
There is a bug with pip and the way the Graphite package is setup that causes webapp directory not to be created. graphite-project/graphite-web#1508
This still seems to be happening with the most recent version of Graphite. Running Python 3.8.2, pip 20.0.2 inside a virtualenv. These are the commands I'm using to install, taken straight from docs:
After the install, |
@snctfd : I'm suspecting that's because of virtualenv, it should be 16.x and not 20.x |
I'm at a loss as to what is going on here. I'm expecting /opt/graphite/webapp/graphite to exist but it does not.
Here's a fresh virtualenv + pip install of 0.9.15:
The text was updated successfully, but these errors were encountered: