#pyqt | Logs for 2018-09-03

Back
[00:04:07] -!- mintograde has quit [Ping timeout: 240 seconds]
[00:53:21] -!- hazzy-lab has quit [Quit: Leaving.]
[00:59:28] -!- anqxyr has joined #pyqt
[01:56:36] -!- anqxyr has quit [Ping timeout: 252 seconds]
[03:33:48] inf^ is now known as inf
[04:20:37] -!- anqxyr has joined #pyqt
[04:20:42] -!- anqxyr has quit [Read error: Connection reset by peer]
[04:22:11] -!- anqxyr has joined #pyqt
[04:28:59] -!- necrose99 has quit [Read error: Connection reset by peer]
[07:21:32] -!- BPL has joined #pyqt
[07:28:52] <jthornton> trying to install pyqt5 but keep getting this error https://paste.ubuntu.com
[07:44:21] -!- mintograde has joined #pyqt
[08:01:03] <jthornton> this page https://www.riverbankcomputing.com states So long as you are using a supported version of Python you can install PyQt5 from PyPi by running: pip3 install PyQt5
[08:02:42] <jthornton> well crap this linux pc is 32 bit I think that is the problem
[08:16:07] <jthornton> yep 32bit was the problem, pyqt5 installs just fine on a 64bit machine
[08:22:22] -!- frispete_ has joined #pyqt
[08:25:28] -!- frispete has quit [Ping timeout: 245 seconds]
[09:06:18] -!- hazzy-lab has joined #pyqt
[09:27:13] -!- hazzy-lab has quit [Quit: Leaving.]
[10:00:48] -!- mandeep has quit [Quit: Leaving]
[10:31:40] <jthornton> I'm sure I'm making a dummy mistake but I have two programs each in it's own virtual environment and one is just a python program to make sure I have the virtual environment working and one is a simple pyqt5 mainwindow but I get an error when I try and run it details here https://paste.ubuntu.com
[10:32:40] <jthornton> hmm the paste says both directory structures are the same but the pyqt one has a .ui file as well
[10:44:46] <altendky> jthornton: consider gist.github.com for multiple files. Also tree to show directory structures and real names
[10:45:12] <altendky> jthornton: and if you are installing . you don't need a wheel prebuilt
[10:49:41] <jthornton> ok I'll try that
[10:52:02] <altendky> jthornton: to be clear, none of that should fix anything :] just make it easier for me to see what's going on
[10:53:42] <altendky> jthornton: also, having src/yourpackage helps avoid accidentally getting not installed copies of the files (there's a couple setup.py tweaks that go with that)
[10:56:21] <jthornton> ok
[11:41:52] <jthornton> altendky: I think I have it all https://gist.github.com
[11:42:50] <altendky> jthornton: `__init.py__`? you likely mean `__init__.py`. that error would cause python to not realize it is a package and also setuptools.find_packages() wouldn't find it.
[11:43:46] <jthornton> opps yea a typo
[11:51:03] <jthornton> fixed that and now I get this error from src.simple_pyqt5.simple_pyqt5 import main ImportError: No module named 'src'
[12:32:38] <altendky> jthornton: don't refer to src in Python. That's just a directory layout thing
[12:32:45] <altendky> (sorry for the delay)
[12:33:53] <jthornton> no problem I was cleaning chicken coop out
[12:53:12] <jthornton> not sure what you mean but here is the current attempt along with the terminal output showing the import error https://gist.github.com
[12:54:20] * jthornton has to wander off for a bit
[12:55:22] <altendky> jthornton: here's a super minimal example with src and setup.py
[12:55:23] * altendky https://github.com
[12:55:42] <altendky> you should have these two lines in your setup.py if you use the src directory https://github.com
[12:56:40] <altendky> jthornton: the directory structure would be `src/simple_pyqt5/__init__.py` and `simple_pyqt5.py` and `simple.ui` as well
[12:57:58] <altendky> jthornton: i don't recall if i've linked it for you before but here's my pyqt project example (not a coding example, beyond loading the .ui files, just project setup) https://github.com
[13:17:16] -!- Belxjander has quit [Quit: AmigaOSv4.1.6+//PowerPC native]
[13:22:08] -!- frispete_ has quit [Remote host closed the connection]
[13:22:53] -!- frispete_ has joined #pyqt
[13:25:57] -!- anqxyr has quit [Ping timeout: 244 seconds]
[13:35:08] -!- Belxjander has joined #pyqt
[13:46:31] -!- Belxjander has quit [Quit: AmigaOSv4.1.6+//PowerPC native]
[13:48:15] -!- Belxjander has joined #pyqt
[14:02:29] -!- frispete_ has quit [Quit: Konversation terminated!]
[14:04:21] -!- frispete has joined #pyqt
[14:19:03] -!- Belxjander has quit [Quit: AmigaOSv4.1.6+//PowerPC native]
[14:19:48] -!- Belxjander has joined #pyqt
[14:20:17] <jthornton> altendky: thanks so much for the examples
[14:20:57] <altendky> jthornton: i ought have looked a bit closer at what you provided to see the error to begin with
[14:21:35] <altendky> jthornton: when you've got it tidied maybe create another https://gist.github.com and i can make sure it's all good
[14:22:30] <jthornton> ok will do
[14:22:39] <altendky> we'll get there yet...
[14:22:53] <altendky> it takes a few passes to get it right. it's easier the next time though
[14:38:07] -!- kallesbar has joined #pyqt
[14:45:49] -!- mandeep has joined #pyqt
[15:09:43] <jthornton> altendky: I don't think I have everything installed as I'm getting an import error. I tried your example branch widgetsovergl and got a similar error https://paste.ubuntu.com
[15:10:25] -!- ovf has quit [*.net *.split]
[15:10:35] -!- kushal has quit [*.net *.split]
[15:14:55] -!- kushal has joined #pyqt
[15:17:41] <altendky> jthornton: that's a pyqt but with 'older' pythons. i could probably dig up the email from the list
[15:18:01] <altendky> jthornton: what is env/bin/python --version?
[15:25:29] -!- JT-Shop has joined #pyqt
[15:27:31] -!- Belxjander has quit [Ping timeout: 246 seconds]
[15:28:52] -!- Belxjander has joined #pyqt
[15:29:08] <jthornton> 3.5.3
[15:29:55] <jthornton> hmmm I thought I setup the virtual environment for 3.5.9 or something like that
[15:30:21] <altendky> jthornton: https://riverbankcomputing.com
[15:30:55] <altendky> jthornton: 3.5.4 and later works
[15:31:13] <altendky> jthornton: if your os doesn't offer 3.5.4 or later you could pyenv it
[15:31:21] <altendky> https://riverbankcomputing.com
[15:35:05] <jthornton> thanks
[15:35:43] <jthornton> pyenv is the step I forgot to do
[17:06:24] -!- BPL has quit [Ping timeout: 252 seconds]
[17:12:53] -!- BPL has joined #pyqt
[17:20:04] -!- mandeep has quit [Quit: Leaving]
[17:20:56] -!- mandeep has joined #pyqt
[18:07:27] -!- BPL has quit [Ping timeout: 252 seconds]
[19:33:15] -!- mandeep has quit [Quit: Leaving]
[21:34:04] -!- kallesbar has quit [Ping timeout: 240 seconds]
[22:37:08] -!- mintograde has quit [Ping timeout: 245 seconds]
[23:08:15] -!- JanC_ has joined #pyqt
[23:08:43] -!- JanC has quit [Read error: Connection reset by peer]
[23:09:49] -!- mandeep has joined #pyqt
[23:09:53] JanC_ is now known as JanC
[23:35:49] -!- mandeep has quit [Quit: Leaving]
[23:37:47] -!- mandeep has joined #pyqt