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

'__NSCFDictionary' object has no attribute '_hWnd' #80

Open
yuege613 opened this issue Jul 31, 2024 · 3 comments
Open

'__NSCFDictionary' object has no attribute '_hWnd' #80

yuege613 opened this issue Jul 31, 2024 · 3 comments

Comments

@yuege613
Copy link

env_window = select_window(named_windows)

File "/Users/yuege/Projects/learn/Cradle/cradle/gameio/lifecycle/ui_control.py", line 62, in select_window
is_top, parent_handle = is_top_level_window(candidate.window._hWnd)
AttributeError: '__NSCFDictionary' object has no attribute '_hWnd'

how to solve this error

@DVampire
Copy link
Collaborator

Looking at the error is that the game UI is not open, is your operating system macOS? Your game is Cities: Skylines or Stardew?

@yuege613
Copy link
Author

yuege613 commented Aug 1, 2024

macOS , use this command

python runner.py --envConfig "./conf/env_config_chrome.json"

@WeihaoTan
Copy link
Collaborator

WeihaoTan commented Aug 1, 2024

Sorry for the confusion. As shown in the software README, the software part experiments are only supported and tested on Windows. MacOS has different resolutions, layouts and logits for switching windows, we did not do the adaption so far.

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

3 participants