Skip to content
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

uninstall carbon and reinstall to new directory #758

Closed
JosephFY opened this issue Apr 1, 2018 · 7 comments
Closed

uninstall carbon and reinstall to new directory #758

JosephFY opened this issue Apr 1, 2018 · 7 comments

Comments

@JosephFY
Copy link

JosephFY commented Apr 1, 2018

I have initially installed carbon ( and whisper, graphite-web) on a dev environment through

cd /tmp; git clone https://github.com/graphite-project/carbon.git;
cd /tmp/carbon; git checkout 1.1.1; python setup.py install; wait;

graphite is installed under /opt/gaphite and working as expected

so now I want to install 1.1.2 but want to I want to move my installation directory to /graphite instead of /opt/graphite. I have done a new installation on different directory on another box but that was a brand new installation without any existing installation.

Been looking for a way to uninstall all the of graphite components but couldnt find any clear documentation. pip list only shows whisper 1.1.1 only

what is the best way of uninstalling graphite and reinstalling ? couldnt find any documentation about that.

I am running it on a redhat 7.4 box.

Thank you

@deniszh
Copy link
Member

deniszh commented Apr 1, 2018

@JosephFY
In general, pip uninstall should work (but please note culprit from #711), but pip list should give you the list of your packages in that case. Maybe you using virtualenv?

@JosephFY
Copy link
Author

JosephFY commented Apr 1, 2018

No I am not using virtualenv. And whats is interesting is that i went a head an installed carbon as below (on a different directory with renaming the old /opt/graphite to /opt/xgraphite) and still not showing under pip list is there anything I am missing here ? kinda weird !

pip install carbon --install-option="--prefix=/graphite" --install-option="--install-lib=/graphite/lib"

@deniszh
Copy link
Member

deniszh commented Apr 2, 2018

Well, python packaging is a mess TBH. 🤷‍♂️

@JosephFY
Copy link
Author

I am just afraid that i will have issues down the road if that carbon and the graphite-web components do not show as installed under pip packages. specially if i needed to used carbonate/buckytools down the road.

I remember seeing an issues that you commented at with a guy having issues installing carbonate because it's not seeing carbon installed. Will share that link when I find it

@redbaron4
Copy link

You need to tell pip to look in the /opt/graphite directory.

Maybe something like:

PYTHONPATH="/opt/graphite/lib/:/opt/graphite/webapp/" pip freeze

@piotr1212
Copy link
Member

IIRC: If you use python setup.py install then it is not registered with pip and pip uninstall will not work.

I would recommend to always install through pip (unless you are developing). From a source directory you can use:

cd graphite-source-dir
pip install .

I'll add this to the docs.

I don't think the reason carbonate cannot see carbon is related to the package showing in pip. I expect this has to be a PYTHONPATH issue, which should be simplified with #835

@stale
Copy link

stale bot commented Apr 13, 2020

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.

@stale stale bot added the stale label Apr 13, 2020
@stale stale bot closed this as completed Apr 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants