Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot use 'pyside-rcc' to compile .qrc file

I am working on python project and I have a problem with pyside-rcc. First, let I explain briefly about my project.

I created my project GUI in QtDesigner and also use the image in the GUI. Then, I generate .py from .ui file using pyside-uic and it works! Then I have to generate my resource file, .qrc file, to .py file to use with my project.

The problem is when I use pyside-rcc to generate a resource file, it shows an error.

"'pyside-rcc' is not recognized as an internal or external command, operable probram or batch file." (As shown below)

A desktop image shows an error when using pyside-rcc

You can see in the bottom of Python folder. There is pyside-rcc.exe file. I do not know why pyside-rcc is not work (pyside-uic still work).

Thank you for answer. :)

like image 207
Pandarian Ld Avatar asked Mar 20 '23 04:03

Pandarian Ld


1 Answers

The pyside-uic tool is installed into a different folder than the other PySide tools (like pyside-rcc and pyside-lupdate).

To get all the tools working for Python-3.3, your PATH environment variable needs to include these two paths:

    C:\Python33\Lib\site-packages\PySide;C:\Python33\Scripts;

Once you've made the necessary changes, you will also need to re-open any command-prompt windows for the changes to take effect.

like image 173
ekhumoro Avatar answered Apr 02 '23 08:04

ekhumoro