#pyqt | Logs for 2019-04-23
Back
[01:33:14] -!- lee_76 has quit [Ping timeout: 246 seconds]
[02:23:23] -!- n1` has quit [Ping timeout: 245 seconds]
[03:10:10] -!- n1` has joined #pyqt
[04:20:49] -!- cottoneyejim has joined #pyqt
[05:16:59] -!- TheStraying11 has joined #pyqt
[05:23:45] -!- TheStraying11 has quit [Ping timeout: 256 seconds]
[05:26:20] -!- n1` has quit [Ping timeout: 246 seconds]
[05:28:06] -!- TheStraying11 has joined #pyqt
[05:30:00] <TheStraying11> how do i get the raw file path from QFileDialog without doing .strip on .getOpenFileName cause that will do some unexpected things sometimes?
[05:30:34] <Avaris> why are you doing strip?
[05:31:21] <TheStraying11> cause i get something like ('/home/thestraying11/Desktop/Gamma-Launcher/LICENSE', 'All Files (*)')
[05:31:29] <TheStraying11> when i need /home/thestraying11/Desktop/Gamma-Launcher/LICENSE
[05:31:46] <Avaris> yes, you get a tuple. take the first one
[05:32:15] <Avaris> return_value_from_QFileDialog[0]
[05:32:54] <TheStraying11> what where do i do that? cause im currently doing str(QFileDialog.getOpenFileName()))
[05:33:10] <Avaris> don't do str
[05:33:22] <Avaris> QFileDialog.getOpenFileName()[0]
[05:33:34] <TheStraying11> ah okay
[05:34:46] <Avaris> you might want to check that though. i don't remember what you get if you cancel. maybe empty string
[05:37:58] <TheStraying11> okay
[05:38:47] <TheStraying11> yeah, i think its just an empty string, which is fine because its just outputing to a QLineEdit
[05:39:41] <Avaris> just thought you might not want to clear lineedit if user canceled
[05:50:23] -!- TheStraying11 has quit [Ping timeout: 256 seconds]
[06:26:12] -!- kallesbar has quit [Remote host closed the connection]
[06:34:33] -!- kallesbar has joined #pyqt
[06:39:01] -!- kallesbar has quit [Remote host closed the connection]
[06:41:42] -!- kallesbar has joined #pyqt
[06:46:13] -!- kallesbar_ has joined #pyqt
[06:49:37] -!- kallesbar has quit [Ping timeout: 245 seconds]
[06:57:12] -!- kallesbar_ has quit [Remote host closed the connection]
[07:06:24] -!- kallesbar_ has joined #pyqt
[07:07:27] -!- kallesbar has joined #pyqt
[07:10:50] -!- kallesbar_ has quit [Ping timeout: 250 seconds]
[07:13:01] -!- kallesbar has quit [Remote host closed the connection]
[07:18:25] -!- kallesbar has joined #pyqt
[07:20:43] -!- kallesbar has quit [Excess Flood]
[07:21:54] -!- kallesbar has joined #pyqt
[07:29:10] -!- kallesbar has quit [Remote host closed the connection]
[07:57:01] -!- kallesbar has joined #pyqt
[08:05:58] -!- kallesbar has quit [Ping timeout: 258 seconds]
[08:08:49] -!- Belxjander has joined #pyqt
[08:13:47] -!- kallesbar has joined #pyqt
[08:16:11] -!- kallesbar has quit [Excess Flood]
[08:16:37] -!- kallesbar has joined #pyqt
[08:27:38] -!- kallesbar has quit [Remote host closed the connection]
[08:28:36] -!- TheStraying11 has joined #pyqt
[08:38:43] -!- kallesbar has joined #pyqt
[08:43:28] -!- kallesbar has quit [Excess Flood]
[08:46:12] -!- kallesbar has joined #pyqt
[08:50:15] -!- kallesbar has quit [Remote host closed the connection]
[09:00:13] -!- TheStraying11 has quit [Ping timeout: 256 seconds]
[09:07:36] -!- n1` has joined #pyqt
[09:38:09] -!- nsizemor has joined #pyqt
[09:54:41] -!- kallesbar has joined #pyqt
[10:29:12] -!- n1` has quit [Ping timeout: 245 seconds]
[10:42:48] -!- thomasross_ has joined #pyqt
[10:42:48] -!- thomasross has quit [Killed (orwell.freenode.net (Nickname regained by services))]
[10:42:48] thomasross_ is now known as thomasross
[11:01:22] -!- AbleBacon has joined #pyqt
[11:23:55] <Thaodan> does importlib.ressources.path work witn pyqtdeploy?
[11:24:23] <Thaodan> I get
[11:24:24] <Thaodan> File ":/contextlib.py", line 112, in __enter__
[11:24:26] <Thaodan> D libtarentInventory.so: File ":/importlib/resources.py", line 201, in path
[12:55:14] -!- cottoneyejim has quit [Ping timeout: 244 seconds]
[13:22:32] -!- cottoneyejim has joined #pyqt
[13:36:01] -!- cottoneyejim has quit [Ping timeout: 258 seconds]
[13:59:19] <altendky> Thaodan: with the : isn't that a qt resource path?
[14:00:17] <altendky> Thaodan: i wouldn't expect python resources to be available as qt resources, but i don't really know. i thought the python side had a way to get a real file system path for resources (presumably either directly or via a temp file depending on the particular scenario)
[14:03:09] -!- cottoneyejim has joined #pyqt
[14:13:15] <altendky> Thaodan: err, i think i totally misread that as the : somehow being your path. sorry. can you share your code?
[15:02:32] -!- JT-Shop has parted #pyqt
[15:17:10] -!- mandeep has joined #pyqt
[15:44:40] -!- kallesbar has quit [Quit: Konversation terminated!]
[15:54:17] -!- mandeep has quit [Ping timeout: 255 seconds]
[16:08:52] -!- BPL has joined #pyqt
[16:27:05] -!- nsizemor has quit [Quit: nsizemor]
[16:33:11] -!- n1` has joined #pyqt
[16:43:46] -!- mintograde has joined #pyqt
[16:45:15] -!- ilbelkyr has joined #pyqt
[16:57:37] -!- AbleBacon has quit [Quit: Leaving]
[17:36:17] -!- n1` has quit [Ping timeout: 245 seconds]
[19:05:28] grateful_ is now known as grateful
[20:25:18] -!- BPL has quit [Quit: Leaving]
[20:56:08] -!- Vision has joined #pyqt
[20:57:36] <Vision> probably a common problem: I seem to have PyQt5 installed, and trying to run the Qt Designer blank-window project, I get from .shiboken2 import * // ImportError: DLL load failed: The specified procedure could not be found.
[20:57:42] <Vision> what am I missing
[20:57:58] <Vision> (Python 3.5.2)
[20:58:23] <altendky> Vision: how did you install designer?
[20:58:50] <Vision> online installer, designer only
[20:59:45] <altendky> Vision: didn't know that was still around. And I wouldn't expect it to have python stuff. Though I guess maybe from pyside now.
[21:00:30] <Vision> yeah honestly I only wanted it for the designer aspect, read that it saves a .ui which can then spit out PyQt code
[21:01:16] <Vision> that empty-window project only does "from PySide2.QtWidgets import QApplication, QMainWindow"
[21:01:17] <altendky> Vision: or you can load the .ui directly, but yeah
[21:01:28] <Vision> which itself then imports shiboken2
[21:01:38] <Vision> which... shiboken2 is there, I see a .dll...
[21:01:45] <altendky> Vision: are you making a project? Or just a widget?
[21:02:06] <Vision> a projects
[21:02:07] <Vision> -s
[21:05:27] <Vision> and yeah the installer was interesting, I didn't install any of the 'prebuilt components' so I didn't expect any Python stuff to come with, but I guess what it has are just beginner templates, which are fine
[21:05:34] <Vision> but it'd be great to run one lol
[21:06:40] * Avaris confused
[21:06:47] <Avaris> are you using pyqt5 or pyside2?
[21:07:57] <Vision> I... well shit it looks like PySide2 :)
[21:08:16] <altendky> Vision: maybe don't make a project. Are you sure you are in standalone designer and not creator?
[21:08:37] <altendky> I need to try out latest so I'm familiar...
[21:08:42] <Vision> well now it seems I gotta figure out the difference between PyQt and PySid2
[21:09:02] <Avaris> not much
[21:09:06] <Vision> oh I'm definitely in the creator I think, it started a project
[21:11:25] <altendky> Vision: I use designer and for my ide pycharm. Some like vscode
[21:12:09] <Vision> yeah I'll be using pycharm
[21:12:13] <Vision> errr
[21:12:22] <Vision> vscode. too many terms in my head right now
[21:12:44] <altendky> Vision: on windows you can get designer from qt or you could try pyqt5-tools which is a python package I make (just repackaging qt and a pyqt designer plugin).
[21:13:08] <Vision> so yeah my problem there was that PySide2 just wasn't working. I guess I thought the templates in Qt Creator would be using PyQt5
[21:13:10] <altendky> Just have to install with --pre right now for latest pyqt support
[21:13:19] <Avaris> hmm https://wiki.qt.io
[21:13:28] <Vision> altendky: oh nice, useful
[21:13:42] <altendky> Vision: pyqt5 is the not-qt wrapper. Pyside2 is the official
[21:14:47] <Vision> well hmm
[21:15:17] <Vision> yeah I see there've been recent changes, Qt aquiring pyside2
[21:15:21] <Vision> as of late last year
[21:15:26] <altendky> Vision: differences include open source licensing (gpl for pyqt vs lgpl for pyside)
[21:15:41] <Vision> but PySide2 is definitely not working in my setup
[21:16:09] <Avaris> did you try running from outside qt creator?
[21:16:11] <altendky> And I think at least some stuff about loading .ui files
[21:16:16] <Vision> Avaris: yep, same result
[21:16:27] <Avaris> how did you install pyside?
[21:16:47] <altendky> Just install the wheel in a virtualenv or venv (and good golly that better work)
[21:17:02] <Vision> unsure; I don't think the Qt Creator installer had it... I think it WAS just already installed
[21:17:09] <Vision> but I just pip installed it and it's there
[21:17:16] <Vision> already* there
[21:17:30] <Avaris> can you post the full traceback?
[21:18:32] <Vision> https://pastebin.com
[21:21:30] <Vision> further: https://pastebin.com
[21:22:36] <altendky> Vision: why 3.5?
[21:22:44] <Vision> was just about to say that myself
[21:22:45] <Vision> old install
[21:22:53] <Avaris> i would try uninstalling and reinstalling
[21:22:55] <Vision> need to upgrade, gonna do that now
[21:26:41] <altendky> Vision: I'd work in a virtualenv or venv bit.ly/py-env
[21:28:57] <Vision> ahhh yeah, nothing I've ever needed yet but I can see where I would
[21:30:34] <Vision> ahh 3.7.3 much better
[21:32:08] <Vision> aaand pyside2 works now. lesson learned; current PySide incompatible with 3.5
[21:39:13] -!- mandeep has joined #pyqt
[22:11:15] <Vision> ah hell now Qt Creator is stuck tryna run Python 3.5
[22:11:38] <Vision> oh that could be the old Path environment var
[22:13:39] <altendky> Vision: I thought you didn't want creator
[22:13:57] <altendky> But presumably you can tell it which to use
[22:14:17] <Vision> is designer fully separate from creator?
[22:14:18] <altendky> Vision: from the cli, py is the program to use to launch python and pick the version
[22:14:24] <altendky> Vision: it can be
[22:14:33] <altendky> It is also the piece inside creator
[22:14:37] -!- mintograde has quit [Ping timeout: 245 seconds]
[22:15:03] <Vision> yeah, with Creator having the python stuff in it I figure I'd just go about learning that
[23:35:17] <Vision> huge thanks for the help, I am indeed on my way. got a wireframe goin' in python by loading a .ui. great stuff.
[23:36:27] -!- mandeep has quit [Remote host closed the connection]