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

Opening the properties window the error message "too many arguments" appears #7

Open
julia-wh opened this issue May 16, 2023 · 1 comment

Comments

@julia-wh
Copy link

I am using PyNcView for the first time and everything worked so far until I got to the properties window.
As soon as I scroll down or do something else, I get the following error message:

File "C:\Users\Julia\anaconda3\lib\site-packages\xmlstore\gui_qt4.py", line 910, in paint
editorclass.displayValue(self,painter,option,index)
File "C:\Users\Julia\anaconda3\lib\site-packages\xmlstore\gui_qt4.py", line 839, in displayValue
qPixMap = cls.getPixMap(value,cls.width,cls.height,dpi)
File "C:\Users\Julia\anaconda3\lib\site-packages\xmlstore\gui_qt4.py", line 825, in getPixMap
qPixMap = cls.createPixMap(value,width,height,dpi)
File "C:\Users\Julia\anaconda3\lib\site-packages\xmlplot\gui_qt4.py", line 131, in createPixMap
qImage = QtGui.QImage(stringBuffer, width, height, QtGui.QImage.Format_ARGB32)
TypeError: arguments did not match any overloaded call:
QImage(): too many arguments
QImage(size: QSize, format: QImage.Format): argument 1 has unexpected type 'memoryview'
QImage(width: int, height: int, format: QImage.Format): argument 1 has unexpected type 'memoryview'
QImage(data: bytes, width: int, height: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: PyQt5.sip.voidptr, width: int, height: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: bytes, width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: PyQt5.sip.voidptr, width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(xpm: List[str]): argument 1 has unexpected type 'memoryview'
QImage(fileName: str, format: typing.Optional[str] = None): argument 1 has unexpected type 'memoryview'
QImage(a0: QImage): argument 1 has unexpected type 'memoryview'
QImage(variant: Any): too many arguments

It appears independently of the coordinates and the sliced dimensions I am looking at of the GETM warner test case.

Now I found out I can ignore it and at some point it disappears, but still wanted to tell you.

@markusReinert
Copy link

markusReinert commented Mar 26, 2024

Hi @julia-wh,

The same error message has just appeared for me, too, just after I've installed the latest versions of PyNcView and xmlplot. The error occurred on two different computers with different operating systems.

I still have an older installation of pyncview 0.99.34, where the error does not occur. The older version uses on my computer Qt: 5.12.8 and PyQt5: 5.14.1; my new installation uses Qt: 5.15.8 and PyQt5: 5.15.9.

Could you have a look at this, @jornbr?
Thanks a lot!

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