unable to start repo tool

Bug #1973622 reported by Thomas Epperson
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
repo (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When starting the repo command (with no arguments) in a initialized repo folder, it fails to start. Here is the traceback of the failure output on the shell.

Traceback (most recent call last):
  File "/home/tepperson/yocto/.repo/repo/main.py", line 56, in <module>
    from subcmds.version import Version
  File "/home/tepperson/yocto/.repo/repo/subcmds/__init__.py", line 35, in <module>
    mod = __import__(__name__,
  File "/home/tepperson/yocto/.repo/repo/subcmds/help.py", line 20, in <module>
    from formatter import AbstractFormatter, DumbWriter
ModuleNotFoundError: No module named 'formatter'

Tags: 22.04 ubuntu
tags: added: 22.04 ubuntu
Revision history for this message
Mark Salyzyn (salyzyn) wrote :

Why is this not being fixed? It was reported in May! There is no way to develop Android open source without this, as they depend on the repo tool to pull in their archive. I believe the issue is the repo package needs to be updated for python 3.4 since formatter was deprecated.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in repo (Ubuntu):
status: New → Confirmed
Revision history for this message
Yashas Javali (yashjavali-tss) wrote :

While the bug is addressed is there any workaround available?

Revision history for this message
Alejandro Mery (amery) wrote :

problem still present :(

Revision history for this message
Nuha A (nbahaa) wrote :

The problem is still there, is there any updates?

Revision history for this message
Sam Liddicott (sam-liddicott) wrote :

Can you work around by passing:

--repo-url=https://gerrit.googlesource.com/git-repo/clone.bundle

to your repo init command?

I downloaded a fresh local bundle:
wget https://gerrit.googlesource.com/git-repo/clone.bundle

and pass: --repo-url=/paht/to/clone.bundle

and it works for my situation, maybe it will help

Revision history for this message
Siguza (siguza) wrote :

This was fixed upstream in April 2021: https://gerrit.googlesource.com/git-repo/+/0888a083ec6a23a75d3e681f08ef242acd862573
Versions 2.14 and later do not reference the formatter module anywhere, and neither do the source downloads for this package, as far as I can tell.

My best guess is that something pulls in a years-old version of this tool, but I have no idea what, why, or from where.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.