Certain wajig commands generate AttributeError: 'Namespace' object has no attribute 'teach'

Bug #1989528 reported by Angelo
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
wajig (Ubuntu)
Fix Committed
Undecided
Graham Williams

Bug Description

Description: Ubuntu 22.04.1 LTS
Release: 22.04

wajig:
  Installed: 4.0.3
  Candidate: 4.0.3
  Version table:
 *** 4.0.3 500
        500 http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
        500 http://us.archive.ubuntu.com/ubuntu jammy/universe i386 Packages
        100 /var/lib/dpkg/status

So far I have experienced 3 commands that produce similar errors:

wajig doc
Traceback (most recent call last):
  File "/usr/bin/wajig", line 33, in <module>
    sys.exit(load_entry_point('wajig==4.0.3', 'console_scripts', 'wajig')())
  File "/usr/lib/python3/dist-packages/wajig/__init__.py", line 1209, in main
    result.func(result)
  File "/usr/lib/python3/dist-packages/wajig/commands.py", line 1273, in tutorial
    teach=args.teach, noop=args.noop)
AttributeError: 'Namespace' object has no attribute 'teach'

wajig purgeremoved
Traceback (most recent call last):
  File "/usr/bin/wajig", line 33, in <module>
    sys.exit(load_entry_point('wajig==4.0.3', 'console_scripts', 'wajig')())
  File "/usr/lib/python3/dist-packages/wajig/__init__.py", line 1209, in main
    result.func(result)
  File "/usr/lib/python3/dist-packages/wajig/commands.py", line 835, in purgeremoved
    packages = perform.execute(cmd, pipe=True, teach=args.teach, noop=args.noop)
AttributeError: 'Namespace' object has no attribute 'teach'

wajig purgeorphans
Traceback (most recent call last):
  File "/usr/bin/wajig", line 33, in <module>
    sys.exit(load_entry_point('wajig==4.0.3', 'console_scripts', 'wajig')())
  File "/usr/lib/python3/dist-packages/wajig/__init__.py", line 1209, in main
    result.func(result)
  File "/usr/lib/python3/dist-packages/wajig/commands.py", line 824, in purgeorphans
    perform.execute(command, root=True, log=True, teach=args.teach, noop=args.noop)
AttributeError: 'Namespace' object has no attribute 'teach'

It's possible that these are fixed in wajig 4.0.5 but I haven't been able to confirm.

Revision history for this message
wilk (j-cubizolles) wrote :

It's indeed fixed in 4.0.5 according to https://github.com/gjwgit/wajig/issues/4

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

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

Changed in wajig (Ubuntu):
status: New → Confirmed
Revision history for this message
Graham Williams (gjwkayon) wrote :

Yes, this has been fixed. Expecting to upload wajig 4.0.12 to the Debian repos soon.

Changed in wajig (Ubuntu):
assignee: nobody → Graham Williams (gjwkayon)
status: Confirmed → Fix Committed
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.