Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fernandesafp opened this issue Jun 26, 2023 · 1 comment
Open

Comments

@fernandesafp
Copy link

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
Copy link

Same issue here. Any resolution?

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

No branches or pull requests

2 participants