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

error #1019

Open
hz-1 opened this issue Nov 8, 2023 · 1 comment
Open

error #1019

hz-1 opened this issue Nov 8, 2023 · 1 comment

Comments

@hz-1
Copy link

hz-1 commented Nov 8, 2023

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

@ajeetkr-7
Copy link

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'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants