跳至主要内容

Cross SDK is python26 incompatible

As Title

While this is supposed to be true, at a glance of the error message. It is really difficult to find a community prof in mail/forum-loop.

Note if I come back in the future.

The error message

[root@GitGSC chromiumos]$ cros_sdk
Traceback (most recent call last):
  File "/opt/chrome/ChromiumOS/chromite/bin/cros_sdk", line 77, in <module>
    from chromite.lib import commandline
  File "/opt/chrome/ChromiumOS/chromite/lib/commandline.py", line 26, in <module>
    from chromite.lib import constants
  File "/opt/chrome/ChromiumOS/chromite/lib/constants.py", line 410
    'ARM_USERDEBUG',
                   ^
SyntaxError: invalid syntax

The google group thread talking about python version things

Bernhard,

The “cros_sdk” script uses shebang “/usr/bin/python2” (see chromite/bin/cros_sdk). Perhaps that’s why /usr/bin/python is always invoked.

You’re pretty much on your own out there, though. I do not think we want to go back to support 2.6. In fact, some scripts have even gone to 3.4 now.

Cheers, Nam

And you’d better upgrade your distributed python

Alas, the cross SDK will do lots of sudo during its execution, a simple PATH hack for the running user will not go too much further.

 

评论

此博客中的热门博文

XEmacs 21.5 beta 35 "kohlrabi" has been released.

If you are an old XEmacs user, you may feel happy to see this from https://www.xemacs.org/.    After ten years, XEmacs released a new version 21.5. So there's still many people cares about XEmacs. The XEmacs' source repo have been moved from altassian Bitbucket to https://heptapod.net/. As Bitbucket have been dropped Mercurial support many years ago.

Fido-mode

Today, I've just discovered the Fido mode, a modified `icomplete` minor mode. `icomplete` used to be one of my favorite mode days back to my XEmacs days. Pros: It is way fast. It is much more smart in terms of find the complete candidate that you want mostly.  Cons: It does not integrate well enough with tramp yet.    `fido-mode` is a core package of Emacs 27+, and there's a vertical version available after Emacs 28+ named `fido-vertical-mode`. UPDATE: I am back with ido now