ChartDirector Ver 4.1 (Python Edition)

Installation


Python Version Compatibility

ChartDirector for Python requires at least Python 1.5, and has been tested up to Python 2.5 (the latest Python release as of the date of this document).

Note: ChartDirector for Python on Mac OS X only supports Python 2.1 or above.

Installing ChartDirector for Python

ChartDirector for Python is released as a zip file on Windows, and as a tar.gz file on Linux, FreeBSD, Mac OS X and Solaris. To install ChartDirector for Python:

If you could not access any of the directories in the default Python module search path (e.g. you are using a virtual web host, and the system directories are inaccessible to you), there are a number of alternative methods to install the ChartDirector for Python module. For example:

Running ChartDirector Sample Programs

ChartDirector for Python comes with numerous sample Python scripts under the "ChartDirector/pythondemo" and "ChartDirector/pythondemo_cgi" directories. The former is for standalone scripts, while the latter is for CGI scripts. They are good examples and tutorials on how to use ChartDirector.

You may run these sample scripts to verify that ChartDirector is correctly installed.

To run the standalone ChartDirector sample scripts:

To run the ChartDirector sample CGI scripts:

Using ChartDirector for Python in Your Own Scripts

Any Python program that uses ChartDirector should include the following statement:

from * import pychartdir

or

import pychartdir

Depending on how you have installed ChartDirector, you may need to copy the ChartDirector for Python module files (*everything* in "ChartDirector/lib") to your script directory.

Installing the ChartDirector License

If you have purchased a license to use ChartDirector, you should have a license code delivered to your via email and postal mail.

If your license key is for upgrading from a previous version of ChartDirector, you need to append the upgrade license key to the previous version license key, and use the combined license key.

There are two alternative methods to install the license key.