#pyqt | Logs for 2019-01-17

Back
[00:13:27] -!- BPL has quit [Read error: Connection reset by peer]
[02:23:36] -!- shakraw has joined #pyqt
[02:38:01] -!- anqxyr has joined #pyqt
[03:01:14] -!- kallesbar has joined #pyqt
[05:06:55] -!- Lauxley has joined #pyqt
[05:21:06] -!- mandeep has quit [Ping timeout: 246 seconds]
[05:40:44] -!- BPL has joined #pyqt
[05:54:51] -!- mandeep has joined #pyqt
[06:03:41] -!- BPL has quit [Quit: Leaving]
[06:30:26] -!- jthornton has joined #pyqt
[06:32:13] -!- jef has joined #pyqt
[06:38:06] -!- zen_coder has joined #pyqt
[06:38:24] <zen_coder> is this the channel for the official qt binding for pythong?
[07:02:57] -!- zen_coder has quit [Ping timeout: 256 seconds]
[07:12:28] -!- Belxjander has joined #pyqt
[09:56:13] -!- agile_prg has quit [Read error: Connection reset by peer]
[10:32:35] -!- TurBoss has quit [Ping timeout: 252 seconds]
[10:35:25] -!- TurBoss has joined #pyqt
[11:14:34] -!- AbleBacon has joined #pyqt
[11:17:16] -!- daegontaven has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
[11:34:05] -!- mandeep has quit [Remote host closed the connection]
[11:45:03] -!- Siecje has joined #pyqt
[12:06:20] -!- Nick73514 has joined #pyqt
[12:32:26] -!- necrose99 has joined #pyqt
[13:01:53] -!- anqxyr has quit [Read error: Connection reset by peer]
[13:03:42] -!- anqxyr has joined #pyqt
[13:08:44] -!- anqxyr has quit [Ping timeout: 250 seconds]
[13:41:36] -!- shakraw has quit [Quit: This computer has gone to sleep]
[13:46:52] -!- rber has joined #pyqt
[13:46:57] <rber> Hey
[13:47:50] <rber> I'm trying to get a project that uses PyQwt5 running again and after overcoming most problems now I can't sip.setapi("QString", 2)
[13:47:54] <rber> it simply has no effect
[13:48:05] <rber> I have to use PyQt4
[13:48:14] <rber> Anybody had any problem of that kind?
[13:48:39] <altendky> rber: you 'have to' backport a pyqt5 app to pyqt4?
[13:48:44] <rber> no no
[13:48:48] <rber> it isnt pyqt5
[13:49:01] <altendky> ah, the w isn't a typo
[13:49:01] <rber> its Qwt, another thing that uses pyqt4
[13:49:07] <rber> yes
[13:49:09] <rber> lol
[13:49:23] <altendky> rber: you're sure that pyqwt5 is for pyqt4?
[13:49:35] <rber> Yes because its ten years old
[13:49:57] <rber> how should I post small snippets of code, it is ok to spam a little?
[13:50:14] <altendky> rber: gist.github.com or other pastebin is nice
[13:50:26] <altendky> much easier to work with
[13:50:32] <rber> https://gist.github.com
[13:50:44] <rber> yeah I still wish it would be easier
[13:51:05] <rber> I can't make it return str again
[13:52:42] <altendky> rber: including the repl header is good so we know what version and if it's a fresh session
[13:53:29] <rber> what?
[13:53:30] <altendky> rber: but, i dunno. i haven't worked with pyqt4 and after reading http://pyqt.sourceforge.net it seems like you are doing a sensible thing
[13:53:46] <rber> ah yes
[13:53:48] <rber> Python 2.7.15 (default, May 21 2018, 17:53:03) [GCC] on linux2
[13:54:04] <altendky> rber: you have to set api first. the gist doesn't show if you did anything before that or not
[13:54:31] <rber> yeah and now I'm very annoyed since I'm struggling to avoid downgrade but it seems impossible
[13:54:34] <altendky> rber: maybe try exactly the example at the link
[13:54:43] <altendky> just in case
[13:54:47] <rber> it is wrong in fact lol
[13:54:50] <rber> it never fails
[13:55:00] <altendky> rber: what pyqt4 version?
[13:55:57] <altendky> rber: https://gist.github.com
[13:56:35] <rber> even when you get the api that returns str
[13:56:54] <rber> whaay
[13:56:59] <rber> what
[13:57:17] <rber> it is
[13:57:25] <rber> one I had to build
[13:57:35] <altendky> rber: there may be build options about this
[13:57:42] <rber> maybe I got a bad src.rom
[13:57:44] <rber> src.rpm
[13:58:01] <altendky> what version?
[13:58:06] <rber> 4.12.3
[13:58:37] <rber> I hope so, what version are you running please?
[13:58:55] <altendky> per system packages it ought to be 4.11.4
[13:59:43] <rber> Well maybe its some recent change
[14:00:10] <rber> so its a relief, thank you!
[14:00:21] <rber> I'll take a look
[14:01:29] <rber> hate those breaking changes, I had some trouble to get back a missing pyqtconfig
[14:01:39] <rber> making old code run is the worse
[14:02:04] <altendky> quote so
[14:02:06] <altendky> quite so
[14:02:25] <altendky> with multiple layers of dead libraries... :|
[14:03:42] <rber> yeah and even minor and sometimes even patch level changes are breaking stuff and nobody notices
[14:04:20] <altendky> rber: i do wish the builds and tests were public
[14:05:08] <rber> at riverbank?
[14:05:21] <rber> or in general
[14:05:45] <altendky> rber: yes. it's the worst part of pyqt for me. the source is 'open' but the project isn't
[14:05:51] <altendky> yes at riverbank
[14:07:16] <rber> It is a pain indeed. I once heard they generate their sip files with some proprietary and unknown to the public tool automatically, leaving only that painful api for the public
[14:07:37] <Avaris> rber: you're not using terminal from an ide, are you?
[14:07:51] <rber> no, lol, its xterm
[14:08:53] <Avaris> ok, just checking. if my memory serves, some ide's were using pyqt and such. and doing sip setapi won't work after importing pyqt
[14:09:19] <altendky> good thought...
[14:10:03] <Avaris> + it's working fine for me on windows + pyqt 4.11.4
[14:10:05] <rber> well Ill take a look at the startup file that runs when python interpreter is loaded so thanks
[14:10:26] <Avaris> you have a startup file?
[14:10:29] <rber> now tumbleweed is annoyingly bleeding edge and most builds are at least 4.12.1
[14:10:35] <rber> or src.rpm
[14:11:48] <Avaris> btw you can switch to python3 and api v2 is default there
[14:13:32] -!- littlekitty has joined #pyqt
[14:15:40] <rber> brb someone is asking help here at work
[14:32:01] <rber> I just found out I messed up with something and now I have a copy of sip.so inside my PyQt4
[14:32:23] <rber> so I got it working by using from PyQt4 import sip instead of import sip
[14:32:39] <rber> which is probably a kind-of working solution
[14:32:46] <Avaris> huh?
[14:32:55] <rber> so thank you altendky and Avaris
[14:33:00] <altendky> the 'new sip' didn't get applied to pyqt4, did it?
[14:33:04] <Avaris> that's not normal
[14:33:12] <rber> I now, If I can I'll fix it
[14:33:17] <altendky> rber: what sip did you build with?
[14:33:36] <rber> I changed the ./configure.py and I thougth it would build with the sip I have installed
[14:33:43] <rber> somehow it didn't
[14:33:48] <altendky> rber: in recent sip/pyqt5 we are suposed to build a use-dependent copy of sip that goes in the package that uses it
[14:34:07] <rber> ./configure.py call I mean, instead I changed it from ./configure-ng.py to ./configure.py
[14:36:16] <rber> hmm
[14:37:27] <rber> its 4.19.13
[14:37:52] <rber> and surprisingly there is no version mismatch
[14:38:02] <rber> still it doesnt record the api change
[14:38:48] <altendky> rber: http://pyqt.sourceforge.net the private copy stuff
[14:38:50] <rber> unless I do from PyQt4 import sip
[14:39:09] <altendky> so i think it's explained
[14:39:31] <Avaris> oh ok that's new
[14:39:32] <rber> that really seems like what I should do but didn't
[14:39:33] <altendky> what with pyqt 4.12.3
[14:39:36] <rber> thank you
[14:39:40] <altendky> Avaris: you missed all that? :]
[14:39:52] <altendky> https://pyqt.readthedocs.io
[14:40:10] <rber> well it is under "Downloading SIP", isnt it?
[14:40:25] <Avaris> i try really hard to avoid building pyqt. ever :)
[14:40:28] <rber> no excuse lol
[14:40:43] <rber> I had to do it because of this old PyQwt5 that uses pyqtconfig
[14:40:56] <rber> I can't use configure-ng because of it
[14:42:14] -!- Lauxley has quit [Remote host closed the connection]
[14:42:16] <rber> In fact the build went really smoothly until this issue came, is awesome how src.rpm do make things easy
[14:51:01] -!- headrx has joined #pyqt
[15:15:19] -!- agile_prg has joined #pyqt
[15:15:28] <agile_prg> can someone tell me the best way to read an excel file?
[15:15:32] -!- Siecje has parted #pyqt
[15:15:42] <altendky> agile_prg: xlsx or xls?
[15:15:49] <altendky> xlrd and openpyxl are the two i've used
[15:15:58] <altendky> agile_prg: but that's really for #python?
[15:20:09] <agile_prg> thanks
[15:21:21] -!- headrx has quit [Quit: Page closed]
[15:21:27] -!- shakraw has joined #pyqt
[15:21:27] <The-Compiler> agile_prg: http://www.python-excel.org
[15:32:38] -!- BPL has joined #pyqt
[16:02:28] -!- shakraw has quit [Quit: This computer has gone to sleep]
[16:14:36] -!- kallesbar has quit [Quit: Konversation terminated!]
[16:19:05] -!- mandeep has joined #pyqt
[16:46:53] -!- mintograde has joined #pyqt
[16:48:22] -!- mandeep has quit [Remote host closed the connection]
[16:49:22] -!- acwatt has joined #pyqt
[16:50:16] <acwatt> Quick question about QThreads: If I'm running Python code on two different QThreads, can they execute simultaneously or would the GIL prevent that?
[16:50:26] <acwatt> Trying to understand if the GIL applies to QThreads or is released.
[16:51:41] <acwatt> Answered my own question: https://riverbankcomputing.com
[16:57:30] -!- acwatt has quit [Quit: Page closed]
[17:04:42] <agile_prg> I hate the GIL :<
[17:10:34] -!- necrose99 has quit [Ping timeout: 258 seconds]
[17:41:49] <altendky> i know, they should have made the majority of python programs slower so we don't have to deal with it when trying to do many things at once
[17:55:52] -!- Nick73514 has quit [Ping timeout: 264 seconds]
[17:56:39] -!- jthornton has parted #pyqt
[18:40:23] -!- mandeep has joined #pyqt
[18:54:26] -!- Guest47314 has joined #pyqt
[18:54:32] Guest47314 is now known as daegontaven
[18:57:19] -!- AbleBacon has quit [Quit: Leaving]
[20:00:52] -!- BPL has quit [Read error: Connection reset by peer]
[21:23:11] -!- littlekitty has quit [Quit: Connection closed for inactivity]
[21:55:48] -!- mintograde has quit [Ping timeout: 246 seconds]
[22:02:43] -!- JanC has quit [Remote host closed the connection]
[22:03:00] -!- JanC has joined #pyqt
[22:25:59] -!- Belxjander has quit [Quit: AmigaOSv4.1.6+//PowerPC native]
[22:26:27] -!- Belxjander has joined #pyqt