Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Displaycal is not strating on windows, multiple errors. #473

Open
roberth1990 opened this issue Dec 24, 2024 · 1 comment
Open

Displaycal is not strating on windows, multiple errors. #473

roberth1990 opened this issue Dec 24, 2024 · 1 comment

Comments

@roberth1990
Copy link

Describe the bug
Displaycal is not strating on windows, multiple errors.

PS C:\Users\rober> python -m DisplayCAL
Acquired lock file: <DisplayCAL.main.AppLock object at 0x000001F194F5AE00>
__main__.py 3.9.14 2024-10-15T23:51:58Z
Windows 10 Home Version 2009 Build 22631.4602 x86_64
Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr  5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
CA file C:\Users\rober\AppData\Local\Programs\Python\Python310\lib\site-packages\certifi\cacert.pem
Faulthandler
wxPython 4.2.2 msw (phoenix) wxWidgets 3.2.6
Encoding: utf-8
File system encoding: utf-8
Loading C:\Users\rober\AppData\Roaming\DisplayCAL\DisplayCAL.ini
Existing client using port 15411
Connecting to 15411...
Connection to 127.0.0.1:15411 failed: [WinError 10061] No connection could be made because the target machine actively refused it
listening
writing to lock file: port: 49962
No module named 'comtypes.gen'
Error - could not import WMI: No module named 'wmi'
Starting up...
Audio module: wx 4.2.2
Enumerating display devices and communication ports...
C:\Users\rober\AppData\Roaming\DisplayCAL\dl\Argyll_V2.3.1\bin
ArgyllCMS 2.3.1c
Argyll has virtual display support
...ok.
Checking video card gamma table access for display 1...
Verify: 'test.cal' IS loaded (discrepancy 0.0%)
...ok.
Initializing GUI...

NoneType: None
┌──────────────────────────────────────────────────────────────────────────────┐
│ Traceback (most recent call last):                                           │
│   File                                                                       │
│ "C:\Users\rober\AppData\Local\Programs\Python\Python310\lib\site-packages\DisplayCAL\xh_filebrowsebutton.py", │
│ line 28, in DoCreateResource                                                 │
│     w = self._class(                                                         │
│   File                                                                       │
│ "C:\Users\rober\AppData\Local\Programs\Python\Python310\lib\site-packages\DisplayCAL\wxwindows.py", │
│ line 3185, in __init__                                                       │
│     filebrowse.FileBrowseButton.__init__(self, *arguments, **namedarguments) │
│   File                                                                       │
│ "C:\Users\rober\AppData\Local\Programs\Python\Python310\lib\site-packages\wx\lib\filebrowsebutton.py", │
│ line 76, in __init__                                                         │
│     self.createDialog(parent, id, pos, size, style, name )                   │
│   File                                                                       │
│ "C:\Users\rober\AppData\Local\Programs\Python\Python310\lib\site-packages\DisplayCAL\wxwindows.py", │
│ line 3334, in createDialog                                                   │
│     self.browseButton = self.createBrowseButton()                            │
│   File                                                                       │
│ "C:\Users\rober\AppData\Local\Programs\Python\Python310\lib\site-packages\DisplayCAL\wxwindows.py", │
│ line 3310, in createBrowseButton                                             │
│     button = GenBitmapButton(                                                │
│   File                                                                       │
│ "C:\Users\rober\AppData\Local\Programs\Python\Python310\lib\site-packages\DisplayCAL\wxfixes.py", │
│ line 1200, in __init__                                                       │
│     set_bitmap_labels(self)                                                  │
│   File                                                                       │
│ "C:\Users\rober\AppData\Local\Programs\Python\Python310\lib\site-packages\DisplayCAL\wxfixes.py", │
│ line 990, in set_bitmap_labels                                               │
│     btn.SetBitmapDisabled(get_bitmap_disabled(bitmap))                       │
│ wx._core.wxAssertionError: C++ assertion "which == State_Normal" failed at   │
│ ..\..\src\msw\anybutton.cpp(819) in wxAnyButton::DoSetBitmap(): Must set     │
│ normal bitmap with the new size first                                        │
└──────────────────────────────────────────────────────────────────────────────┘
NoneType: None
┌──────────────────────────────────────────────────────────────────────────────┐
│ Traceback (most recent call last):                                           │
│   File                                                                       │
│ "C:\Users\rober\AppData\Local\Programs\Python\Python310\lib\site-packages\DisplayCAL\xh_filebrowsebutton.py", │
│ line 28, in DoCreateResource                                                 │
│     w = self._class(                                                         │
│   File                                                                       │
│ "C:\Users\rober\AppData\Local\Programs\Python\Python310\lib\site-packages\DisplayCAL\wxwindows.py", │
│ line 3185, in __init__                                                       │
│     filebrowse.FileBrowseButton.__init__(self, *arguments, **namedarguments) │
│   File                                                                       │
│ "C:\Users\rober\AppData\Local\Programs\Python\Python310\lib\site-packages\wx\lib\filebrowsebutton.py", │
│ line 76, in __init__                                                         │
│     self.createDialog(parent, id, pos, size, style, name )                   │
│   File                                                                       │
│ "C:\Users\rober\AppData\Local\Programs\Python\Python310\lib\site-packages\DisplayCAL\wxwindows.py", │
│ line 3334, in createDialog                                                   │
│     self.browseButton = self.createBrowseButton()                            │
│   File                                                                       │
│ "C:\Users\rober\AppData\Local\Programs\Python\Python310\lib\site-packages\DisplayCAL\wxwindows.py", │
│ line 3310, in createBrowseButton                                             │
│     button = GenBitmapButton(                                                │
│   File                                                                       │
│ "C:\Users\rober\AppData\Local\Programs\Python\Python310\lib\site-packages\DisplayCAL\wxfixes.py", │
│ line 1200, in __init__                                                       │
│     set_bitmap_labels(self)                                                  │
│   File                                                                       │
│ "C:\Users\rober\AppData\Local\Programs\Python\Python310\lib\site-packages\DisplayCAL\wxfixes.py", │
│ line 990, in set_bitmap_labels                                               │
│     btn.SetBitmapDisabled(get_bitmap_disabled(bitmap))                       │
│ wx._core.wxAssertionError: C++ assertion "which == State_Normal" failed at   │
│ ..\..\src\msw\anybutton.cpp(819) in wxAnyButton::DoSetBitmap(): Must set     │
│ normal bitmap with the new size first                                        │
└──────────────────────────────────────────────────────────────────────────────┘
input_value_clipping_bmp should have been hidden
NoneType: None
┌──────────────────────────────────────────────────────────────────────────────┐
│ Traceback (most recent call last):                                           │
│   File                                                                       │
│ "C:\Users\rober\AppData\Local\Programs\Python\Python310\lib\site-packages\DisplayCAL\xh_filebrowsebutton.py", │
│ line 28, in DoCreateResource                                                 │
│     w = self._class(                                                         │
│   File                                                                       │
│ "C:\Users\rober\AppData\Local\Programs\Python\Python310\lib\site-packages\DisplayCAL\wxwindows.py", │
│ line 3185, in __init__                                                       │
│     filebrowse.FileBrowseButton.__init__(self, *arguments, **namedarguments) │
│   File                                                                       │
│ "C:\Users\rober\AppData\Local\Programs\Python\Python310\lib\site-packages\wx\lib\filebrowsebutton.py", │
│ line 76, in __init__                                                         │
│     self.createDialog(parent, id, pos, size, style, name )                   │
│   File                                                                       │
│ "C:\Users\rober\AppData\Local\Programs\Python\Python310\lib\site-packages\DisplayCAL\wxwindows.py", │
│ line 3334, in createDialog                                                   │
│     self.browseButton = self.createBrowseButton()                            │
│   File                                                                       │
│ "C:\Users\rober\AppData\Local\Programs\Python\Python310\lib\site-packages\DisplayCAL\wxwindows.py", │
│ line 3310, in createBrowseButton                                             │
│     button = GenBitmapButton(                                                │
│   File                                                                       │
│ "C:\Users\rober\AppData\Local\Programs\Python\Python310\lib\site-packages\DisplayCAL\wxfixes.py", │
│ line 1200, in __init__                                                       │
│     set_bitmap_labels(self)                                                  │
│   File                                                                       │
│ "C:\Users\rober\AppData\Local\Programs\Python\Python310\lib\site-packages\DisplayCAL\wxfixes.py", │
│ line 990, in set_bitmap_labels                                               │
│     btn.SetBitmapDisabled(get_bitmap_disabled(bitmap))                       │
│ wx._core.wxAssertionError: C++ assertion "which == State_Normal" failed at   │
│ ..\..\src\msw\anybutton.cpp(819) in wxAnyButton::DoSetBitmap(): Must set     │
│ normal bitmap with the new size first                                        │
└──────────────────────────────────────────────────────────────────────────────┘
NoneType: None
┌──────────────────────────────────────────────────────────────────────────────┐
│ Traceback (most recent call last):                                           │
│   File                                                                       │
│ "C:\Users\rober\AppData\Local\Programs\Python\Python310\lib\site-packages\DisplayCAL\xh_filebrowsebutton.py", │
│ line 28, in DoCreateResource                                                 │
│     w = self._class(                                                         │
│   File                                                                       │
│ "C:\Users\rober\AppData\Local\Programs\Python\Python310\lib\site-packages\DisplayCAL\wxwindows.py", │
│ line 3185, in __init__                                                       │
│     filebrowse.FileBrowseButton.__init__(self, *arguments, **namedarguments) │
│   File                                                                       │
│ "C:\Users\rober\AppData\Local\Programs\Python\Python310\lib\site-packages\wx\lib\filebrowsebutton.py", │
│ line 76, in __init__                                                         │
│     self.createDialog(parent, id, pos, size, style, name )                   │
│   File                                                                       │
│ "C:\Users\rober\AppData\Local\Programs\Python\Python310\lib\site-packages\DisplayCAL\wxwindows.py", │
│ line 3334, in createDialog                                                   │
│     self.browseButton = self.createBrowseButton()                            │
│   File                                                                       │
│ "C:\Users\rober\AppData\Local\Programs\Python\Python310\lib\site-packages\DisplayCAL\wxwindows.py", │
│ line 3310, in createBrowseButton                                             │
│     button = GenBitmapButton(                                                │
│   File                                                                       │
│ "C:\Users\rober\AppData\Local\Programs\Python\Python310\lib\site-packages\DisplayCAL\wxfixes.py", │
│ line 1200, in __init__                                                       │
│     set_bitmap_labels(self)                                                  │
│   File                                                                       │
│ "C:\Users\rober\AppData\Local\Programs\Python\Python310\lib\site-packages\DisplayCAL\wxfixes.py", │
│ line 990, in set_bitmap_labels                                               │
│     btn.SetBitmapDisabled(get_bitmap_disabled(bitmap))                       │
│ wx._core.wxAssertionError: C++ assertion "which == State_Normal" failed at   │
│ ..\..\src\msw\anybutton.cpp(819) in wxAnyButton::DoSetBitmap(): Must set     │
│ normal bitmap with the new size first                                        │
└──────────────────────────────────────────────────────────────────────────────┘
NoneType: None
┌──────────────────────────────────────────────────────────────────────────────┐
│ Traceback (most recent call last):                                           │
│   File                                                                       │
│ "C:\Users\rober\AppData\Local\Programs\Python\Python310\lib\site-packages\wx\core.py", │
│ line 3427, in <lambda>                                                       │
│     lambda event: event.callable(*event.args, **event.kw) )                  │
│   File                                                                       │
│ "C:\Users\rober\AppData\Local\Programs\Python\Python310\lib\site-packages\DisplayCAL\display_cal.py", │
│ line 19520, in setup_frame                                                   │
│     app.frame = MainFrame(self.worker)                                       │
│   File                                                                       │
│ "C:\Users\rober\AppData\Local\Programs\Python\Python310\lib\site-packages\DisplayCAL\display_cal.py", │
│ line 1874, in __init__                                                       │
│     self.init_frame()                                                        │
│   File                                                                       │
│ "C:\Users\rober\AppData\Local\Programs\Python\Python310\lib\site-packages\DisplayCAL\display_cal.py", │
│ line 2079, in init_frame                                                     │
│     self.mr_settings_panel = res.LoadPanel(self.calpanel, "panel")           │
│ wx._core.wxAssertionError: C++ assertion ""Assert failure"" failed at        │
│ ..\..\src\common\sizer.cpp(678) in wxSizerItem::SetDimension(): can't set    │
│ size of uninitialized sizer item                                             │
└──────────────────────────────────────────────────────────────────────────────┘

To Reproduce
Steps to reproduce the behavior:

Followed this guide:

https://github.com/eoyilmaz/displaycal-py3/blob/develop/docs/install_instructions_windows.md

Expected behavior

That displaycal starts normally

Screenshots
If applicable, add screenshots to help explain your problem.

Versions (please complete the following information):

  • OS: Windows 11
  • Python Version: 3.10.11
  • ArgyllCMS Version: 2.3.1c
  • DisplayCAL Version: 3.9.14
@Adam-Color
Copy link

Seems to be a challenge to get DisplayCAL working on Windows at the moment, there's another bug report (#462) with multiple people sharing similar errors. I will say it works fine on macOS and Linux (the main dev doesn't often work on Windows) so if those operating systems are an option for you, I would recommend switching over. I will say that you're using a much older version of ArgyllCMS (newest is 3.3.0) so perhaps if you update that you may get somewhere?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants