Error in running .cti file

95 views
Skip to first unread message

Pawan Ojha

unread,
Jun 28, 2022, 12:34:29 PM6/28/22
to Cantera Users' Group
Hi Cantera group,

Cantera is throwing an error whenever I am running a .cti file. However, it runs smoothly with XML or YAML files. The error is attached. 
Any help would be highly appreciated!! 

CanteraError:
***********************************************************************
CanteraError thrown by call_ctml_writer:
Error converting input file "C:\Users\pawanojha261\Anaconda3\envs\ct-env\lib\site-packages\cantera\data/gri30.cti" to CTML.
Python command was: 'C:\Users\pawanojha261\AppData\Local\Programs\Python\Python37\python.exe'
The exit code was: 1
-------------- start of converter log --------------
sys.path: ['', 'C:\\Users\\pawanojha261\\AppData\\Local\\Programs\\Python\\Python37\\python37.zip', 'C:\\Users\\pawanojha261\\AppData\\Local\\Programs\\Python\\Python37\\DLLs', 'C:\\Users\\pawanojha261\\AppData\\Local\\Programs\\Python\\Python37\\lib', 'C:\\Users\\pawanojha261\\AppData\\Local\\Programs\\Python\\Python37', 'C:\\Users\\pawanojha261\\AppData\\Local\\Programs\\Python\\Python37\\lib\\site-packages']

Traceback (most recent call last):
  File "<stdin>", line 5, in <module>
  File "C:\Users\pawanojha261\AppData\Local\Programs\Python\Python37\lib\site-packages\cantera\__init__.py", line 4, in <module>
    from ._cantera import *
  File "__init__.pxd", line 164, in init cantera._cantera
ModuleNotFoundError: No module named 'numpy'
--------------- end of converter log ---------------
***********************************************************************

Thank you

Bryan Weber

unread,
Jun 28, 2022, 9:58:06 PM6/28/22
to Cantera Users' Group
Hi,

The error is listed at the bottom of the log, you need to install NumPy in the same environment as Cantera. NumPy is required to use Cantera in Python. However, the CTI format (and XML) is deprecated and will be removed after Cantera 2.6, so I would suggest you stick with YAML.

Best,
Bryan
Reply all
Reply to author
Forward
0 new messages