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

Fix fileno() error in Maya2022 #1124

Merged
merged 1 commit into from Sep 21, 2021

Conversation

yanshil
Copy link
Contributor

@yanshil yanshil commented Sep 10, 2021

Maya 2022 console don't have sys.stdin is a None object.
Although the comment said this is taken into account, but the code didn't implement this idea.

Using resolved_context.save_resolved_context_file(file_path=rez_ctx_file) in Maya 2022 will cause the following error

# Error: AttributeError: file ~~~~\rez\~~~\platform-windows\python-3.7\lib\site-packages\rez\utils\execution.py line 59: 'NoneType' object has no attribute 'fileno' # 

Maya 2022 console don't have sys.__stdin__ is a None object. 
Although the comment said this is taken into account, but the code didn't implement this idea.

Using `resolved_context.save_resolved_context_file(file_path=rez_ctx_file)` in Maya 2022 will cause the following error
```
# Error: AttributeError: file ~~~~\rez\~~~\platform-windows\python-3.7\lib\site-packages\rez\utils\execution.py line 59: 'NoneType' object has no attribute 'fileno' # 
```
@nerdvegas nerdvegas merged commit 0447e7d into AcademySoftwareFoundation:master Sep 21, 2021
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

Successfully merging this pull request may close these issues.

None yet

2 participants