falkTX / Cadence

Collection of tools useful for audio production
GNU General Public License v2.0
370 stars 80 forks source link

Unable to launch Claudia due to unexpected type 'float' arguments (patch) #327

Closed themanyone closed 1 year ago

themanyone commented 3 years ago

I was having trouble launching Claudia from the Fedora, disro package: Cadence-1.0.0-0.17.20210316gitc146ff9.fc35.x86_64

So I hacked around the errors with the following canvaspreviewframe.py.patch.txt

$ claudia
Using Tray Engine 'Qt'
Traceback (most recent call last):
  File "/usr/share/cadence/src/claudia.py", line 2768, in <module>
    gui = ClaudiaMainW()
  File "/usr/share/cadence/src/claudia.py", line 786, in __init__
    self.ui.miniCanvasPreview.init(self.scene, DEFAULT_CANVAS_WIDTH, DEFAULT_CANVAS_HEIGHT)
  File "/usr/share/cadence/src/canvaspreviewframe.py", line 76, in init
    self.setMinimumSize(self.fFakeWidth+padding,   self.fFakeHeight+padding)
TypeError: arguments did not match any overloaded call:
  setMinimumSize(self, int, int): argument 1 has unexpected type 'float'
  setMinimumSize(self, QSize): argument 1 has unexpected type 'float'
Yarkhan commented 2 years ago

Thank you. The patch works for me.

themanyone commented 1 year ago

Closing due to time expired