Code Monkey home page Code Monkey logo

Comments (7)

aaronshan avatar aaronshan commented on May 21, 2024 9

I had already resolved this error.

it caused by qt bug. https://bugreports.qt.io/browse/QTBUG-58344

Now, I installed pyqt5.7, it works fine.

  1. change current directory to brew repo:
cd "$(brew --repo)"
  1. change to homebrew-core's formula dir:
cd Library/Taps/homebrew/homebrew-core/Formula/
  1. reset and checkout pyqt5.rb file to pyqt 5.7 version (latest version is pyqt 5.8, it has bug.)
git reset 233b493d3b7fe4fe7e2882765507693517f9817a pyqt5.rb
git checkout pyqt5.rb
  1. install pyqt5.7
brew install pyqt5.rb
  1. reset and checkout to latest version (pyqt 5.8)
git reset HEAD pyqt5.rb
git checkout pyqt5.rb

from labelimg.

dqhieu avatar dqhieu commented on May 21, 2024

Error on step 4. Pls help!
screen shot 2017-05-16 at 10 34 18 pm

from labelimg.

XiomarG avatar XiomarG commented on May 21, 2024

I think it would be worthy to add some more input here as this is the solution to a popular question.

If you installed [email protected] and still get the old error, you probably have [email protected]. Do brew uninstall pyqt to make sure you only have [email protected] in your system.

from labelimg.

dqhieu avatar dqhieu commented on May 21, 2024

I have not installed [email protected] before

from labelimg.

aaronshan avatar aaronshan commented on May 21, 2024

@dqhieu Did you already installed pyqt5?

from labelimg.

XiomarG avatar XiomarG commented on May 21, 2024

@aaronshan I am not very familiar with brew structure but as you can see in my comment, it seems recently when you install pyqt5, there won't be any pyqt5.rb but only pyqt.rb. And that pyqt is version 5.8.2. Did pyqt5 change the way it's installed?

from labelimg.

santhoshdc1590 avatar santhoshdc1590 commented on May 21, 2024

installing Qt5 through pip3 inside virtual environment worked just fine for me
This link was useful How can I install PyQt5 on Mac?

First Error I got

Traceback (most recent call last): File "labelImg.py", line 24, in <module> from PyQt4.QtGui import *

I uninstalled Qt5 using brew uninstall pyqt

I just use pip3 install PyQt5

Then ran
make qt5py3
python labelImg.py

Then got error
from lxml import etree ModuleNotFoundError: No module named 'lxml'

So installed pip3 install lxml

It worked Awesome!!!!!!!

from labelimg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.