Missing python in chroot

29 views
Skip to first unread message

Simon Que

unread,
Jul 27, 2017, 2:05:55 PM7/27/17
to chromium-os-dev
My chroot is missing python. /usr/bin/python points to python-wrapper, but python-wrapper doesn't exist.

I don't know at what point it broke. I did a repo sync, exited and re-entered the chroot, and ran update_chroot, but update_chroot requires python. So I'm stuck with a busted chroot.

Any recovery tips would be greatly appreciated.

Simon

Yunlian Jiang

unread,
Jul 27, 2017, 2:17:43 PM7/27/17
to Simon Que, chromium-os-dev
Can you try to remove the chroot and recreate the chroot?
> --
> --
> Chromium OS Developers mailing list: chromiu...@chromium.org
> View archives, change email options, or unsubscribe:
> http://groups.google.com/a/chromium.org/group/chromium-os-dev?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Chromium OS dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to chromium-os-d...@chromium.org.

Stéphane Marchesin

unread,
Jul 27, 2017, 4:58:29 PM7/27/17
to Yunlian Jiang, Daniel Kurtz, Simon Que, chromium-os-dev
I'm also getting this. Is it related to this change?

https://chromium-review.googlesource.com/#/c/583973/

Stéphane Marchesin

unread,
Jul 27, 2017, 5:00:59 PM7/27/17
to Yunlian Jiang, Daniel Kurtz, Simon Que, chromium-os-dev
FWIW I worked around it by doing cp /usr/bin/python2 /usr/bin/python.

Simon Que

unread,
Jul 27, 2017, 5:02:40 PM7/27/17
to Stéphane Marchesin, Yunlian Jiang, Daniel Kurtz, chromium-os-dev
I followed the suggestion of recreating the chroot, but that was a very long process and I don't recommend it.


>>
>> --
>> --
>> Chromium OS Developers mailing list: chromiu...@chromium.org
>> View archives, change email options, or unsubscribe:
>> http://groups.google.com/a/chromium.org/group/chromium-os-dev?hl=en
>>
>> ---
>> You received this message because you are subscribed to the Google Groups "Chromium OS dev" group.
>> To unsubscribe from this group and stop receiving emails from it, send an email to chromium-os-dev+unsubscribe@chromium.org.
>>

Prathmesh Prabhu Chromium

unread,
Jul 27, 2017, 7:39:40 PM7/27/17
to Simon Que, Stéphane Marchesin, ejca...@google.com, Yunlian Jiang, Daniel Kurtz, chromium-os-dev


>>
>> --
>> --
>> Chromium OS Developers mailing list: chromiu...@chromium.org
>> View archives, change email options, or unsubscribe:
>> http://groups.google.com/a/chromium.org/group/chromium-os-dev?hl=en
>>
>> ---
>> You received this message because you are subscribed to the Google Groups "Chromium OS dev" group.
>> To unsubscribe from this group and stop receiving emails from it, send an email to chromium-os-d...@chromium.org.
>>

Daniel Kurtz

unread,
Jul 27, 2017, 11:50:35 PM7/27/17
to Prathmesh Prabhu Chromium, Simon Que, Stéphane Marchesin, ejca...@google.com, Yunlian Jiang, chromium-os-dev
Argh.  This is almost definitely my fault.

It was actually this set of patches that change "app-admin/eselect-python" to "app-eselect/eselect-python":

Everything seems to be working on the bots and work when creating a new sdk.

However, there is race during update_chroot in an existing chroot where app-admin/eselect-python is unmerged first to resolve the app-eselect/eselect-python blocker (which removes python-wrapper), while in parallel a new python is being emerged, which fails b/c python-wrapper was just removed.  This results in a chroot without a working python.  Note that update_chroot is run automatically as an earlier step during both ./setup_board and ./build_packages.

Here is a bug to track this:

As marcheu suggested, a workaround is to do something like this in the chroot:

sudo rm /usr/bin/python
sudo ln -s /usr/bin/python /usr/bin/python2

Looks like I know what I'll be investigating on my last day here in Taipei...

Sorry for the breakage.

-Dan


>>
>> --
>> --
>> Chromium OS Developers mailing list: chromiu...@chromium.org
>> View archives, change email options, or unsubscribe:
>> http://groups.google.com/a/chromium.org/group/chromium-os-dev?hl=en
>>
>> ---
>> You received this message because you are subscribed to the Google Groups "Chromium OS dev" group.
>> To unsubscribe from this group and stop receiving emails from it, send an email to chromium-os-dev+unsubscribe@chromium.org.
>>

Tomasz Figa

unread,
Jul 28, 2017, 12:24:33 AM7/28/17
to Chromium OS dev, ppr...@chromium.org, sq...@chromium.org, mar...@google.com, ejca...@google.com, yun...@google.com
I think you might also want to execute "sudo eselect python python2.7" after the update_chroot succeeds, as it doesn't seem to bring the original symbol back and that could lead to your python selection being inconsistent with what is set in eselect python.

Best regards,
Tomasz

>>
>> --
>> --
>> Chromium OS Developers mailing list: chromiu...@chromium.org
>> View archives, change email options, or unsubscribe:
>> http://groups.google.com/a/chromium.org/group/chromium-os-dev?hl=en
>>
>> ---
>> You received this message because you are subscribed to the Google Groups "Chromium OS dev" group.
>> To unsubscribe from this group and stop receiving emails from it, send an email to chromium-os-d...@chromium.org.
>>

Tomasz Figa

unread,
Jul 28, 2017, 12:25:35 AM7/28/17
to Chromium OS dev, ppr...@chromium.org, sq...@chromium.org, mar...@google.com, ejca...@google.com, yun...@google.com
It's "sudo eselect python set python2.7" of course. Sorry for the noise.
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages