Closed ergoego closed 3 years ago
Finally got it to work after failing on:
m1 Mac mini m1 Macbook air Rpi 4
Is there perhaps an issue with supporting arm64?
The working system was a MacBook Pro 2019 running macOS Catalina.
Cloned, the project, installed PyQt 5 and lxml no problem, make qt5py3, and it all just works.
I was able to run it in my M1 Mac Mini from the Docker image (in case you are interested). However, I never stopped getting a "make sure xxx.jpg is a valid image"...
I can confirm the same issue happens on my iMac with Apple Silicon. None of the installation method for macOS works currently.
Update:
Found a workaround, hope it helps if you Googled into this thread:
Basically you will need a python@3.7 which runs via Rosetta 2 to make everything work. My steps are listed as below:
arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
.bashrc
or .zshrc
file so you can call the x86 homebrew with ease
alias ibrew="arch -x86_64 /usr/local/bin/brew"
ibrew install python@3.7
virtualenv LabelImg -p /usr/local/opt/python@3.7/bin/python3
pip install pyqt5==5.12.1 lxml
labelImg
shall start:
make qt5py3
python labelImg.py
I have tried and failed to install this program using every method listed for macOS.
I erased my computer, reinstalled macOS 11.5.2, still no luck. Im open to an alternative that annotates images in Pascal VOC xml, but it looks like most things are costly (roboflow.com). Google's own tensor flow tutorials pointed me to this tool, so that's what I'm trying to use.
Build From Source Method:
If using brew in the option above, error at
make qt5py3
:make: *** No rule to make target qt5py3. Stop.
If using python in the option above, error at
pip3 install pyqt5 lxml
:Python 3 Virtualenv Method:
Error at 'pipenv run pip install pyqt5==5.12.1 lxml':
build-for-macos.sh method:
Docker
I first download and install Docker Desktop, then install docker CLI with brew.
Then I run the provided build script:
Error:
So then I try to pull the docker image first by running 'docker pull tzualin/py2qt4'
That installs fine, but then I have no idea what to do from here. I can run the image, get a command line to the container, but what to run here?
Much thanks for any response - really need to use this for a project.