labelImg icon indicating copy to clipboard operation
labelImg copied to clipboard

error

Open hz-1 opened this issue 1 year ago • 1 comments

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

hz-1 avatar Nov 08 '23 09:11 hz-1

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'

ajeetkr-7 avatar Nov 13 '23 21:11 ajeetkr-7