Python 3.7.6 (default, Feb 19 2020, 16:18:37)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib
>>> import CoolProp as CP
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/pi/python-source/Python-3.7.6/udemy/lib/python3.7/site-packages/CoolProp/__init__.py", line 22, in <module>
__fluids__ = CoolProp.get_global_param_string('fluids_list').split(',')
File "CoolProp.pyx", line 277, in CoolProp.CoolProp.get_global_param_string
File "stringsource", line 15, in string.from_py.__pyx_convert_string_from_py_std__in_string
TypeError: expected bytes, str found
>>> --
You received this message because you are subscribed to the Google Groups "coolprop-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coolprop-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/coolprop-users/362c524b-1e3a-4ab5-9b74-7a307b523b96%40googlegroups.com.
Python 3.7.6 (default, Feb 19 2020, 16:18:37)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import CoolProp
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/opt/python-3.7.6/lib/python3.7/site-packages/CoolProp/__init__.py", line 22, in <module>
__fluids__ = CoolProp.get_global_param_string(b'fluids_list').split(',')
TypeError: a bytes-like object is required, not 'str'Please use the development version, this bug is fixed.
On Wed, Feb 19, 2020, 6:16 PM LasseLRP <lass...@gmail.com> wrote:
--Hello,This is what I get:Python 3.7.6 (default, Feb 19 2020, 16:18:37)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib
>>> import CoolProp as CP
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/pi/python-source/Python-3.7.6/udemy/lib/python3.7/site-packages/CoolProp/__init__.py", line 22, in <module>
__fluids__ = CoolProp.get_global_param_string('fluids_list').split(',')
File "CoolProp.pyx", line 277, in CoolProp.CoolProp.get_global_param_string
File "stringsource", line 15, in string.from_py.__pyx_convert_string_from_py_std__in_string
TypeError: expected bytes, str found
>>>
Help appreciated.
You received this message because you are subscribed to the Google Groups "coolprop-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coolpro...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to coolprop-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/coolprop-users/feea097c-8dbd-4d69-b890-6c5056c0ded4%40googlegroups.com.
/usr/include/c++/8/bits/stl_vector.h:1549:4: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<const double*, std::vector<double> >’ changed in GCC 7.1
/usr/include/c++/8/bits/stl_vector.h:1549:4: note: parameter passing for argument of type ‘std::vector<double>::iterator’ {aka ‘__gnu_cxx::__normal_iterator<double*, std::vector<double> >’} changed in GCC 7.1
_M_range_insert(__pos, __first, __last,
^~~~~~~~~~~~~~~
/usr/include/c++/8/bits/stl_vector.h:1549:4: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<const double*, std::vector<double> >’ changed in GCC 7.1
/usr/include/c++/8/bits/stl_vector.h: In member function ‘void CoolProp::JSONFluidLibrary::parse_EOS(rapidjson::Value&, CoolProp::CoolPropFluid&)’:
/usr/include/c++/8/bits/stl_vector.h:1085:4: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<CoolProp::EquationOfState*, std::vector<CoolProp::EquationOfState> >’ changed in GCC 7.1
_M_realloc_insert(end(), __x);To view this discussion on the web visit https://groups.google.com/d/msgid/coolprop-users/feea097c-8dbd-4d69-b890-6c5056c0ded4%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to coolprop-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/coolprop-users/f6c66522-d091-4ab1-b550-c2707f0df2b4%40googlegroups.com.
Python 3.6.9 (default, Nov 7 2019, 10:44:02)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import CoolProp
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/ubuntu/CoolProp/wrappers/Python/CoolProp/__init__.py", line 5, in <module>
from . import constants
File "/home/ubuntu/CoolProp/wrappers/Python/CoolProp/constants.py", line 5, in <module>
from . import _constants
ImportError: cannot import name '_constants'To view this discussion on the web visit https://groups.google.com/d/msgid/coolprop-users/f6c66522-d091-4ab1-b550-c2707f0df2b4%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to coolprop-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/coolprop-users/28505a99-d04f-4140-89a9-1c6a4560d3ed%40googlegroups.com.
ubuntu@ubuntu:~$ python3
Python 3.6.9 (default, Nov 7 2019, 10:44:02)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import CoolProp
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.6/dist-packages/CoolProp-6.3.1.dev0-py3.6-linux-aarch64.egg/CoolProp/__init__.py", line 22, in <module>
__fluids__ = CoolProp.get_global_param_string(b'fluids_list').split(b',')
TypeError: must be str or None, not bytesTo view this discussion on the web visit https://groups.google.com/d/msgid/coolprop-users/28505a99-d04f-4140-89a9-1c6a4560d3ed%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to coolprop-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/coolprop-users/fa4f360e-9bb4-471f-b53e-5b0e70605692%40googlegroups.com.
Try again now with updated cython. I think it should work... But maybe I just broke python 2.7 ?
To view this discussion on the web visit https://groups.google.com/d/msgid/coolprop-users/fa4f360e-9bb4-471f-b53e-5b0e70605692%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to coolprop-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/coolprop-users/6d5fa8d4-e387-4cfd-a06b-bbf82b5f84ae%40googlegroups.com.
ubuntu@ubuntu:~$ python3.8
Python 3.8.0 (default, Feb 22 2020, 19:21:55)
[GCC 7.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import CoolProp
>>>
To view this discussion on the web visit https://groups.google.com/d/msgid/coolprop-users/6d5fa8d4-e387-4cfd-a06b-bbf82b5f84ae%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to coolprop-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/coolprop-users/48fd7601-285e-4ddf-a94e-9bea424f1207n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/coolprop-users/2470139d-df5c-4916-885c-5a48ca397f31n%40googlegroups.com.