-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Cannot Uninstall Package from Environment #10331
Copy link
Copy link
Closed
Labels
Description
I've installed python inside an environment. I'm not able to uninstall from within my environment. And I'm not able to uninstall from "plain vanilla Spack" either.
Steps to reproduce the issue
$ alias spack
alias spack='spack -e otp-dev-mac'
$ spack find
==> In environment otp-dev-mac
==> Root specs
environment-modules maven osmctools postgresql py-mysql-connector py-setuptools python
==> 16 installed packages
-- darwin-highsierra-x86_64 / [email protected] -----------------
[email protected] [email protected]_191 [email protected] [email protected] [email protected] [email protected]
[email protected] [email protected] [email protected] [email protected] [email protected]
[email protected] [email protected] [email protected] [email protected] [email protected]
$ spack uninstall python
==> Will not uninstall [email protected]%[email protected]/osojvpu
The following packages depend on it:
-- darwin-highsierra-x86_64 / [email protected] -----------------
qkjr5wm [email protected]%clang
vuarrj6 [email protected]%clang
==> Error: There are still dependents.
use `spack uninstall --dependents` to remove dependents too
$ spack uninstall --dependents python
==> The following packages will be uninstalled:
-- darwin-highsierra-x86_64 / [email protected] -----------------
qkjr5wm [email protected]%clang
vuarrj6 [email protected]%clang
osojvpu [email protected]%clang+dbm~optimizations patches=123082ab3483ded78e86d7c809e98a804b3465b4683c96bd79a2fd799f572244 +pic+pythoncmd~shared~tk~ucs4
==> Do you want to proceed? [y/N] y
==> Error: 'vuarrj6tr5yxov5cercjbre6fsxfauck'
$ \spack uninstall --dependents python
==> Will not uninstall [email protected]%[email protected]/osojvpu
The following packages depend on it:
-- darwin-highsierra-x86_64 / [email protected] -----------------
qkjr5wm [email protected]%clang
vuarrj6 [email protected]%clang
yufk7lh [email protected]%clang
It is used by the following environments:
otp-dev-mac
==> Error: There are still dependents.
use `spack uninstall --dependents` to remove dependents too
use `spack env remove` to remove from environmentsError Message
See above... Spack gives different excuses at different times for not uninstalling.
Reactions are currently unavailable