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

AttributeError: module 'numpy' has no attribute 'Int32'. Did you mean: 'int32' #417

Closed
eoyilmaz opened this issue Oct 15, 2024 · 0 comments · Fixed by #418
Closed

AttributeError: module 'numpy' has no attribute 'Int32'. Did you mean: 'int32' #417

eoyilmaz opened this issue Oct 15, 2024 · 0 comments · Fixed by #418

Comments

@eoyilmaz
Copy link
Owner

eoyilmaz commented Oct 15, 2024

Describe the bug

After merging #408 we started to have:

Found display device matching model description at index #0
/Users/eoyilmaz/Library/Application Support/DisplayCAL/storage/Display_#1_2024-10-15_08-50_100cdm²_D6500_2.2_F-S_1xCurve+MTX/Apple MacBook M2 13 (i1 Pro 2).ccss matches /Users/eoyilmaz/Library/Application Support/ArgyllCMS/Apple MacBook M2 13 (i1 Pro 2).ccss - using the latter
Loading calibration curves from file...
/Users/eoyilmaz/Library/Application Support/DisplayCAL/storage/Display_#1_2024-10-15_08-50_100cdm²_D6500_2.2_F-S_1xCurve+MTX/Display_#1_2024-10-15_08-50_100cdm²_D6500_2.2_F-S_1xCurve+MTX.icc
...ok.
NoneType: None
┌──────────────────────────────────────────────────────────────────────────────┐
│ Traceback (most recent call last):                                           │
│   File                                                                       │
│ "/Users/eoyilmaz/Documents/development/displaycal-py3/.venv/lib/python3.12/site-packages/wx/core.py", │
│ line 3427, in <lambda>                                                       │
│     lambda event: event.callable(*event.args, **event.kw) )                  │
│                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                    │
│   File                                                                       │
│ "/Users/eoyilmaz/Documents/development/displaycal-py3/.venv/lib/python3.12/site-packages/DisplayCAL/wxProfileInfo.py", │
│ line 981, in draw                                                            │
│     parent.client.DrawCanvas(                                                │
│   File                                                                       │
│ "/Users/eoyilmaz/Documents/development/displaycal-py3/.venv/lib/python3.12/site-packages/DisplayCAL/wxProfileInfo.py", │
│ line 395, in DrawCanvas                                                      │
│     self._DrawCanvas(graphics)                                               │
│   File                                                                       │
│ "/Users/eoyilmaz/Documents/development/displaycal-py3/.venv/lib/python3.12/site-packages/DisplayCAL/wxLUTViewer.py", │
│ line 666, in _DrawCanvas                                                     │
│     self.Draw(graphics, axis_x, axis_y)                                      │
│   File                                                                       │
│ "/Users/eoyilmaz/Documents/development/displaycal-py3/.venv/lib/python3.12/site-packages/DisplayCAL/wxenhancedplot.py", │
│ line 1576, in Draw                                                           │
│     self._Draw(graphics, xAxis, yAxis, dc)                                   │
│   File                                                                       │
│ "/Users/eoyilmaz/Documents/development/displaycal-py3/.venv/lib/python3.12/site-packages/DisplayCAL/wxenhancedplot.py", │
│ line 1772, in _Draw                                                          │
│     graphics.draw(dc)                                                        │
│   File                                                                       │
│ "/Users/eoyilmaz/Documents/development/displaycal-py3/.venv/lib/python3.12/site-packages/DisplayCAL/wxenhancedplot.py", │
│ line 790, in draw                                                            │
│     o.draw(dc, self.printerScale)                                            │
│   File                                                                       │
│ "/Users/eoyilmaz/Documents/development/displaycal-py3/.venv/lib/python3.12/site-packages/DisplayCAL/wxenhancedplot.py", │
│ line 653, in draw                                                            │
│     self._drawmarkers(dc, self.scaled, marker, size)                         │
│   File                                                                       │
│ "/Users/eoyilmaz/Documents/development/displaycal-py3/.venv/lib/python3.12/site-packages/DisplayCAL/wxenhancedplot.py", │
│ line 664, in _drawmarkers                                                    │
│     f(dc, coords, size)                                                      │
│   File                                                                       │
│ "/Users/eoyilmaz/Documents/development/displaycal-py3/.venv/lib/python3.12/site-packages/DisplayCAL/wxenhancedplot.py", │
│ line 715, in _plus                                                           │
│     dc.DrawLineList(lines.astype(np.Int32))                                  │
│                                  ^^^^^^^^                                    │
│   File                                                                       │
│ "/Users/eoyilmaz/Documents/development/displaycal-py3/.venv/lib/python3.12/site-packages/numpy/__init__.py", │
│ line 414, in __getattr__                                                     │
│     raise AttributeError("module {!r} has no attribute "                     │
│ AttributeError: module 'numpy' has no attribute 'Int32'. Did you mean:       │
│ 'int32'?                                                                     │
└──────────────────────────────────────────────────────────────────────────────┘

To Reproduce
Steps to reproduce the behavior:

  1. Open DisplayCAL
  2. Open profile information window
  3. or do a profiling and at the end click show profile information.

Expected behavior
No errors should occur.

Versions (please complete the following information):

  • OS: MacOS
  • Python Version: 3.11
  • ArgyllCMS Version: 3.3.0
  • DisplayCAL Version: 3.9.14.dev
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

Successfully merging a pull request may close this issue.

1 participant