Unable to edit programs

This is the place for queries that don't fit in any of the other categories.

Unable to edit programs

Postby Hissing Cockroach » Sun Nov 03, 2013 7:45 pm

I have no idea why, but when I uninstalled python 3.3.2,I can't
even edit my 2.7 programs. Does anyone know what I should do?
User avatar
Hissing Cockroach
 
Posts: 108
Joined: Sat Sep 14, 2013 2:35 pm
Location: Earth

Re: Unable to edit programs

Postby Crimson King » Sun Nov 03, 2013 8:17 pm

What do you mean you can't edit your programs? You only need a text editor to do that, it doesn't matter which version of python you're using.
User avatar
Crimson King
 
Posts: 85
Joined: Fri Mar 08, 2013 2:42 pm
Location: Buenos Aires, Argentina

Re: Unable to edit programs

Postby Hissing Cockroach » Sun Nov 03, 2013 8:29 pm

When I right clicked one of my programs, it used to say "edit with IDLE" for one of the
options. Now that option is gone, and whenever I right click and go "open with>idle" it
brings up an error message that says, "cannot find idle.pyw".
User avatar
Hissing Cockroach
 
Posts: 108
Joined: Sat Sep 14, 2013 2:35 pm
Location: Earth

Re: Unable to edit programs

Postby Crimson King » Sun Nov 03, 2013 9:20 pm

Are you using windows? If that's the case try this:

Code: Select all
C:\path\to\python.exe -m idlelib.idle


and post any errors you get.
User avatar
Crimson King
 
Posts: 85
Joined: Fri Mar 08, 2013 2:42 pm
Location: Buenos Aires, Argentina

Re: Unable to edit programs

Postby Kebap » Sun Nov 03, 2013 9:20 pm

It seems like you are using Windows. Please search the forum for other python editors. IDLE is not recommended much.

As was stated before, you could even edit the python script with notepad, and/or run python directly via command line.
Learn: How To Ask Questions The Smart Way
Join the #python-forum IRC channel on irc.freenode.net and chat with uns directly!
Kebap
 
Posts: 387
Joined: Thu Apr 04, 2013 1:17 pm
Location: Germany, Europe

Re: Unable to edit programs

Postby Hissing Cockroach » Mon Nov 04, 2013 3:51 am

Crimson King wrote:Are you using windows? If that's the case try this:

Code: Select all
C:\path\to\python.exe -m idlelib.idle


and post any errors you get.


Yes, I am using windows, but I tried
this code in the command line and the
command prompt, exept I got these errors:

command line:

Code: Select all
>>> C:\path\to\python.exe -m idlelib.idle
  File "<stdin>", line 1
    C:\path\to\python.exe -m idlelib.idle
     ^
SyntaxError: invalid syntax
>>>


command prompt:

Code: Select all
C:\Users\Family>C:\path\to\python.exe -m idlelib.idle
The system cannot find the path specified.

C:\Users\Family>
User avatar
Hissing Cockroach
 
Posts: 108
Joined: Sat Sep 14, 2013 2:35 pm
Location: Earth

Re: Unable to edit programs

Postby Hissing Cockroach » Mon Nov 04, 2013 3:52 am

Kebap wrote:It seems like you are using Windows. Please search the forum for other python editors. IDLE is not recommended much.

As was stated before, you could even edit the python script with notepad, and/or run python directly via command line.


Is Notepad++ recommended?
User avatar
Hissing Cockroach
 
Posts: 108
Joined: Sat Sep 14, 2013 2:35 pm
Location: Earth

Re: Unable to edit programs

Postby micseydel » Mon Nov 04, 2013 4:05 am

Anything with "python.exe" in it goes in a windows shell, not a Python shell. The Python shell is for Python code.
Join the #python-forum IRC channel on irc.freenode.net!

Please do not PM members regarding questions which are meant to be discussed publicly. The point of the forum is so that others can benefit from it. We don't want to help you over PMs or emails.
User avatar
micseydel
 
Posts: 1223
Joined: Tue Feb 12, 2013 2:18 am
Location: Mountain View, CA

Re: Unable to edit programs

Postby Crimson King » Mon Nov 04, 2013 5:09 am

micseydel wrote:Anything with "python.exe" in it goes in a windows shell, not a Python shell. The Python shell is for Python code.


Yes, sorry about this. Should've said that you needed to run that on a command prompt.

Hissing Cockroach wrote:Is Notepad++ recommended?


Notepad++ is fine, you could also check outSublime Text and Geany.
User avatar
Crimson King
 
Posts: 85
Joined: Fri Mar 08, 2013 2:42 pm
Location: Buenos Aires, Argentina


Return to General Coding Help

Who is online

Users browsing this forum: snippsat and 4 guests