r/pythonhelp • u/Background_Ad9700 • Aug 25 '26
Problem with Coolprop
Hi! i'm beginner, and I have a problem with this code, I guess that I installed the library correctly, but i'm not sure.
Error using [stringsource>string.from_py.__pyx_convert_string_from_py_std__in_string](matlab:matlab.lang.internal.introspective.errorDocCallback('stringsource>string.frompy.pyx_convert_string_from_py_std_in_string', 'stringsource', 15)) ([line 15](matlab: opentoline('stringsource',15,0)))
Python Error: TypeError: expected bytes, NoneType found
Error in [CoolProp/CoolProp.PropsSI](matlab:matlab.lang.internal.introspective.errorDocCallback('CoolProp/CoolProp.PropsSI', 'CoolProp\CoolProp.pyx', 462)) ([line 462](matlab: opentoline('CoolProp\CoolProp.pyx',462,0)))
Error in [CoolProp/CoolProp.PropsSI](matlab:matlab.lang.internal.introspective.errorDocCallback('CoolProp/CoolProp.PropsSI', 'CoolProp\CoolProp.pyx', 384)) ([line 384](matlab: opentoline('CoolProp\CoolProp.pyx',384,0)))
Altough I don't have more than 106 lines
View all comments
1
u/PinAdorable3380 Oct 25 '26
Could you share the full traceback and a small example of the code that triggers the error? Also, checking the installed CoolProp version and whether it matches your Python environment would be a useful first step when troubleshooting an import or type-related issue.