Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

If your numpy package is on the PYTHONPATH it should work, but make sure you restart dymola from the same shell in which you export the PYTHONPATH.

To test, you can do the following:

cd Buildings
mkdir myPython
mv Resources/Python-Sources/testFunctions.py myPython/  
export PYTHONPATH=${PYTHONPATH}:`pwd`/myPython
dymola package.mo &

Then run the python examples in the Buildings library which will work as the module is searched on the PYTHONPATH. If you don't specify the export PYTHONPATH line, it won't work as the module can't be found.