Try exporting PYTHONPATH explicitly.