Starting with ODTK 7.0, ODTK generates all reports using Python. If you do not have Python installed or configured correctly, everything other than reports will still work.
There are different errors you may get when your Python environment isn’t set up correctly in ODTK. To debug this issue, take the following steps:
- Open a command prompt (run cmd.exe) and type "python", which will return something like:
Python 3.9.13 | packaged by conda-forge | (main, May 27 2022, 16:50:36) [MSC v.1929 64 bit (AMD64)] on win32
This will give you both the version and whether you have 32- or 64-bit python installed; you need 64-bit to go with 64-bit ODTK.
- Make sure Python is in your path. Open up your Environment Variables and make sure that your path contains the main Python folder, the Scripts folder, and the Library\bin folder.
If you are getting an error related to h5py, make sure that the correct version of h5py is installed. Open up a command prompt and type "python". After that, type import h5py
which will return your version of h5py. If the version is earlier than 2.8, you'll need to upgrade. Either use pip or download it from https://pypi.org/project/h5py/
- The version isn't checked correctly, which is only an issue if you are using h5py 5.10 or higher. Change line 15 from
assert (h5py.__version__ >= '2.8')
assert (version.parse(h5py.__version__) >= version.parse('2.8'))
The check will otherwise fail since "1" is less than "8".
Add the following to the top of the file:
from packaging import version