Crash with BrokenPipeError when piping sizes to less

Bug #1482604 reported by Graeme Hewson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
wajig (Ubuntu)
New
Undecided
Graham Williams

Bug Description

Wajig 2.17.

Here I enter "q" in less:

$ wajig sizes|less
Traceback (most recent call last):
  File "/usr/share/wajig/wajig.py", line 1087, in <module>
    main()
  File "/usr/share/wajig/wajig.py", line 1083, in main
    result.func(result)
  File "/usr/share/wajig/commands.py", line 895, in sizes
    util.sizes(args.packages)
  File "/usr/share/wajig/util.py", line 494, in sizes
    print(message)
BrokenPipeError: [Errno 32] Broken pipe

Revision history for this message
Graham Williams (gjwkayon) wrote :

Tested current release 4.0.3. This bug is no longer present.

Changed in wajig (Ubuntu):
status: New → Fix Released
assignee: nobody → Graham Williams (gjwkayon)
Revision history for this message
Graeme Hewson (ghewson) wrote :

Unfortunately it's still failing for me. Ubuntu 22.04 and Kubuntu 23.04.

$ wajig --version
wajig 4.0.3

$ wajig sizes|less
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 1081, in sizes
    util.sizes(args.packages)
  File "/usr/lib/python3/dist-packages/wajig/util.py", line 598, in sizes
    print(message)
BrokenPipeError: [Errno 32] Broken pipe

Changed in wajig (Ubuntu):
status: Fix Released → New
Revision history for this message
Graeme Hewson (ghewson) wrote :

Crash occurs when I give the command 'q' to less.

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.