Here is a panel created with Python and Pyside.
https://github.com/postman721/simple_panel
The outlook is blue but can be customized if wanted. Repository will contain all the needed instructions. Here is a screenshot.
Here is a panel created with Python and Pyside.
https://github.com/postman721/simple_panel
The outlook is blue but can be customized if wanted. Repository will contain all the needed instructions. Here is a screenshot.
Sometimes a need to get variables into your Python code, without hard-coding them into the program itself will arise.
Here is how it can handled.
sudo apt install python3-decouple -y
Add this into your py program’s import lines:
from decouple import config
Next, you need to create .env file and insert variables into it.
touch .env
nano .env
SOME_VAR=some_value
Then in your code, you would refer to your variable like this:
some_var=config(“SOME_VAR”)
Power-Manager QT is upgraded to support systemctl commands. It has “Are you sure” dialogs on every entry now. https://github.com/postman721/Power-Manager-QT
Vol2x-Reloaded is upgraded. It gains awareness of system sound & microphone levels: https://github.com/postman721/Vol2X-Reloaded
Albix (Pyqt5+Pygame music player). Is upgraded to next version: https://github.com/postman721/Albix
The root cause of an error is: /usr/bin/python3.9: No module named py_compile.
This will prevent python3 packages from installing as the dpkg errors out during configuration.
A more complete error example, will look something like this:
Setting up python3.9-minimal (3.9.2-1) …
/usr/bin/python3.9: can’t open file ‘/usr/lib/python3.9/py_compile.py’: [Errno
2] No such file or directory
dpkg: error processing package python3.9-minimal (–configure):
installed python3.9-minimal package post-installation script subprocess return
ed error exit status 2
Errors were encountered while processing:
python3.9-minimal
E: Sub-process /usr/bin/dpkg returned an error code (1)
…
/usr/bin/python3.9: No module named py_compile
Regardless of the package name, missing the py_compile will give plenty of issues. Here comes an easy fix.
Continue reading