These are chat archives for PySide/pyside2

9th
Jan 2018
From IRC (bridge bot)
@FromIRC
Jan 09 08:03
<frkleint> crmaurei: Almost there ;⁠-)
From IRC (bridge bot)
@FromIRC
Jan 09 08:15
<crmaurei> yes! I added those lines thinking the depth was the same in all systems, but no
<crmaurei> I learned it, the hard way :⁠P
<frkleint> ctismer: I can't make sense of your review comment, but it might be caffeine underdose?
From IRC (bridge bot)
@FromIRC
Jan 09 08:26
<crmaurei> I guess he was refering to the fact assertEqual works for numbers range, but in this case -1 was kind of a unique expected value?
<crmaurei> If it's better/common to use assertEqual I can change it ;⁠)
From IRC (bridge bot)
@FromIRC
Jan 09 08:32
<frkleint> crmaurei: Hm,ok
<ctismer> Frkleint it was about „is“. This is normally wrong with numbers, use ‚equal‘.
From IRC (bridge bot)
@FromIRC
Jan 09 08:37
<frkleint> yes, exactly
<ctismer> But numbers in [-1, 100] are guaranteed to be unique
<crmaurei> Ok, third time
<crmaurei> lets see if works now :⁠|
<frkleint> suspects some COIN system will have -2...,
From IRC (bridge bot)
@FromIRC
Jan 09 08:43
<crmaurei> :⁠(
From IRC (bridge bot)
@FromIRC
Jan 09 09:09
<ctismer> Note that for identity checking there is assertIs. Did not know that until today
From IRC (bridge bot)
@FromIRC
Jan 09 10:54
<venu> I'm unable to run the scrolling.py declarative example with my Pyside2 build. I get QOpenGLShader: could not create shader
<venu> I have install PyOpenGL module in my virtualenv.
<venu> ctismer frkleint alcroito: ^
From IRC (bridge bot)
@FromIRC
Jan 09 11:54
<frkleint> Hm
<frkleint> venu: We already established that you have some weird graphics card?
<alcroito> venu: I would try to find and use one of the pyopengl examples unrelated to pyside, to see if it works
<venu> frkleint: At least the glxinfo says my graphics card is GeForce GTX 1060 6GB/PCIe/SSE2
<venu> alcroito: Ok! I'll try.
<frkleint> or plain Qt examples
<venu> frkleint: I'm able to run some of the widget examples such as tetrix and animatedtiles.
<frkleint> plain OpenGL Qt examples..
<frkleint> I meant
<venu> frkleint: ok.
From IRC (bridge bot)
@FromIRC
Jan 09 12:03
<venu> frkleint: I could run most of the OpenGL examples in the repo except a couple that complains about a missing module named numpy.
<frkleint> venu: Is there a more detailed error msg?
<venu> frkleint: None! Except the textures example which gives this https://paste.qt.io/pxdtziirm
<frkleint> venu: Hm, I would not worry..OpenGL may or may not work
<venu> frkleint: All other opengl examples run fine.
From IRC (bridge bot)
@FromIRC
Jan 09 12:08
<venu> frkleint: even the textures example works, just that it puts out this error.
<frkleint> hm
<alcroito> i had some issues with legacy opengl (pre-3.2) on macos as well
<alcroito> I would not be surprised if the same is the case on linux
From IRC (bridge bot)
@FromIRC
Jan 09 12:20
<venu> frkleint alcroito: My Qt build is configured to use Desktop OpenGL. Should it be something else? For example, OpenGL ES 2.
<alcroito> venu: i think desktop is supposed to be more compatible, but in pyopengl's case, i don't think it cares about qt at all
<venu> alcroito: Should I look for a specific version of PyOpenGL? I have 3.1 installed.
<alcroito> venu: no, like friedemann said, i don't think you should worry too much about.
<alcroito> about it*
<venu> alcroito: Ok! How do I run QtQuick2 examples then?
<alcroito> venu: those should work without pyopengl
From IRC (bridge bot)
@FromIRC
Jan 09 12:25
<alcroito> the gl stuff is done withing c++ qtquick scenegraph, and should not depend on python at all
<venu> alcroito: They don't at the moment. I get this https://paste.qt.io/p6o0vp9jo
From IRC (bridge bot)
@FromIRC
Jan 09 12:34
<alcroito> sounds like some driver issue to me
<venu> alcroito: I'm able to run standard Qt Quick 2 applications using the same Qt build that I used to build pyside2.
From IRC (bridge bot)
@FromIRC
Jan 09 12:44
<venu> alcroito: It works if I add the 'from OpenGL import GL' statement as described here, https://riverbankcomputing.com/pipermail/pyqt/2014-January/033681.html
<alcroito> Super weird
<alcroito> Something must be affecting it, but nothing comes to mind what it could be
From IRC (bridge bot)
@FromIRC
Jan 09 12:50
<alcroito> me leaving, be back tomorrow
From IRC (bridge bot)
@FromIRC
Jan 09 13:39
<venu> frkleint: I switced to the opensource display driver instread of the proprietary NVIDIA driver and it works.
From IRC (bridge bot)
@FromIRC
Jan 09 13:53
<frkleint> venu: So, native C++ works with NVidia
<frkleint> venu: and QML via PySide2 only works with the opensource display driver (nv?)?
<frkleint> smells trouble
<frkleint> I mean QML with native Qt