Skip to content

[bug] os.getenv('DISPLAY') failed on Windows #330

@SingleZombie

Description

@SingleZombie

Thanks for your bug report. We appreciate it a lot.

Describe the bug

When running deploy.py on my Windows laptop, I got the warning ""visualize_model" has been skipped" due to os.getenv('DISPLAY') returns None. However, it is impossible that my laptop doesn't have a display device. I guess os.getenv('DISPLAY') cannot work correctly on Windows.

PS: I think besides is_display is not None, args.show should also be checked when deciding whether to call visualization. Even when we are using a server, we need visualize_model to write the output to a file.

Reproduction

Run any script with deploy.py on Windows.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions