Python Forum
Cannot open file [ERNO 22] INVALID ARGUMENT
Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cannot open file [ERNO 22] INVALID ARGUMENT
#11
I added the two things and restarted my pc but it still closes.
https://gyazo.com/92a5346b38e1720d0879f2ad443f7dd4 << what I added


Video of not opening: https://gyazo.com/503d13917d83d74e8e789942ec6aac57
Reply
#12
The console tells you more than the clicks. Try again in a console.
Reply
#13
how do I try again in a console, sorry im new to this
Reply
#14
Simply open the console (or cmd or command prompt) and type python to see if it starts the python interpreter.

If it works, try again with the path to your program, for example python C:\foo\bar\baz\qux.py
Reply
#15
Like this right?

https://gyazo.com/df9645becab42ffc16ad4c00384e2ca8
Reply
#16
Yes now you in folder C:\Users\Joshu\python.
Type exit() to get back to command line.
If you place your python file lets call it foo.py in that folder.
You can run it like this:
C:\Users\Joshu\python\python foo.py
tutorial cmd learn basic like dir(look at files) cd(navigate to other folder).
Reply
#17
can someone do it for me in teamviewer, I'm just really confused about this
Reply
#18
Do you know the path to your python file in the folders hierarchy?
Reply
#19
I think it has something to do with the top

https://gyazo.com/c0546bac12141d42c6f9a60e15b654bc

^ I don't know how to change the korean words on the top.

I FIXED IT it has something to do with the korean letters so I removed them
Reply
#20
Does it work now?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Open and read a tab delimited file from html using python cgi luffy 2 2,688 Aug-24-2020, 06:25 AM
Last Post: luffy
  Open unuploaded file bhojendra 1 2,252 Jul-19-2019, 04:10 AM
Last Post: micseydel
  Open Sqlite database file directly in django sourabhjaiswal92 0 2,962 May-22-2018, 05:55 AM
Last Post: sourabhjaiswal92

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020