Document Information

Last modified:
2008/12/05 14:47 by ecker

Troubleshooting

Create your Application

Windows

Making interpreter available

After your successful Python installation, you need to add the installation folder to the so-called PATH environment variable, which contains a list of directories that are searched for executables.

Suppose you installed Python to its default location C:\Python26, open a Windows command shell (choose menu Start → Run... and type cmd). The following command prepends the installation folder to the value of PATH, separated by a semicolon:

set PATH=C:\Python26;%PATH%

When you now execute python -V, it should print out its version number.

The modification of the PATH variable as described above is only temporary. In order not to repeat the command each time you open a new command shell, modify the PATH variable permanently: in Start → Preferences → System choose Environment variables under the Advanced tab. Edit the system variable Path by prepending C:\Python26;.

File association

In a standard Python installation on Windows, the .py file extension gets associated with the Python interpreter. This allows you to invoke .py files directly. You can check that in the following way at a command prompt:

C:\>assoc .py
.py=Python.File

If this doesn’t work, you can add a file association through Windows Explorer → Extras → Folder Options → File Types.

If for any reason you cannot use a file association for .py files, you can still invoke the Python interpreter directly, passing the original command line as arguments. In this case, make sure to provide a path prefix for the script name, even for scripts in the same directory, like so (this will be fixed later):

python ./generate.py source

Windows Vista

To run qooxdoo’s Python-based tools without problems, it is important to have Python installed as an administrator “for all” users.

Administrators installing Python “for all” users on Windows Vista either need to be logged in as user Administrator, or use the runas command, as in:

runas /user:Administrator "msiexec /i <path>\<file>.msi"

Information

Last modified:
2008/12/05 14:47 by ecker

Account

Not logged in

 
 

Job Offers

To further improve qooxdoo we are seeking javascript developers. Read more...

Rich Ajax Platform (RAP)

RAP uses qooxdoo, Java and the Eclipse development model to build rich web applications. Read more...

qooxdoo Web Toolkit (QWT)

Similar to GWT this framework allows to create impressive qooxdoo applications just using Java. Read more...

Pustefix

Pustefix is a MVC-based web application framework using Java and XML/XSLT. Read more...

 
SourceForge.net Logo

Bad Behavior has blocked 0 potential spam attempts in the last 7 days.