On 01/05/2019 20:08, Miguel Angel Ramos Herrera via Tutor wrote: > This line of code gives me an error
I assume you mean this line: execute_from_command_line(sys.argv) But that's not a line of standard Python so I can only assume that this is a function that you have defined yourself. But without seeing what the function does it's hard to debug it. However, the solution could simply be that you have not imported sys. You would need to call it with import sys execute_from_command_line(sys.argv) If that is not the solution then please post again with more detail (see below) > Can not find sys.argv That's not a standard python error message. Please always send the full error trace not a summary or partial message. There is a lot of important detail in the text. Please always try to show us both the actual code that produces an error as well as the full error text. And, if significant, the input and output data too. It may also help to tell us the Python version and OS. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor