Error with ck2yaml

156 views
Skip to first unread message

Cristiano Almeida

unread,
Feb 6, 2024, 8:20:30 PM2/6/24
to Cantera Users' Group
Hello Group! I have trying to use ck2yaml to convert some archives of chemkin, but allways rise the following errors below:

In [4]: ck2yaml --inp=DMM_mech.inp --thermo=DMM_therm.dat --transport=DMM_trans.dat

Cell In[4], line 1

ck2yaml --inp=DMM_mech.inp --thermo=DMM_therm.dat --transport=DMM_trans.dat

^

SyntaxError: cannot assign to expression


In [5]: whereis ck2yaml

Cell In[5], line 1

whereis ck2yaml

^

SyntaxError: invalid syntax


In [6]: ck2cti --inp=DMM_mech.inp --thermo=DMM_therm.dat --transport=DMM_trans.dat

Cell In[6], line 1

ck2cti --inp=DMM_mech.inp --thermo=DMM_therm.dat --transport=DMM_trans.dat

^

SyntaxError: cannot assign to expression


In [10]: import ck2yaml

---------------------------------------------------------------------------

ModuleNotFoundError Traceback (most recent call last)

Cell In[10], line 1

----> 1 import ck2yaml


ModuleNotFoundError: No module named 'ck2yaml'


I´m using the anaconda with cantera 3.0.0 through jupyterlab or anaconda prompt and everything at windows environment.


Thanks for attention!

Best regards,

Cristiano




 

 

Ray Speth

unread,
Feb 9, 2024, 11:06:09 PM2/9/24
to Cantera Users' Group

Hi Cristiano,

ck2yaml is a script that is meant to be executed from a system shell / terminal, not from within the Python interpreter. If you’re using JupyterLab, you can start a terminal from the File menu, under “New” then “Terminal”.

Regards,
Ray

Cristiano Almeida

unread,
Feb 10, 2024, 11:23:51 AM2/10/24
to canter...@googlegroups.com
Thanks by answer!
--
You received this message because you are subscribed to a topic in the Google Groups "Cantera Users' Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cantera-users/cXm3j8JtmqQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cantera-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cantera-users/358534cf-3728-4ae4-ad41-1bd7aa2f82d6n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages