Skip to content

Activating a specific Python module #1178

@adamjstewart

Description

@adamjstewart

I have several Python modules, some installed before the newarch support and some after:

$ spack find -v -l py-numpy
==> 6 installed packages.
--  / gcc@4.4.7 -------------------------------------------------
fbmftzz py-numpy@1.10.4+blas+lapack

--  / gcc@5.3.0 -------------------------------------------------
kdkkapz py-numpy@1.10.4+blas+lapack

--  / gcc@6.1.0 -------------------------------------------------
x3736ug py-numpy@1.11.0+blas+lapack  kgfszlb py-numpy@1.11.0+blas+lapack
tduopn7 py-numpy@1.11.0+blas+lapack

-- linux-centos6-x86_64 / gcc@6.1.0 -----------------------------
j3gy5iw py-numpy@1.11.0+blas+lapack

How can I activate a specific module? Specifying the arch doesn't work and picks up all versions for some reason. Activate doesn't accept a hash, although uninstall does? Are we using completely different spec parsers for every subcommand?? Anyway, specifying the hash doesn't seem to work even for uninstall:

$ spack uninstall py-numpy /j3gy5iw
==> Error: py-numpy matches multiple packages:

--  / gcc@4.4.7 -------------------------------------------------
fbmftzz py-numpy@1.10.4%gcc+blas+lapack


--  / gcc@5.3.0 -------------------------------------------------
kdkkapz py-numpy@1.10.4%gcc+blas+lapack


--  / gcc@6.1.0 -------------------------------------------------
tduopn7 py-numpy@1.11.0%gcc+blas+lapack

x3736ug py-numpy@1.11.0%gcc+blas+lapack

kgfszlb py-numpy@1.11.0%gcc+blas+lapack


-- linux-centos6-x86_64 / gcc@6.1.0 -----------------------------
j3gy5iw py-numpy@1.11.0%gcc+blas+lapack


==> Error: py-numpy@1.11.0%gcc@6.1.0+blas+lapack arch=linux-centos6-x86_64^bzip2@1.0.6%gcc@6.1.0 arch=linux-centos6-x86_64^ncurses@6.0%gcc@6.1.0 arch=linux-centos6-x86_64^openblas@0.2.18%gcc@6.1.0+fpic~openmp+shared arch=linux-centos6-x86_64^openssl@1.0.2h%gcc@6.1.0 arch=linux-centos6-x86_64^py-nose@1.3.7%gcc@6.1.0 arch=linux-centos6-x86_64^py-setuptools@20.7.0%gcc@6.1.0 arch=linux-centos6-x86_64^python@2.7.11%gcc@6.1.0 arch=linux-centos6-x86_64^readline@6.3%gcc@6.1.0 arch=linux-centos6-x86_64^sqlite@3.8.5%gcc@6.1.0 arch=linux-centos6-x86_64^zlib@1.2.8%gcc@6.1.0 arch=linux-centos6-x86_64 matches multiple packages:

--  / gcc@6.1.0 -------------------------------------------------
tduopn7 py-numpy@1.11.0%gcc+blas+lapack


-- linux-centos6-x86_64 / gcc@6.1.0 -----------------------------
j3gy5iw py-numpy@1.11.0%gcc+blas+lapack


==> Error: You can either:
    a) Use a more specific spec, or
    b) use spack uninstall -a to uninstall ALL matching specs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingspecs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions