Labelimg: Macos: pyrcc5: No such file or directory

Created on 18 Oct 2019  路  4Comments  路  Source: tzutalin/labelImg

Any thoughts on this? I am on mojave and building from master/HEAD re-checked out today.

$git pull origin master
From https://github.com/tzutalin/labelImg
 * branch            master     -> FETCH_HEAD
Already up to date.

$ python3 -c "from PyQt5.QtCore import *; import lxml"
$



md5-2605cc81648a1847aefb842937b56447



$make qt5py3
pyrcc5 -o libs/resources.py resources.qrc
make: pyrcc5: No such file or directory
make: *** [qt5py3] Error 1

Also fyi someone else had created an SOF on exactly this last month:

https://stackoverflow.com/questions/58039085/pyrcc5-no-such-file-or-directory

Most helpful comment

Hi all,

Just a quick update for the issues that I had and solved (Now I have labelImg running on mac os)

1. pyrcc5 make issue:

  1. pipenv run pip install pyqt5 # this will install 5.14.1 version
  2. 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
  3. pipenv run pip install pyqt5 == 5.13.2
  4. pipenv run make qt5py3

Now you should see message
pyrcc5 -o libs/resources.py resources.qrc

2. No module named PyQt5
Issue: after passing the pyrcc5 issue, when run python3 LabelImg.py will give no module named PyQt5 due to pipenv

  1. pipenv shell
  2. python3 LabelImg.py # this might give you no module named lxml issue
  3. if lxml not found issue:
    pipenv install lxml
  4. python3 LabelImg.py

Now LabelImg should start running.

All 4 comments

check this link: https://stackoverflow.com/questions/46986431/make-no-rule-to-make-target-qt5py3-stop
You'll need to to 'brew install pyqt5' in order to get 'make qt5py3q' to work

That was already installed: though I see that were not indicated in my question.

$brew install pyqt5
Error: pyqt 5.10.1_1 is already installed

I get the same problem with macports too
sudo port install py36-pyqt5

Hi all,

Just a quick update for the issues that I had and solved (Now I have labelImg running on mac os)

1. pyrcc5 make issue:

  1. pipenv run pip install pyqt5 # this will install 5.14.1 version
  2. 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
  3. pipenv run pip install pyqt5 == 5.13.2
  4. pipenv run make qt5py3

Now you should see message
pyrcc5 -o libs/resources.py resources.qrc

2. No module named PyQt5
Issue: after passing the pyrcc5 issue, when run python3 LabelImg.py will give no module named PyQt5 due to pipenv

  1. pipenv shell
  2. python3 LabelImg.py # this might give you no module named lxml issue
  3. if lxml not found issue:
    pipenv install lxml
  4. python3 LabelImg.py

Now LabelImg should start running.

Was this page helpful?
0 / 5 - 0 ratings