#flex-dev Logs
Oct 28 2025
#flex-dev Calendar
04:26 AM Tom_L: morning
04:55 AM JT-Chicken: morning
08:38 AM rdtsc-w: morning
11:30 AM lcnc-relay: <roguish> good morning...
12:38 PM lcnc-relay: <roguish> wow. quiet today
12:42 PM lcnc-relay: <_guillaum_@> Hi guys, firstly i want to thank you for flexgui, the documentation if perfect I found every thing I want with this doc or video tutorial.
12:42 PM lcnc-relay: But ! I have trouble with the qrc generator. My last attemps was with the touch-probe3 example. If i run the example i can see the image. If i try to generate a new resources.py with the generator app, i get the "Could not create pixmap from.."
12:42 PM lcnc-relay: In select Image directory i set the xyz/touch-probe3/images and in select config directory i set the xyz/touch-probe/
12:43 PM lcnc-relay: I can see that the resources.py was update and have some data. But when i run the app I don't have any images loaded and get the error message
12:43 PM lcnc-relay: <_guillaum_@> * is
12:43 PM lcnc-relay: <_guillaum_@> * perfect,
12:45 PM Tom_L: is rcc in the path?
12:45 PM Tom_L: i was messin with that on the rpi over the weekend a bit
12:46 PM Tom_L: seems the rcc i found for it generate c code instead of python
12:47 PM Tom_L: for now in my case i'll build them on amd64 and copy the .py over
12:47 PM Tom_L: post a few lines of your py file on paste.debian.net or such
12:48 PM Tom_L: could be your path is wrong
12:49 PM Tom_L: also did you add RESOURCES = resources.py in the [FLEXGUI] ini section?
12:52 PM Tom_L: getting the path right is key
12:53 PM lcnc-relay: <_guillaum_@> yes and the generator app specify the version 5.15.8 => install it with apt install qtbase5-dev-tools
12:53 PM lcnc-relay: I had a lot of trouble on my custom app so decided to test with the example one, so yes, RESOURCES = resources.py in FLEXGUI. I didn't modify anything, just try to run flexgui app before and after to generate the new resources.py
12:55 PM Tom_L: i tried the qtbase5-dev-tools for the pi and it generates c code
12:55 PM Tom_L: you may need the one from pyside
12:56 PM Tom_L: that's why i wanted a paste of your output file
12:56 PM Tom_L: also tried the one for ver 6
12:57 PM Tom_L: that was part of what i was trying to figure out over the weekend
12:57 PM lcnc-relay: <_guillaum_@> ok, i tried a lot of install for the pyside6 and pyrcc6, but never succeed.
12:58 PM Tom_L: i was trying to recall where i got my rcc
01:04 PM Tom_L: pip sucks
01:04 PM Tom_L: i may have rcc on a different ssd... can't seem to find it on this one
01:19 PM lcnc-relay: <_guillaum_@> a few line of resources.py : https://paste.debian.net/1403273/
01:19 PM lcnc-relay: <_guillaum_@> * lines
01:22 PM Tom_L: ok that looks like python
01:23 PM Tom_L: let's see the same for the resource.qrc
01:26 PM rdtsc-w: some of that resources.py has an RDF tag in it... is that a PDF file?
01:27 PM Tom_L: yeah scrolling down, that file is junk
01:27 PM rdtsc-w: PDF's can have all manners of unicode and other characters in them - wonder if that could be borking something
01:29 PM Tom_L: my test pc doesn't have rcc on it right now but there is a script 'pyrcc5' i'm going to test
01:30 PM Tom_L: you'd think rcc would be included in the designer install
01:37 PM lcnc-relay: <_guillaum_@> I also tried with pyrcc5, in the generate resources.py I now got : from PyQt5 import QtCore. I lost the RDF, but still doesn't work, get : "Could not create pixmap from.."
01:38 PM lcnc-relay: <_guillaum_@> * get
01:38 PM Tom_L: right, pyrcc5 produces a file but it's no good
01:38 PM Tom_L: just tried it
01:39 PM Tom_L: i'll keep digging
01:46 PM rdtsc-w: had a look from Arch, and the only relevant thing matching rcc is
01:46 PM rdtsc-w: pyside6-tools-wrappers 20230711-1 Provides pyside6-* executables (such as pyside6-rcc and pyside6-uic)
01:54 PM Tom_L: wish i could remember where i found it but it wasn't that difficult
02:01 PM rdtsc-w: If JT can stay connected, bet he knows :)
02:01 PM lcnc-relay: <_guillaum_@> I tried to install pyside6 in virtual env, I could buid resource.py with this pyside6, but then when I run the app, PySide6 is not found. No a specialist but I think flexgui is run outside of my virtual env.
02:10 PM Tom_L: rdtsc-w, i asked about rcc and we couldn't remember where we got it
02:10 PM Tom_L: and i can't seem to find it now
02:10 PM Tom_L: pyrcc5 is supposed to but the output is incorrect
02:26 PM Tom_L: what does the file look like?
02:30 PM lcnc-relay: <_guillaum_@> https://paste.debian.net/1403281/
02:32 PM Tom_L: edit the 'from PySide6 import Qtcore' to 'from PyQt6 import Qtcore' and test it
02:33 PM Tom_L: if you build manually, you need to change that line. JT's tool does that for you iirc
02:34 PM Tom_L: the beginning of that file looks close
02:43 PM lcnc-relay: <_guillaum_@> Yes, it works now... Thank you !
02:44 PM Tom_L: what did you do to install pyside?
02:45 PM Tom_L: btw #python is useless
02:46 PM lcnc-relay: <_guillaum_@> sudo apt install python3-venv
02:46 PM lcnc-relay: python3 -m venv ./venv
02:46 PM lcnc-relay: source venv/bin/activate
02:46 PM lcnc-relay: pip install pyside6
02:46 PM lcnc-relay: venv/bin/pyside6-rcc resources.qrc -o resources.py
02:47 PM Tom_L: i've never used virtual environments :)
02:48 PM Tom_L: how do you access it after you close it?
02:52 PM Tom_L: do you run the last 4 lines each time you use it?
02:53 PM Tom_L: seems time for a resources.sh
02:56 PM * JT-Shop doesn't do pop or ppip or pip even
02:56 PM * JT-Shop wonders if he'll beat the rain with 10 more rounds to split
02:56 PM JT-Shop: and I never use venv
02:57 PM Tom_L: i lost my rcc and none of the ones i've found output the correct format
02:57 PM Tom_L: you might look into that for your utility
02:57 PM lcnc-relay: <_guillaum_@> yes, source env/bin/activate for activate the virtual env, and if you want to "close it", just deactivate
02:57 PM lcnc-relay: Depending of your shell you can see (venv) in beginning of your shell when activate
02:57 PM Tom_L: right
02:58 PM Tom_L: thanks
02:58 PM Tom_L: i'm gonna put it in a script
02:58 PM JT-Shop: apt install python3-qtpy
02:58 PM Tom_L: i'll try that first
03:00 PM Tom_L: where does it put rcc?
03:00 PM Tom_L: i don't see it
03:00 PM lcnc-relay: <_guillaum_@> if you want to do it in script, only :
03:00 PM lcnc-relay: source venv/bin/activate
03:00 PM lcnc-relay: venv/bin/pyside6-rcc resources.qrc -o resources.py
03:00 PM lcnc-relay: deactivate
03:01 PM Tom_L: right
03:09 PM lcnc-relay: <_guillaum_@> and you can also add to the script :
03:09 PM lcnc-relay: sed -i 's/from PySide6 import QtCore/from PyQt6 import QtCore/g' resources.py
03:09 PM lcnc-relay: to replace PySide6 import QtCore in resources.py
03:25 PM Tom_L: works great thanks
03:26 PM Tom_L: i'll test on rpi5 next
03:43 PM Tom_L: also works on rpi5
03:46 PM Tom_L: http://tom-itx.no-ip.biz:443/~webpage/cnc/Rpi5/pysidenotes.txt
03:46 PM Tom_L: i put the .sh there also
04:51 PM JT-Shop: finally finished the firewood
05:06 PM JT-Shop: https://pasteboard.co/OOwyjaTSjbzi.jpg
05:43 PM Tom_L: you should be set for winter
05:43 PM Tom_L: swapped motor workin ok?
05:46 PM JT-Shop: still surging but ok other than that
05:46 PM JT-Shop: dunno if I can even burn any of this wood this winter
05:47 PM Tom_L: too wet
05:47 PM JT-Shop: maybe in feb it will be dry enough to burn
05:47 PM JT-Shop: yup
05:47 PM JT-Shop: it's surprising how wet standing dead tree can be
05:48 PM Tom_L: i don't like working in dead trees
05:48 PM Tom_L: well, i don't do it anymore anyway
05:48 PM JT-Shop: and it's amazing how fast the ends change color when split and stacked under cover
05:48 PM Tom_L: hope this fever isn't infection from the surgery
05:48 PM JT-Shop: this tree was down on the ground, limbs cleaned up and I used his tractor with a loader
05:48 PM Tom_L: i don't think it is
05:49 PM JT-Shop: fever?
05:49 PM Tom_L: started getting chills yesterday so i checked it
05:49 PM Tom_L: 101
05:49 PM JT-Shop: yuck
05:49 PM Tom_L: felt better this morning but kinda out of it now
05:50 PM JT-Shop: I'm just glad to get that tree cut up and split... I have another one to do in Wappapello that's down and cut into logs
05:51 PM Tom_L: i tried installing python3-qtpy but couldn't find rcc
05:52 PM JT-Shop: https://www.facebook.com/marketplace/item/1786715671961531/?referralSurface=messenger_banner&referralCode=2
05:53 PM Tom_L: are those semi dry?
05:53 PM JT-Shop: dunno
05:54 PM * JT-Shop calls it a day
05:54 PM * Tom_L does too
07:46 PM Tom_L: JT-Cave, there is a probe enable button, and i can add an led to it. can i have a single led tied to that signal so it shows on another page?