Closed ArnoBen closed 3 years ago
I fixed this by making a build script from scratch, and I can now successfuly compile a clickable executable for Ubuntu.
I removed everything in the build-tools directory and instead put my own shell script in this directory.
Here is my script :
pyinstaller ../labelImg.py -F \
-p ../libs -p ../ \
--name "labelImg" \
--hidden-import=pyyaml \
--hidden-import=xml \
--hidden-import=xml.etree \
--hidden-import=xml.etree.ElementTree \
--hidden-import=lxml.etree \
--onefile \
--clean
This will build a single file executable inside this directory.
I execute this from a Pipenv, here is the related Pipfile:
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
lxml = "==4.6.3"
PyQt5 = "==5.15.4"
pyqtchart = "==5.15.4"
pyyaml = "==5.4.1"
[dev-packages]
pyinstaller = "==4.5.1"
[requires]
python_version = "3.6"
Don't forget to install the pipenv with pipenv install --dev
to install pyinstaller as well.
Cheers !
Greetings,
I have made a few minor changes to labelImg and I want to build a standalone application for Ubuntu.
I followed the instructions in build-tools/readme but it fails when running
sh build-ubuntu-binary.sh
. By the way I don't understand why we'd need to run a docker container on the side to build the binary (this is performed byrun-in-container.sh
).Here is the error that I get when running
sh build-ubuntu-binary.sh
:I have never used pyinstaller before, I'm watching tutorials at the moment but for now I have now idea what to try in order to make this work.
Thanks in advance, any suggestion would be appreciated.