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
Server execution failed
I get this message sometimes when I click on a desktop folder, it comes up with the path c:\Users\Mike\Desktop\System Utilities (which is the folder I am trying to open when fault showed). It can happen when I try to open any desktop folder. The odd thing is (to me!) is that I had this fault...
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
I got his error on a 3 hour old Win 7 HP X64 install on a SSD. Any thing I click in the right pane of the start menu is non responsive and about 15 seconds later this error pops up. I have ran the Windows update gamut and new drivers form the ASUS (motherboard) site. Ne'er mind, fixed...
Performance & Maintenance
Server Execution Failed
Hey, I've tried to open an MP3 file and it usually works, however one day I tried it and it suddenly came up with an error message telling me that 'Server execution failed'. I had the day before uninstalled the free AV trial that came with my computer to replace it with AVG9 - there was also a...
Sound & Audio


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 07:24.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App