[Bug 2114160] Re: /usr/share/apport/whoopsie-upload-all:FileNotFoundError:/usr/share/apport/whoopsie-upload-all at 246:main:collect_info:process_report:write:_write_ascii_item

Benjamin Drung 2114160 at bugs.launchpad.net
Thu Jun 12 12:23:11 UTC 2025


This is caused by /usr/share/apport/package-hooks/source_cheese.py
shipped by cheese. The relevant code sets:

```
def add_info(report, ui):
    # [...]
    os.popen("env GST_DEBUG=*cheese*:3 cheese 2>&1 | tee /dev/tty >>~/.cache/CheeseDebug.txt")
    report['CheeseDebug.txt'] = ('.cache/CheeseDebug.txt', False)
```

But .cache/CheeseDebug.txt might not be generated.

** Also affects: cheese (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/2114160

Title:
  /usr/share/apport/whoopsie-upload-
  all:FileNotFoundError:/usr/share/apport/whoopsie-upload-
  all at 246:main:collect_info:process_report:write:_write_ascii_item

Status in apport package in Ubuntu:
  New
Status in cheese package in Ubuntu:
  New

Bug description:
  ```
  Traceback (most recent call last):
    File "/usr/share/apport/whoopsie-upload-all", line 246, in <module>
      main()
    File "/usr/share/apport/whoopsie-upload-all", line 228, in main
      stamps = collect_info()
               ^^^^^^^^^^^^^^
    File "/usr/share/apport/whoopsie-upload-all", line 162, in collect_info
      res = process_report(r)
            ^^^^^^^^^^^^^^^^^
    File "/usr/share/apport/whoopsie-upload-all", line 137, in process_report
      r.write(f)
    File "/usr/lib/python3/dist-packages/problem_report.py", line 554, in write
      self._write_ascii_item(file, k)
    File "/usr/lib/python3/dist-packages/problem_report.py", line 606, in _write_ascii_item
      with open(v[0], "rb") as f:  # file name
           ^^^^^^^^^^^^^^^^
  FileNotFoundError: [Errno 2] No such file or directory: '.cache/CheeseDebug.txt'
  ```

  The Ubuntu Error Tracker has been receiving reports about a problem regarding apport.  This problem was most recently seen with package version 2.32.0-0ubuntu5.2, the problem page at https://errors.ubuntu.com/problem/45db2a952e5f7bdd962b0b760fa6658ea030f800 contains more details, including versions of packages affected, stacktrace or traceback, and individual crash reports.
  If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://forms.canonical.com/reports/.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/2114160/+subscriptions




More information about the foundations-bugs mailing list