Under Windows, when you install a Python package from an installer (an EXE that you double click), it can see that you have multiple Pythons and it guesses which Python under which it should install itself. It gives you the option to change this guess during the installation, but it's easy to overlook. So, for example, you may installed matplotlib and scipy to a different Python than the one you're trying to use with Vespa.
Vespa uses the first Python it finds in your path. If you open a command prompt and type ‘set path', it will show you the current path, and that will tell you which Python comes first. Another way to find out which Python is first in your path is with this command:
python -c "import sys; print sys.executable"
That should print something like "c:\python26\python.exe".
You can test whether or not Python can import a package with a command like this:
python -c "import matplotlib"
If matplotlib is installed, that will return silently. If it's not installed, you'll get a loud & clear import error like this:
python -c "import this_does_not_exist"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named this_does_not_exist
Those commands should give you the tools you need to figure out what is installed where. However, if the Vespa installer says that matplotlib isn't installed, it definitely is not for that version of Python. The Vespa installer just tries the same test suggested above: import something and see whether or not it fails.
Try uninstalling wxpython 2.9 and installing wxpython 2.8.12.1 (or so) to see if that fixes these problems.
More information (useless or otherwise) - We would prefer to require wxPython 2.8.11.0 because that's the first version that includes a version of floatspin.py that contains the patches we submitted. However, as of December 2012, the most current version of EPD (7.3) is still on wxPython 2.8.10.1 which is not sufficiently recent. Until EPD provides a more recent wxPython, we can't require 2.8.11.0.
Here is a link to some more general comments on the versions of dependency modules required for Vespa.
Vespa Dependencies version information
Vespa is installed in site-packages, or dist-packages under some Linux distros. There's a Vespa utility that can help you find them if you don't mind running a little Python. Enter ‘python' at a bash prompt and then enter the following, hitting enter after each of the two lines –
import vespa.common.util.misc as util_misc
util_misc.get_vespa_install_directory()
That will print out something like this –
>/usr/local/lib/python2.6/dist-packages/vespa
That's the main Vespa path. The individual apps are under that directory under the names simulation, analysis, priorset and rfpulse. To invoke each app, start [app_name]/src/main.py. For example, to start Simulation –
>python /usr/local/lib/python2.6/dist-packages/vespa/simulation/src/main.py
If you're interested in learning more about this, there's a Vespa install utility called create_desktop_shortcuts.py that creates the Desktop shortcuts for Linux as well as OS X and Windows. You can see that online here: [http://scion.duhs.duke.edu/vespa/project/browser/trunk/create_desktop_shortcuts.py]