← Back to team overview

ubuntustudio-bugs team mailing list archive

[Bug 2115430] Re: The "Create synthetic ICC profile" feature errors with "configparser.NoSectionError: No section: 'Default'" when the "DisplayCAL-synthprofile.ini" user configuration file lacks a [Default] section

 

This is fixed in Questing, but Noble and Plucky could probably use a
backport of the fix. I'm not exactly motivated to fix in Oracular since
it goes EOL in less than a month.

** Changed in: displaycal-py3 (Ubuntu)
       Status: New => Triaged

** Changed in: displaycal-py3 (Ubuntu)
   Importance: Undecided => Medium

** Also affects: displaycal-py3 (Ubuntu Noble)
   Importance: Undecided
       Status: New

** Also affects: displaycal-py3 (Ubuntu Oracular)
   Importance: Undecided
       Status: New

** Also affects: displaycal-py3 (Ubuntu Plucky)
   Importance: Undecided
       Status: New

** Also affects: displaycal-py3 (Ubuntu Questing)
   Importance: Medium
       Status: Triaged

** Changed in: displaycal-py3 (Ubuntu Questing)
       Status: Triaged => Fix Released

** Changed in: displaycal-py3 (Ubuntu Plucky)
       Status: New => Triaged

** Changed in: displaycal-py3 (Ubuntu Oracular)
       Status: New => Deferred

** Changed in: displaycal-py3 (Ubuntu Noble)
       Status: New => Triaged

** Changed in: displaycal-py3 (Ubuntu Noble)
   Importance: Undecided => Medium

** Changed in: displaycal-py3 (Ubuntu Oracular)
       Status: Deferred => Won't Fix

** Changed in: displaycal-py3 (Ubuntu Plucky)
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Studio Bugs, which is subscribed to displaycal-py3 in Ubuntu.
https://bugs.launchpad.net/bugs/2115430

Title:
  The "Create synthetic ICC profile" feature errors with
  "configparser.NoSectionError: No section: 'Default'" when the
  "DisplayCAL-synthprofile.ini" user configuration file lacks a
  [Default] section

Status in displaycal-py3 package in Ubuntu:
  Fix Released
Status in displaycal-py3 source package in Noble:
  Triaged
Status in displaycal-py3 source package in Oracular:
  Won't Fix
Status in displaycal-py3 source package in Plucky:
  Triaged
Status in displaycal-py3 source package in Questing:
  Fix Released

Bug description:
  ## Steps to reproduce

  1. Ensure that the ~/.config/DisplayCAL/DisplayCAL-synthprofile.ini file doesn't exist.
  2. Launch DisplayCAL.
  3. Select the "Create synthetic ICC profile" option in the Tools > Advanced menu.

  ## Current behavior

  Program errors with the following traceback:

  ```text
  No section: 'Default'

  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/DisplayCAL/display_cal.py", line 12273, in synthicc_create_handler
      self.init_synthiccframe()
    File "/usr/lib/python3/dist-packages/DisplayCAL/display_cal.py", line 2393, in init_synthiccframe
      config.initcfg("synthprofile", SynthICCFrame.cfg)
    File "/usr/lib/python3/dist-packages/DisplayCAL/config.py", line 1840, in initcfg
      setcfg("calibration.file", defaults["calibration.file"], cfg=cfg)
    File "/usr/lib/python3/dist-packages/DisplayCAL/config.py", line 2093, in setcfg
      cfg.set(configparser.DEFAULTSECT, name, value)
    File "/usr/lib/python3.12/configparser.py", line 880, in set
      raise NoSectionError(section) from None
  configparser.NoSectionError: No section: 'Default'
  ```

  ## Known workaround

  Manually create the ~/.config/DisplayCAL/DisplayCAL-synthprofile.ini
  file, with the following content:

  ```ini
  [Default]
  ```

  ## Additional information

  This bug has been fixed upstream by the following commit:
  https://github.com/eoyilmaz/displaycal-py3/commit/ccbcf67f

  ProblemType: Bug
  DistroRelease: Ubuntu 24.04
  Package: displaycal 3.9.11-2ubuntu0.24.04.1
  ProcVersionSignature: Ubuntu 6.11.0-26.26~24.04.1-generic 6.11.11
  Uname: Linux 6.11.0-26-generic x86_64
  NonfreeKernelModules: zfs
  ApportVersion: 2.28.1-0ubuntu3.7
  Architecture: amd64
  CasperMD5CheckResult: pass
  CurrentDesktop: KDE
  Date: Thu Jun 26 23:11:06 2025
  InstallationDate: Installed on 2025-02-04 (142 days ago)
  InstallationMedia: Ubuntu 24.04.1 LTS "Noble Numbat" - Release amd64 (20240827.1)
  SourcePackage: displaycal-py3
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/displaycal-py3/+bug/2115430/+subscriptions



References