spack uses the python in environment

339 views
Skip to first unread message

Petr Hanousek

unread,
Apr 21, 2020, 8:43:42 AM4/21/20
to Spack
Hi forum,
I am trying to install an environment with `concretization: together` but the env gets all broken when the installation procedure fails in some point. One of the packages to be installed by the env is python which was built and installed OK. But afterwards failed an installation of rdma-core in install phase and all the building process ended without regenerating the environment. Which leads to this error of any spack command (like `spack env status`):
RuntimeError: Unable to locate python command in /some/path/spack_tests/spack/0.14/var/spack/environments/env1/.spack-env/view/bin

I wonder why is the spack suddenly dependent on some python in env when before it run quite happy with python from system. Is there any configuration option to force spack use a specific python version for running itself?
Thank you, Petr

Petr Hanousek

unread,
Apr 21, 2020, 10:25:32 AM4/21/20
to Spack
This is quite a difficult task... Because the environment is broken, I
have to remove it, then create it again, rewrite spack.yaml with the old
one and run the concretization and installation. However python is
already installed so I can not reproduce the problem. OK, I've removed
python and all things that depend on it and tried install again. Now I
fail on building rdma-core (which I have to solve somehow) prior
building python and thus simulating the problem. Is there any way how to
tell spack to build software in env list in some order? :)
Petr

On 21. 04. 20 15:02, Elizabeth Fischer wrote:
> Can you run again with `spack --debug`?
> --
> You received this message because you are subscribed to the Google
> Groups "Spack" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to spack+un...@googlegroups.com
> <mailto:spack+un...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/spack/5cdea45b-cd2c-4f1b-b975-6d5b0d880e87%40googlegroups.com
> <https://groups.google.com/d/msgid/spack/5cdea45b-cd2c-4f1b-b975-6d5b0d880e87%40googlegroups.com?utm_medium=email&utm_source=footer>.
>
>
>
--
Petr Hanousek
mail: petr.h...@gmail.com
tel: +420 608 203 892

george hartzell

unread,
Apr 21, 2020, 12:17:33 PM4/21/20
to Spack

Petr Hanousek

unread,
Apr 22, 2020, 2:56:06 PM4/22/20
to sp...@googlegroups.com
Thank you very much, issue 15884 gave me a workaround:
'rm -rf .spack-env spack.lock' and re-concretize.
Petr
--
You received this message because you are subscribed to the Google Groups "Spack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spack+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/spack/b181d8cc-f79e-4f07-bd8c-4ef7651ef77f%40googlegroups.com.

Gamblin, Todd

unread,
May 5, 2020, 2:12:59 PM5/5/20
to Petr Hanousek, sp...@googlegroups.com
All:

I put in this PR which I hope fixes the issue.  Check it out:


-Todd

Petr Hanousek

unread,
Jul 29, 2020, 10:17:53 AM7/29/20
to Spack
The patch is incorporated in the newer versions of spack. I can not see the originally described bug anymore. However spack still uses the python from environment rather the one present in system whith which was originally happy. Is it really the intended behavior? I came again to the issue when created environment with python on Debian 10 and tried to activate it on Debian 9. Which is not correct use I confess but demonstrates the changing spack gear. So there is a possibility for spack to behave diferrently in various environments.
Petr

Dne úterý 5. května 2020 20:12:59 UTC+2 Todd Gamblin napsal(a):
All:

I put in this PR which I hope fixes the issue.  Check it out:


-Todd

On Apr 22, 2020, at 11:56 AM, Petr Hanousek <petr.h...@gmail.com> wrote:

Thank you very much, issue 15884 gave me a workaround:
'rm -rf .spack-env spack.lock' and re-concretize.
Petr

On 21. 04. 20 18:17, george hartzell wrote:
You're not alone:


g.

On Tuesday, April 21, 2020 at 5:43:42 AM UTC-7, Petr Hanousek wrote:
Hi forum,
I am trying to install an environment with `concretization: together` but the env gets all broken when the installation procedure fails in some point. One of the packages to be installed by the env is python which was built and installed OK. But afterwards failed an installation of rdma-core in install phase and all the building process ended without regenerating the environment. Which leads to this error of any spack command (like `spack env status`):
RuntimeError: Unable to locate python command in /some/path/spack_tests/spack/0.14/var/spack/environments/env1/.spack-env/view/bin

I wonder why is the spack suddenly dependent on some python in env when before it run quite happy with python from system. Is there any configuration option to force spack use a specific python version for running itself?
Thank you, Petr
--
You received this message because you are subscribed to the Google Groups "Spack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sp...@googlegroups.com.


-- 
Petr Hanousek
mail: petr.h...@gmail.com
tel: +420 608 203 892

--
You received this message because you are subscribed to the Google Groups "Spack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sp...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages