Error while using pyrcc5

how to install pyrcc5
how to install resource module in python
pyqt5 online compiler
pyuic5 is not recognized as an internal or external command
pyqt5 was unexpected at this time.
from libs resources import

I'm trying to create a resource file for the GUI i'm creating with PyQt 5.

I've used the command line

pyrcc5 -o D:\MyFolder\resource_file.qrc

but i get an error message : No resources in resource description

This is how my resource file looks :

    <qresource prefix="/images">
        <file alias="img">Images\mypic.png</file>


I've followed this topic : python 3 how to put pics inside my program but i somehow have something wrong.

QUESTION : if i understand, when you have a resource file, you still need to have the images in a folder somewhere. So why bother making a resource file then ? Isn't the same ? The images can still be deleted or moved no ?

For anyone facing this issue in the future, here is how I solved it.

find the following batch file : pyuic5.bat

Which is a batch file, Edit it to add your own .ui file:

@"C:\Users\******\AppData\Local\Programs\Python\Python35-32\python" -m PyQt5.uic.pyuic %1 %2 %3 %4 %5 %6 %7 %8 %9 Design.ui -o


Hit enter in the CMD, then the "" will be created in the folder.

Good Luck.

'pyrcc5' is not recognized as an internal or external command , Even if I find a place with a pyrcc4.exe file or a place with apyrcc5.bat file and add the path to the environment variables I get the same error. In  1. pyrcc5 make issue: pipenv run pip install pyqt5 # this will install 5.14.1 version; pipenv run make qt5py3 # now you will pass the pyrcc5 make issue, but will have some run time issue due to incorrect version of pyqt5; pipenv run pip install pyqt5 == 5.13.2; pipenv run make qt5py3; Now you should see message pyrcc5 -o libs/ resources.qrc. 2.

I also met this problem. In your case you should change your command to:

pyrcc5 D:\MyFolder\resource_file.qrc -o D:\MyFolder\

Hope this can help you.

pyrcc5 resource compiler troubles : learnpython, I just keep getting this same syntax error. I must be missing something obvious. I'​m using spyder, python 3.6. File explorer is in the working directory, so it should  from PyQt5 import pyrcc5 pyrcc5 C:\Users\user\macros project\imagefolder.qrc C:\Users\user\macros project\ But I just keep getting the same syntax error: import PyQt5 pyrcc5 imagefolder.qrc -o imagefolder_rc File "<ipython-input-29-abd00927d50d>", line 2 pyrcc5 imagefolder.qrc -o imagefolder_rc ^ SyntaxError: invalid syntax

Ran into something similar with the new pyside2-rcc implementation. In my case the .qrc file I was using had the normal XML declaration line at the top ('<?xml version="1.0" ?>').

Once I removed the XML declaration it started working perfectly. So my qrc file now has '<RCC version="1.0">' as the very first line.

Maybe your "<!DOCTYPE RCC>" line is/was causing something similar?

Figured I'd throw this out there in case anyone else runs into it.

python - Error while using pyrcc5 -, pyrcc5 -o d:\myfolder\resource_file.qrc. but error message : no resources in resource description. this how resource file looks : running install running build running build_qt error: [Errno 2] No such file or directory: 'pyrcc5' I'm on Linux Mint 17.2, and I installed PyQt5 using the command apt-get install python3-pyqt5 This comment has been minimized.

resource compiler pyrcc5 was not found in your path · Issue #110 · g , I can run the pyrcc5 from the OSGeo Shell if I run py3_env and qt5_env first. path #110. Open. tveinot opened this issue on Apr 3, 2019 · 2 comments. Open  I can tell that pyrcc5 is installed for Python 2.7, but I am using Python 3.7 and would like pyrcc5 to work there. How can I do this? I am on MacOS High Sierra. From what I can tell pyrcc5 should be linked to PyQt5, which I installed using homebrew and which works just fine, even if it took some headaches and workarounds.

Using pyrcc5 to Help Pyinstaller Import External Sources Example , Using pyrcc5 to Help Pyinstaller Import External Sources Example. Dependencies All changes made in this file will be lost! raise IOError('file open error'). Next steps. Have a question or can't find what you're looking for? Create a GitHub issue or see Support and help options for developers to learn about other ways you can get help and support.

Feature request #17735: Add tools for Py3Qt5 in OSGeo4W, Also with the OSGeo4W shell, I can run pyrcc4, pyuic4 but not pyrcc5, pyuic5 C​:\>C:\OSGeo4W64\apps\Python36\Scripts\pyrcc5.bat Fatal Python error:  Here is a Common problems and solutions page for specific error codes

  • Check this
  • @Vaulstein yeah i saw that one too but i'm using PyQt5, not 4 and the thing is I can't even generate the .py file containing the resource
  • The qrc file is invalid because the qresource tag is unclosed.
  • The resources are all compiled into a single python module which can be imported at runtime. So when the application is installed, the image files are longer needed.
  • @guy16. Works fine for me. Try using: Images/mypic.png (i.e. don't use backslashes).