Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

subprocess startup error

509 views
Skip to first unread message

Shweta Dinnimani

unread,
Feb 26, 2016, 8:22:15 AM2/26/16
to
hi

hello, I'm begineer to python programming.. I had installed python 3.5.1
version on my windows 7 system. I was fine earlier and now when i was
trying the programs on string i'm facing the subprocess startup error. IDLE
is not connecting. And python shell is also not opening. I tried
uninstalling and installing the python shell but Im facing the
problem.Please do help me

--
Thank you
with best regards

Shweta Dinnimani
+91-8762650817

Shweta Dinnimani

unread,
Feb 26, 2016, 8:25:07 AM2/26/16
to
forgot to mention..

i saved my file as string.py since than i'm facing this error

On Fri, Feb 26, 2016 at 6:50 PM, Shweta Dinnimani <shweta...@gmail.com>
wrote:

Peter Otten

unread,
Feb 26, 2016, 8:30:42 AM2/26/16
to
Shweta Dinnimani wrote:

> forgot to mention..
>
> i saved my file as string.py since than i'm facing this error

Rename that file to something that does not clash with the module names in
the standard library, mystring.py for example, and IDLE should work again.

Oscar Benjamin

unread,
Feb 26, 2016, 9:49:52 AM2/26/16
to
On 26 February 2016 at 13:30, Peter Otten <__pet...@web.de> wrote:
> Shweta Dinnimani wrote:
>>>
>>> hello, I'm begineer to python programming.. I had installed python 3.5.1
>>> version on my windows 7 system. I was fine earlier and now when i was
>>> trying the programs on string i'm facing the subprocess startup error.
>>> IDLE is not connecting. And python shell is also not opening. I tried
>>> uninstalling and installing the python shell but Im facing the
>>> problem.Please do help me
>
>> forgot to mention..
>>
>> i saved my file as string.py since than i'm facing this error
>
> Rename that file to something that does not clash with the module names in
> the standard library, mystring.py for example, and IDLE should work again.

It's ridiculous that it's this easy to accidentally crash IDLE and the
Python shell.

--
Oscar

Emile van Sebille

unread,
Feb 26, 2016, 9:58:17 AM2/26/16
to
I don't think there's a way to protect against it -- how could you work
on string.py otherwise?

Emile



Wolfgang Maier

unread,
Feb 26, 2016, 10:08:46 AM2/26/16
to
Emitting a warning message in such situations is being discussed in
http://bugs.python.org/issue23809 though it is not a very lively discussion.

Wolfgang Maier

unread,
Feb 26, 2016, 10:29:24 AM2/26/16
to

Mark Lawrence

unread,
Feb 26, 2016, 10:48:28 AM2/26/16
to
Thanks for the link. I knew that I remembered a discussion about this
but frustratingly couldn't find it for myself :(

--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

Terry Reedy

unread,
Feb 27, 2016, 3:34:16 AM2/27/16
to
On 2/26/2016 9:49 AM, Oscar Benjamin wrote:
> On 26 February 2016 at 13:30, Peter Otten <__pet...@web.de> wrote:
>> Shweta Dinnimani wrote:
>>>>
>>>> hello, I'm begineer to python programming.. I had installed python 3.5.1
>>>> version on my windows 7 system. I was fine earlier and now when i was
>>>> trying the programs on string i'm facing the subprocess startup error.
>>>> IDLE is not connecting. And python shell is also not opening. I tried
>>>> uninstalling and installing the python shell but Im facing the
>>>> problem.Please do help me

What do you mean by 'python shell' and how do you uninstall and install it?

>>> forgot to mention..
>>>
>>> i saved my file as string.py since than i'm facing this error
>>
>> Rename that file to something that does not clash with the module names in
>> the standard library, mystring.py for example, and IDLE should work again.
>
> It's ridiculous that it's this easy to accidentally crash IDLE and the
> Python shell.

I agree and hope to fix this for IDLE before the next round of releases.
Any Python app that does *not* want to import non-stdlib files on
startup must remove '' from sys.path. Console python should not be
affected by files in the current working directory.

--
Terry Jan Reedy

Terry Reedy

unread,
Feb 27, 2016, 3:39:07 AM2/27/16
to
On 2/26/2016 10:08 AM, Wolfgang Maier wrote:
> On 26.02.2016 15:57, Emile van Sebille wrote:
>> On 2/26/2016 6:49 AM, Oscar Benjamin wrote:
>>> On 26 February 2016 at 13:30, Peter Otten <__pet...@web.de> wrote:
>>>> Shweta Dinnimani wrote:
>>>>> i saved my file as string.py since than i'm facing this error
>>>>
>>>> Rename that file to something that does not clash with the module
>>>> names in
>>>> the standard library, mystring.py for example, and IDLE should work
>>>> again.
>>>
>>> It's ridiculous that it's this easy to accidentally crash IDLE and the
>>> Python shell.
>>
>> I don't think there's a way to protect against it -- how could you work
>> on string.py otherwise?
>>
>
> Emitting a warning message in such situations is being discussed in
> http://bugs.python.org/issue23809 though it is not a very lively
> discussion.

This is a separate issue of user code importing a user's own file
instead of an stdlib file.


--
Terry Jan Reedy

Veek. M

unread,
Jul 1, 2016, 11:43:37 PM7/1/16
to
Shweta Dinnimani wrote:

> hi
>
> hello, I'm begineer to python programming.. I had installed python
> 3.5.1 version on my windows 7 system. I was fine earlier and now when
> i was trying the programs on string i'm facing the subprocess startup
> error. IDLE is not connecting. And python shell is also not opening. I
> tried uninstalling and installing the python shell but Im facing the
> problem.Please do help me
>

You need to post/screen-capture the whole error message/traceback.

Terry Reedy

unread,
Jul 2, 2016, 3:29:36 PM7/2/16
to
On 7/1/2016 11:43 PM, Veek. M wrote:
> Shweta Dinnimani wrote:
>
>> hi
>>
>> hello, I'm begineer to python programming.. I had installed python
>> 3.5.1 version on my windows 7 system. I was fine earlier and now when
>> i was trying the programs on string i'm facing the subprocess startup
>> error. IDLE is not connecting. And python shell is also not opening. I
>> tried uninstalling and installing the python shell but Im facing the
>> problem.Please do help me

In my answer to
https://stackoverflow.com/questions/37997715/idles-subprocess-didnt-make-a-connection-either-idle-cant-start-or-personal/38001829#38001829
I list all the possible reasons I know of.

A file of yours with the same name as a stdlib file is at least as
common reason as antivirus/firewall software.

> You need to post/screen-capture the whole error message/traceback.

If you start IDLE from Command Prompt with 'python -m idlelib', you
might get more information.

--
Terry Jan Reedy

matej1...@gmail.com

unread,
Jul 2, 2016, 5:14:47 PM7/2/16
to
try to download pywin
(i think that pywin will working ok)



url to download https://sourceforge.net/projects/pywin32/files/pywin32/
0 new messages