Re: [chromium-dev] Missing python module in cros build-packages?

24 views
Skip to first unread message

Mike Frysinger

unread,
Jun 3, 2024, 10:55:57 AMJun 3
to seanan...@gmail.com, chromium-os-dev
[ -> chromium-os-dev ]

this is an OS question, not browser

please verify your source tree is fully synced.  chromite.third_party.six is included directly in the CrOS source tree.
-mike

On Mon, Jun 3, 2024 at 10:13 AM Sean Andrade <seanan...@gmail.com> wrote:
Hello,

I was trying to get the source for and build ChromiumOS following the Developer Guide and followed all steps up until the build-packages command. When running this command, the module chromite.third_party.six.moves gets imported, but it does not exist for me. I checked the source online and could not find such a module either, although chromite.third_party.six does exist in both cases. Is there a moves module, and if so, where can I find it?

Thank you,
Sean

Exact error message if needed (the file path is what my ~/chromiumos is linked to):
$ cros build-packages --board=amd64-generic --autosetgov --autosetgov-sticky
cros: Unhandled exception:
Traceback (most recent call last):
 File "/run/media/sean/6b80009f-ace6-41f5-8961-e5e2a9ada094/chromiumos/chromite/bin/cros", line 213, in <module>
   DoMain()
 File "/run/media/sean/6b80009f-ace6-41f5-8961-e5e2a9ada094/chromiumos/chromite/bin/cros", line 209, in DoMain
   commandline.ScriptWrapperMain(FindTarget)
 File "/run/media/sean/6b80009f-ace6-41f5-8961-e5e2a9ada094/chromiumos/chromite/lib/commandline.py", line 1582, in ScriptWrapperMain
   ret = target(argv[1:])
         ^^^^^^^^^^^^^^^^
 File "/run/media/sean/6b80009f-ace6-41f5-8961-e5e2a9ada094/chromiumos/chromite/scripts/cros.py", line 96, in main
   parser = GetOptions(namespace.subcommand)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/run/media/sean/6b80009f-ace6-41f5-8961-e5e2a9ada094/chromiumos/chromite/scripts/cros.py", line 44, in GetOptions
   class_def = command.ImportCommand(cmd_name)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/run/media/sean/6b80009f-ace6-41f5-8961-e5e2a9ada094/chromiumos/chromite/cli/command.py", line 67, in ImportCommand
   importlib.import_module(".".join(module_parts))
 File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
   return _bootstrap._gcd_import(name[level:], package, level)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
 File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
 File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
 File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
 File "<frozen importlib._bootstrap_external>", line 995, in exec_module
 File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
 File "/run/media/sean/6b80009f-ace6-41f5-8961-e5e2a9ada094/chromiumos/chromite/cli/cros/cros_build_packages.py", line 28, in <module>
   from chromite.service import sysroot
 File "/run/media/sean/6b80009f-ace6-41f5-8961-e5e2a9ada094/chromiumos/chromite/service/sysroot.py", line 30, in <module>
   from chromite.lib import binpkg
 File "/run/media/sean/6b80009f-ace6-41f5-8961-e5e2a9ada094/chromiumos/chromite/lib/binpkg.py", line 27, in <module>
   from chromite.lib import gerrit
 File "/run/media/sean/6b80009f-ace6-41f5-8961-e5e2a9ada094/chromiumos/chromite/lib/gerrit.py", line 16, in <module>
   from chromite.lib import gob_util
 File "/run/media/sean/6b80009f-ace6-41f5-8961-e5e2a9ada094/chromiumos/chromite/lib/gob_util.py", line 29, in <module>
   from chromite.third_party.oauth2client import gce
 File "/run/media/sean/6b80009f-ace6-41f5-8961-e5e2a9ada094/chromiumos/chromite/third_party/oauth2client/gce.py", line 22, in <module>
   from chromite.third_party.six.moves import urllib
ModuleNotFoundError: No module named 'chromite.third_party.six.moves'

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/106febae-b8f8-4a25-817c-5bf42e5ff11dn%40chromium.org.
Reply all
Reply to author
Forward
0 new messages