I need to implement python code into UiPath but i get the error "module 'sys' has no attribute 'argv' "

This is my code but when i run it in Uipath i get the error "module ‘sys’ has no attribute ‘argv’ "
The goal of my program is to extract information from a text file and pass it through the model.

import spacy

def spacy():
nlp = spacy.load(“en_core_web_sm”)

doc = open("Email data.txt", "r")

docx = nlp(doc.read())

for token in docx.ents:
  print(token.text, token.label_,)

@Prakash_Singh If you can help over here :slight_smile: