Skip to content
This repository was archived by the owner on Feb 29, 2024. It is now read-only.
This repository was archived by the owner on Feb 29, 2024. It is now read-only.

Building labelImg (Python3 and Qt5) on Fedora  #314

@heis2201

Description

@heis2201
  • OS:: Fedora 28
  • PyQt version: Python 2.7.15 and Python 3.6.5

I would need help getting the latest labelImg up and running on my machine.
I couldn't find a linux binary of the latest version, and unfortunately I was not able to build/execute the sources provided.

Here is some output of my attempt to use pip3 to install labelImg (I ran the command without sudo before but of course it failed because of missing rights to write to /usr):

florian@t440-f25: ~/labelimg/labelImg $ sudo pip3 install labelImg
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
Collecting labelImg
  Downloading https://files.pythonhosted.org/packages/c1/5d/4b8a6dc5e352543199bc3991785af2e1cd58e50f1016e3725db826e3f4bb/labelImg-1.7.0.tar.gz (587kB)
    100% |████████████████████████████████| 593kB 1.6MB/s 
Installing collected packages: labelImg
  Running setup.py install for labelImg ... done
Successfully installed labelImg-1.7.0
florian@t440-f25: ~/labelimg/labelImg $ labelImg 
build-tools/       data/              .eggs/             .gitignore         icons/             issue_template.md  libs/              Makefile           README.rst         setup.cfg          tests/
CONTRIBUTING.rst   demo/              .git/              HISTORY.rst        __init__.py        labelImg.py        LICENSE            MANIFEST.in        resources.qrc      setup.py           .travis.yml
florian@t440-f25: ~/labelimg/labelImg $ labelImg 
build-tools/       data/              .eggs/             .gitignore         icons/             issue_template.md  libs/              Makefile           README.rst         setup.cfg          tests/
CONTRIBUTING.rst   demo/              .git/              HISTORY.rst        __init__.py        labelImg.py        LICENSE            MANIFEST.in        resources.qrc      setup.py           .travis.yml
florian@t440-f25: ~/labelimg/labelImg $ labelImg 
build-tools/       data/              .eggs/             .gitignore         icons/             issue_template.md  libs/              Makefile           README.rst         setup.cfg          tests/
CONTRIBUTING.rst   demo/              .git/              HISTORY.rst        __init__.py        labelImg.py        LICENSE            MANIFEST.in        resources.qrc      setup.py           .travis.yml
florian@t440-f25: ~/labelimg/labelImg $ labelImg 
build-tools/       data/              .eggs/             .gitignore         icons/             issue_template.md  libs/              Makefile           README.rst         setup.cfg          tests/
CONTRIBUTING.rst   demo/              .git/              HISTORY.rst        __init__.py        labelImg.py        LICENSE            MANIFEST.in        resources.qrc      setup.py           .travis.yml
florian@t440-f25: ~/labelimg/labelImg $ labelImg 
Traceback (most recent call last):
  File "/usr/local/bin/labelImg", line 11, in <module>
    load_entry_point('labelImg==1.7.0', 'console_scripts', 'labelImg')()
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 476, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2700, in load_entry_point
    return ep.load()
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2318, in load
    return self.resolve()
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2324, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/local/lib/python3.6/site-packages/labelImg/labelImg.py", line 29, in <module>
    import resources
ModuleNotFoundError: No module named 'resources'

Some other questions:

  • Am I supposed to run it using pyhton 2?

  • What are the requirements/dependencies on a Fedora system to successfully build labelImg?

  • Where can I get support?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions