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
MilesAhead

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
Lemur

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
MilesAhead

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
MilesAhead

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 W7 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
Thread Forum
Batch File execution problem
I have created a batch program as listed below. It is supposed to read all MP3 files from given folderMP3_CDs_12GB recursively and write to three folders B0 (first 999 files), B1 (next 999 files) and B2 (balance of about 2,800 files). It should also write three text files with the File serial...
General Discussion
Hotkeyz execution of cmd
When I run my shortcut for cmd prompt in Hotkeyz, I am put at the "C:\Program Files <x86>\Skynergy\HotKeyz" folder. how do i change this so it is automatically set to the default, or something like: "C:\Users\Username"?
Software
Program Execution on Windows 7 Startup [Problem]
Hi, I drop a link inside the Program Execution on Windows Startup Folder but that program can't start on startup. Program is this HWiNFO64 Download Do you have an idea? Thanks!
System Security
Server execution failed
Hi, I frequently get the message SERVER EXECUTION FAILED and I cant play a song on WM that is located in my win Explor folder -- Sometimes this happens occasionally but right now I cant open any folder as that message just pops up. My music comes thru on WMP - I have 6 g ram and I am...
Music, Pictures & Video
Server Execution failed
I solved the date problem but now I have another problem. I was transferring files from my pendrive. After that, I tried to gain access to My Computer but then out of a sudden, i can't open My Computer and The Control Panel as well as Music, Pictures etc on the Start Menu. When I click My...
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 18:51.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App