Python Forum
Can't open files - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Can't open files (/thread-30523.html)



Can't open files - Lass86 - Oct-24-2020

Hello everyone,

I keep running into this issue and after some research I still don't know what to do. I have used different IDE's and editors, but I always end up not being able to open up my .py files.
I double click and the files just won't open. There is no little widow telling me what's wrong, it just doesn't happen.

I had this problem several times now. Do you guys have any idea what's going on?

Greetings Lass.


RE: Can't open files - jefsummers - Oct-24-2020

You didn't tell us what OS you are using, but it sounds like the .py extension is not mapping to either an IDE or a Python runtime. Normally you would map it to the runtime, and open it in the IDE by opening the IDE first.


RE: Can't open files - Lass86 - Oct-24-2020

(Oct-24-2020, 05:49 PM)jefsummers Wrote: You didn't tell us what OS you are using, but it sounds like the .py extension is not mapping to either an IDE or a Python runtime. Normally you would map it to the runtime, and open it in the IDE by opening the IDE first.

I'm on Windows, assuming that that's what you mean.
I tried opening the file through IDE (Wing 101) and I set the PATH to this. I worked on it for a little while, but when I tried to reopen it, it won't open.


RE: Can't open files - jefsummers - Oct-25-2020

Not familiar with Wing. If you right click on the file and choose Open With, what options does it show?


RE: Can't open files - Lass86 - Nov-10-2020

(Oct-25-2020, 06:26 PM)jefsummers Wrote: Not familiar with Wing. If you right click on the file and choose Open With, what options does it show?

It showed me a few programs that don't actually work. Wing isn't on there. When I try looking for other apps and I find Wing, I click it, it still won't open.


RE: Can't open files - jefsummers - Nov-10-2020

First, would make sure your Windows Path includes the path to your Python installation. Then, open the control panel and associate the .py extension with your Python installation.