< Back

PyTecplot TecplotLibraryNotFoundError Using Python 3.8+


Problem:

In batch mode, when I run my PyTecplot script using Python 3.8+ on Windows, I receive an error stating that:

tecplot.exception.TecplotLibraryNotFoundError: The Tecplot batch library or one of its dependencies could not be found...

What is causing this error?

Solution:

It is likely that you are using an out-of-date version of PyTecplot.

Using PyTecplot in batch mode with Python 3.8 on Windows 10 requires version 1.1 or later. Python 3.8 changed the way dynamic libraries are loaded as described here in Python’s documentation.

To fix this problem, update PyTecplot to the latest version. Typically, this involves running the following command:

pip install --upgrade pytecplot

See the PyTecplot documentation for more detailed updating instructions for WindowsLinux, or MacOS. To get the current version of PyTecplot, run the following in the Python interpreter:

import tecplot
print(tecplot.__version__)