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

recent changes to pip installation gives weird error when uninstalling #158

Open
puririshi98 opened this issue Dec 5, 2022 · 4 comments
Assignees

Comments

@puririshi98
Copy link
Contributor

puririshi98 commented Dec 5, 2022

😵 Describe the installation problem

so if I have an old installation of pyg-lib I can uninstall it:

root@8239e7e0e1e1:/opt/pyg/pyg-lib# pip uninstall -y pyg-lib
Found existing installation: pyg-lib 0.1.0
Uninstalling pyg-lib-0.1.0:
  Successfully uninstalled pyg-lib-0.1.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

Then I try to install from source:

root@8239e7e0e1e1:/opt/pyg/pyg-lib# pip install -e .
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Obtaining file:///opt/pyg/pyg-lib
Installing collected packages: pyg-lib
  Running setup.py develop for pyg-lib

After this I cannot uninstall it:

root@8239e7e0e1e1:/opt/pyg/pyg-lib# pip uninstall -y pyg-lib
Found existing installation: pyg-lib 0.1.0
Can't uninstall 'pyg-lib'. No files were found to uninstall.
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
root@8239e7e0e1e1:/opt/pyg/pyg-lib# pip show pyg-lib
Name: pyg-lib
Version: 0.1.0
Summary: Low-Level Graph Neural Network Operators for PyG
Home-page: https://github.com/pyg-team/pyg-lib
Author: PyG Team
Author-email: [email protected]
License: UNKNOWN
Location: /opt/pyg/pyg-lib
Requires: 
Required-by:

Notice how instead of pyg-lib-0.1.0, it is not showing as pyg-lib 0.1.0 and then saying there is nothing to uninstall

Environment

  • pyg-lib version: pip install -e . from master
  • OS: linux
@rusty1s
Copy link
Member

rusty1s commented Dec 6, 2022

Thanks for reporting, but it is hard for me to give any guidance here. What happens if you run pip uninstall --verbose pyg-lib?

@puririshi98
Copy link
Contributor Author

root@3d587183e58e:/opt/pyg/pyg-lib# pip uninstall --verbose pyg-lib
Found existing installation: pyg-lib 0.1.0
Can't uninstall 'pyg-lib'. No files were found to uninstall.
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

same issue unfortunately, not much insight from --verbose.😕

@rusty1s
Copy link
Member

rusty1s commented Dec 8, 2022

Can it have to do with using system Python? What happens if you run with sudo?

@puririshi98
Copy link
Contributor Author

puririshi98 commented Dec 9, 2022

i am doing all of this in a docker contaienr where there is no concept of sudo since u have full sudo access to everything.

root@c155cc9aabc0:/opt/pyg/pyg-lib# python3 -m pip uninstall -y pyg-lib; sudo pip install -e .; sudo pip uninstall -e .
Found existing installation: pyg-lib 0.1.0
Uninstalling pyg-lib-0.1.0:
  Successfully uninstalled pyg-lib-0.1.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
bash: sudo: command not found
bash: sudo: command not found

not sure what else to investigate or do. its not really a blocker for me in anyway since i just uninstall by exiting the docker and reentering a fresh one and then uninstalling that one since the install in my docker is fine. feel free to close the issue if u want or leave it open, i dont mind either way.

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

2 participants