Cantera has no attribute Solution

107 views
Skip to first unread message

Francis

unread,
Aug 19, 2022, 5:14:15 AM8/19/22
to Cantera Users' Group
Good day everyone,

I have successfully built cantera  from source using scons on windows subsystem linux  but when I am getting this error 'AttributeError: module 'cantera' has no attribute 'Solution' when I tested it. Please, can anyone kindly advise. 

Thanks

Ray Speth

unread,
Aug 19, 2022, 9:29:56 AM8/19/22
to Cantera Users' Group

Hi Francis,

It sounds like you’ve ended up with the “minimal” Python module which only includes the mechanism conversion scripts, due to a missing dependency when building Cantera. I would suggest running the build command as scons build python_package=full. This way, you will get an error telling you what was missing and you can work on resolving that.

Regards,
Ray

Francis

unread,
Aug 19, 2022, 10:19:19 AM8/19/22
to Cantera Users' Group
Thanks Ray, I will check it.

Francis

unread,
Aug 24, 2022, 2:16:00 AM8/24/22
to Cantera Users' Group
Hi Ray, 

I followed your advice and recompiled cantera, it built and installed successfully without any error. But the problem occurred again when I tried to test cantera. See the attached files. Please, any advise for me.

Thanks 

On Friday, August 19, 2022 at 9:29:56 PM UTC+8 Ray Speth wrote:
572549F6-1332-4F7D-8056-060B58C96B17.png
3709CB4F-FEE1-43B0-AF8A-1B454C2F8F0C.png
DE0A1F44-4A02-4946-A46F-34F861CC93D1.png
A4A685CE-BFA1-4200-AA32-335B1352AA3F.png
80C12D08-89E9-43AF-AAE4-DF1E5923C6E4.png
Reply all
Reply to author
Forward
0 new messages