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

how do I uninsall the program? #6

Open
obaranek opened this issue Jul 27, 2021 · 4 comments
Open

how do I uninsall the program? #6

obaranek opened this issue Jul 27, 2021 · 4 comments

Comments

@obaranek
Copy link

No description provided.

@rliou92
Copy link
Owner

rliou92 commented Dec 11, 2021

Yes, the is not obvious to me as well.. It looks like you have to do everything manually, which sucks.

The setup script drops a python script called umonitor in /usr/bin/

Remove that and the umonitor command won't do anything. For the python packages that umonitor installs check this stack overflow thread:

https://stackoverflow.com/questions/1550226/python-setup-py-uninstall

@rliou92 rliou92 closed this as completed Dec 11, 2021
@rliou92 rliou92 reopened this Dec 11, 2021
@quinn-brittain
Copy link

Uninstalling via an AUR package manager cleans up everything, and as mentioned in rliou92's link above, using pip install . lets you easily uninstall using pip uninstall umonitor.

However, if installed via python install setup.py I've had to remove two things manually to uninstall.

  • The umonitor command in /usr/bin/
  • The umonitor python egg in the python site-packages directory

For my setup the site-packages directory was /usr/lib/python3.9/site-packages/

@quinn-brittain
Copy link

I have discovered a solution! Installing via pip install . instead of python install setup.py allows it to be easily removed using pip uninstall umonitor.

@rliou92 all that is need is the installation section in the README.md to be updated.
Issue should be solved after that! 👍

@igavrysh
Copy link

igavrysh commented Mar 29, 2024

while installing this program thru recommended sudo python3 setup.py install saw the following output, might be useful for those trying to uninstall - to revert install steps manually:

running install
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/easy_install.py:158: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
/usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 2.4.0-elementary9-ubuntu7.1 is an invalid version and will not be supported in a future release
  warnings.warn(
running bdist_egg
running egg_info
writing umonitor.egg-info/PKG-INFO
writing dependency_links to umonitor.egg-info/dependency_links.txt
writing entry points to umonitor.egg-info/entry_points.txt
writing requirements to umonitor.egg-info/requires.txt
writing top-level names to umonitor.egg-info/top_level.txt
reading manifest file 'umonitor.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'umonitor.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
creating build/bdist.linux-x86_64/egg
copying build/lib.linux-x86_64-3.10/screen.cpython-310-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/umonitor
copying build/lib.linux-x86_64-3.10/umonitor/umonitor.py -> build/bdist.linux-x86_64/egg/umonitor
copying build/lib.linux-x86_64-3.10/umonitor/__init__.py -> build/bdist.linux-x86_64/egg/umonitor
byte-compiling build/bdist.linux-x86_64/egg/umonitor/umonitor.py to umonitor.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/umonitor/__init__.py to __init__.cpython-310.pyc
creating stub loader for screen.cpython-310-x86_64-linux-gnu.so
byte-compiling build/bdist.linux-x86_64/egg/screen.py to screen.cpython-310.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying umonitor.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying umonitor.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying umonitor.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying umonitor.egg-info/entry_points.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying umonitor.egg-info/not-zip-safe -> build/bdist.linux-x86_64/egg/EGG-INFO
copying umonitor.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying umonitor.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
writing build/bdist.linux-x86_64/egg/EGG-INFO/native_libs.txt
creating 'dist/umonitor-20181018-py3.10-linux-x86_64.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing umonitor-20181018-py3.10-linux-x86_64.egg
removing '/usr/local/lib/python3.10/dist-packages/umonitor-20181018-py3.10-linux-x86_64.egg' (and everything under it)
creating /usr/local/lib/python3.10/dist-packages/umonitor-20181018-py3.10-linux-x86_64.egg
Extracting umonitor-20181018-py3.10-linux-x86_64.egg to /usr/local/lib/python3.10/dist-packages
umonitor 20181018 is already the active version in easy-install.pth
Installing umonitor script to /usr/local/bin

Installed /usr/local/lib/python3.10/dist-packages/umonitor-20181018-py3.10-linux-x86_64.egg
Processing dependencies for umonitor==20181018
Searching for daemon==1.2
Best match: daemon 1.2
Processing daemon-1.2-py3.10.egg
daemon 1.2 is already the active version in easy-install.pth

Using /usr/local/lib/python3.10/dist-packages/daemon-1.2-py3.10.egg
Finished processing dependencies for umonitor==20181018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants