HumanSignal / labelImg

LabelImg is now part of the Label Studio community. The popular image annotation tool created by Tzutalin is no longer actively being developed, but you can check out Label Studio, the open source data labeling tool for images, text, hypertext, audio, video and time-series data.
https://youtu.be/p0nR2YsCY_U
MIT License
22.56k stars 6.27k forks source link

Macos: pyrcc5: No such file or directory #512

Open javadba opened 4 years ago

javadba commented 4 years ago

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"
$
$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

JenniferOH commented 4 years ago

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

javadba commented 4 years ago

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
retsil commented 4 years ago

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

heye0507 commented 4 years ago

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.

yannickh2 commented 3 years ago

@heye0507 wow thanks that worked