karayaman / Play-online-chess-with-real-chess-board

Program that enables you to play online chess using real chess boards.
GNU General Public License v3.0
331 stars 24 forks source link

AttributeError: '_thread._local' object has no attribute 'display' #25

Open fernandesafp opened 1 year ago

fernandesafp commented 1 year ago

This happens once I either run main.py or start from the GUI.

Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/threading.py", line 1009, in _bootstrap_inner
    self.run()
  File "commentator.py", line 22, in run
    resized_chessboard = self.game_state.get_chessboard()
  File "commentator.py", line 50, in get_chessboard
    img = np.array(np.array(self.sct.grab(monitor)))
  File ".env/lib/python3.10/site-packages/mss/base.py", line 90, in grab
    screenshot = self._grab_impl(monitor)
  File ".env/lib/python3.10/site-packages/mss/linux.py", line 428, in _grab_impl
    self._handles.display,
AttributeError: '_thread._local' object has no attribute 'display'

Anyone knows what this is about?

SergioMOrozco commented 10 months ago

Same issue here. Any resolution?