Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.



Windows 7: *py execution problem

16 Sep 2010   #1
upf

windows 7
 
 
*py execution problem

Hey guys,
I've started to learn python and I have problem with executing *py files. I get this error :
Code:
There was a problem sending the command to the program
I have windows 7 x64 and installed python 3.1 . I'm using firewall and I've disabled it.

My System SpecsSystem Spec
.

16 Sep 2010   #2

Windows 7 32 bit
 
 

Try this to get a 32 bit shell:

Explorer32 Shortcut in Vista 64-bit - Vista Forums

then double click the .py file there. If your python is a 32 bit dll that may be the issue.
Or you can use a 32 bit file manager like FreeCommander.
My System SpecsSystem Spec
16 Sep 2010   #3

Systems 1 and 2: Windows 7 Enterprise x64, Win 8 Developer
 
 

If you type python at the command prompt, do you receive a
>>>

If yes, type print "Hello"

Does it print?

Then to execute your script, type

python yourscriptname.py
My System SpecsSystem Spec
.


16 Sep 2010   #4
upf

windows 7
 
 

MilesAhead thank you for your reply but did not helped. Python that is installed on my machine is a 64 bit.

Lemur, thank you for your reply but problem is that if I execute python commands in cmd window or in IDLE it works but the error message pops up(not when run IDLE). If I try to double click on *py file then only pops up error message.
My System SpecsSystem Spec
17 Sep 2010   #5

Windows 7 32 bit
 
 

Are you using the ActivePython distro? I've had good luck with it on Windows. Although I haven't tried it on 64 bit. I've been moving back into C#/C++ related stuff lately and away from scripting for the time being.
My System SpecsSystem Spec
18 Sep 2010   #6
upf

windows 7
 
 

I've tried Active Python but happens the same thing. Actualy I can run *py scripts without problem but the error message pops up too. Anyway, thank you very much.
My System SpecsSystem Spec
18 Sep 2010   #7

Windows 7 32 bit
 
 

If there are still python groups on usenet I would try there. Searching the error message I see several with Python in the text but no real germane info. If I remember correctly there was supposed to be some changes in Vista and Windows 7 how programs are launched programmatically as opposed to XP. Maybe there's a glitch they haven't ironed out yet.

edit: as an experiment, if you are running UAC you could disable it totally and see if the error message goes away.
My System SpecsSystem Spec
18 Sep 2010   #8
upf

windows 7
 
 

OK, Thank you.
My System SpecsSystem Spec
Reply

 *py execution problem





Thread Tools



Similar help and support threads for2: *py execution problem
Thread Forum
Hotkeyz execution of cmd Software
WMP Server Execution Failed Media Center
Solved Program Execution on Windows 7 Startup [Problem] System Security
Server Execution Failed General Discussion
[HELP]WMP 12 Server Execution Failed Music, Pictures & Video
[HELP]WMP 12 Server Execution Failed Music, Pictures & Video
Server Execution Failed General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 03:31 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33