![In UIPath Studio,python scope is not getting initiated while using windows framework but if converting it into legacy, code is running fine. Currently, we are using python 3.9 version - Activities - In UIPath Studio,python scope is not getting initiated while using windows framework but if converting it into legacy, code is running fine. Currently, we are using python 3.9 version - Activities -](https://global.discourse-cdn.com/uipath/original/4X/1/9/8/198c4aeabe430376a9397f1c271367a5b38d50f8.jpeg)
In UIPath Studio,python scope is not getting initiated while using windows framework but if converting it into legacy, code is running fine. Currently, we are using python 3.9 version - Activities -
![How to Execute Python Scripts in UiPath?| UiPath Python Activities| Python Scope| Load Python Script - YouTube How to Execute Python Scripts in UiPath?| UiPath Python Activities| Python Scope| Load Python Script - YouTube](https://i.ytimg.com/vi/9vO6UTPGI2o/hq720.jpg?sqp=-oaymwEhCK4FEIIDSFryq4qpAxMIARUAAAAAGAElAADIQj0AgKJD&rs=AOn4CLDAAZeYzzV4zS_bIkpFMUFKZzBO5g)
How to Execute Python Scripts in UiPath?| UiPath Python Activities| Python Scope| Load Python Script - YouTube
![Python: Scope - Setting path to Python 27 and Version to Python 36 Causes Robot to Crash · Issue #36 · UiPath/Community.Activities · GitHub Python: Scope - Setting path to Python 27 and Version to Python 36 Causes Robot to Crash · Issue #36 · UiPath/Community.Activities · GitHub](https://user-images.githubusercontent.com/617177/48277047-3c01c400-e452-11e8-8e4b-d2aa09ca72af.png)