← Back to team overview

ubuntustudio-bugs team mailing list archive

[Bug 2115430] [NEW] 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

 

Public bug reported:

## 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)

** Affects: displaycal-py3 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug noble third-party-packages wayland-session

-- 
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:
  New

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



Follow ups