dreamingspires/mMass

TypeError: DC.DrawText(): arguments did not match any overloaded call: argument 2 has unexpected type 'numpy.float64'

Opened this issue · 0 comments

Traceback (most recent call last):

  File "/usr/lib/python3.10/site-packages/mmass.py", line 45, in OnInit
    self.frame = mainFrame(None, -1, "mMass")

  File "/usr/lib/python3.10/site-packages/gui/main_frame.py", line 141, in __init__
    self.makeGUI()

  File "/usr/lib/python3.10/site-packages/gui/main_frame.py", line 1084, in makeGUI
    self.spectrumPanel = panelSpectrum(self, self.documents)

  File "/usr/lib/python3.10/site-packages/gui/panel_spectrum.py", line 60, in __init__
    self.makeGUI()

  File "/usr/lib/python3.10/site-packages/gui/panel_spectrum.py", line 71, in makeGUI
    self.makeSpectrumCanvas()

  File "/usr/lib/python3.10/site-packages/gui/panel_spectrum.py", line 92, in makeSpectrumCanvas
    self.spectrumCanvas.draw(self.container)

  File "/usr/lib/python3.10/site-packages/mspy/plot_canvas.py", line 1149, in draw
    dc.DrawText(self.properties["xLabel"], xLabelPos[0], xLabelPos[1])

TypeError: DC.DrawText(): arguments did not match any overloaded call:
  overload 1: argument 2 has unexpected type 'numpy.float64'
  overload 2: argument 2 has unexpected type 'numpy.float64'

-------------------------
mMass: 6.0.2
Python: ('3', '10', '8')
wxPython: 4.2.0 gtk3 (phoenix) wxWidgets 3.2.1
NumPy: 1.23.5
-------------------------
Architecture: ('64bit', 'ELF')
Machine: x86_64
Platform: Linux-6.0.12-arch1-1-x86_64-with-glibc2.36
Processor: 
System: Linux
Mac: ('', ('', '', ''), '')
MSW: ('', '', '', '')
-------------------------
Add your comments:

I was about to update https://aur.archlinux.org/packages/mmass and got it to build. Sadly, crashes on startup.