*py execution problem


  1. upf
    Posts : 13
    windows 7
       #1

    *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 Computer


  2. Posts : 5,092
    Windows 7 32 bit
       #2

    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 Computer


  3. Posts : 3,139
    Systems 1 and 2: Windows 7 Enterprise x64, Win 8 Developer
       #3

    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 Computer


  4. upf
    Posts : 13
    windows 7
    Thread Starter
       #4

    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 Computer


  5. Posts : 5,092
    Windows 7 32 bit
       #5

    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 Computer


  6. upf
    Posts : 13
    windows 7
    Thread Starter
       #6

    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 Computer


  7. Posts : 5,092
    Windows 7 32 bit
       #7

    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 Computer


  8. upf
    Posts : 13
    windows 7
    Thread Starter
       #8

    OK, Thank you.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About 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 22:51.
Find Us