Skip to content

fix: UnboundLocalError for os in pipeline.py on Python 3.13#131

Open
Bindkushal wants to merge 1 commit intosugarlabs:mainfrom
Bindkushal:fix/os-unbound-python313
Open

fix: UnboundLocalError for os in pipeline.py on Python 3.13#131
Bindkushal wants to merge 1 commit intosugarlabs:mainfrom
Bindkushal:fix/os-unbound-python313

Conversation

@Bindkushal
Copy link
Copy Markdown

The os module becomes unbound inside the setup_kokoro thread on Python 3.13 due to stricter scoping rules, causing an UnboundLocalError. Using import('os') fetches the module directly at the point of use, bypassing the scoping issue entirely.

Test video link

https://drive.google.com/file/d/1MWZA1dKCkh0B5uCK3pYlXkdRjPfhBD0n/view?usp=sharing

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.

1 participant