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 (line 15)
Python Error: TypeError: expected bytes, NoneType found
Error in CoolProp/CoolProp.PropsSI (line 462)
Error in CoolProp/CoolProp.PropsSI (line 384)
Altough I don't have more than 106 lines
1
u/mc_pm Aug 25 '26
It sounds like whatever function you are calling is unhappy that you are sending it None instead of the bytes.
1
u/PinAdorable3380 22d ago
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.
•
u/AutoModerator Aug 25 '26
To give us the best chance to help you, please include any relevant code.
Note. Please do not submit images of your code. Instead, for shorter code you can use Reddit markdown (4 spaces or backticks, see this Formatting Guide). If you have formatting issues or want to post longer sections of code, please use Privatebin, GitHub or Compiler Explorer.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.