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.15k stars 6.23k forks source link

error #1019

Open hz-1 opened 8 months ago

hz-1 commented 8 months ago

labelImg.py:73: DeprecationWarning: sipPyTypeDict() is deprecated, the extension module should use sipPyTypeDictRef() instead class MainWindow(QMainWindow, WindowMixin):

ajeetkr-7 commented 7 months ago

I am getting the similar error, I am using Ubuntu 23.10 with PyQt5. Here is the stacktrace of command python labelImg.py (using virtualenv for python3.11)

/home/ajeet/Desktop/BTP/labelImg/labelImg.py:73: DeprecationWarning: sipPyTypeDict() is deprecated, the extension module should use sipPyTypeDictRef() instead
  class MainWindow(QMainWindow, WindowMixin):
Traceback (most recent call last):
  File "/home/ajeet/Desktop/BTP/labelImg/labelImg.py", line 1766, in <module>
    sys.exit(main())
                 ^^^^^^
  File "/home/ajeet/Desktop/BTP/labelImg/labelImg.py", line 1761, in main
    app, _win = get_main_app(sys.argv)
                          ^^^^^^^^^^^^^^^^^^^
  File "/home/ajeet/Desktop/BTP/labelImg/labelImg.py", line 1752, in get_main_app
    win = MainWindow(args.image_dir,
               ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ajeet/Desktop/BTP/labelImg/labelImg.py", line 217, in __init__
    self.dock.setFeatures(self.dock.features() ^ self.dock_features)
                                ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
TypeError: unsupported operand type(s) for ^: 'DockWidgetFeatures' and 'DockWidgetFeatures'