Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python CoolProp package doesn't work on Python 3.9.0 (32 bit and 64 bit) #1981

Closed
EduBic opened this issue Nov 19, 2020 · 16 comments · Fixed by #2097
Closed

Python CoolProp package doesn't work on Python 3.9.0 (32 bit and 64 bit) #1981

EduBic opened this issue Nov 19, 2020 · 16 comments · Fixed by #2097
Milestone

Comments

@EduBic
Copy link

EduBic commented Nov 19, 2020

Description

As describe here CoolProp python package does not work on python 3.9.0.

I report here the error message displayed in my case.

Steps to Reproduce

  1. Install Python version 3.9.0
  2. Run pip install CoolProp

Expected behavior:

Collecting CoolProp
  Downloading CoolProp-6.4.1-cp38-cp38-win32.whl (1.8 MB)
     |████████████████████████████████| 1.8 MB ...
Installing collected packages: CoolProp
Successfully installed CoolProp-6.4.1

Actual behavior:

Collecting CoolProp
  Using cached CoolProp-6.4.1.tar.gz (12.9 MB)
Building wheels for collected packages: CoolProp
  Building wheel for CoolProp (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'c:\users\hp\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\HP\\AppData\\Local\\Temp\\pip-install-3p3pxth7\\coolprop\\setup.py'"'"'; __file__='"'"'C:\\Users\\HP\\AppData\\Local\\Temp\\pip-install-3p3pxth7\\coolprop\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\HP\AppData\Local\Temp\pip-wheel-l_ammf44'
       cwd: C:\Users\HP\AppData\Local\Temp\pip-install-3p3pxth7\coolprop\
  Complete output (93 lines):
  Cython will not be used; cy_ext is cpp
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.9
  creating build\lib.win-amd64-3.9\CoolProp
  copying CoolProp\BibtexParser.py -> build\lib.win-amd64-3.9\CoolProp
  copying CoolProp\constants.py -> build\lib.win-amd64-3.9\CoolProp
  copying CoolProp\HumidAirProp.py -> build\lib.win-amd64-3.9\CoolProp
  copying CoolProp\State.py -> build\lib.win-amd64-3.9\CoolProp
  copying CoolProp\__init__.py -> build\lib.win-amd64-3.9\CoolProp
  creating build\lib.win-amd64-3.9\CoolProp\GUI
  copying CoolProp\GUI\CoolPropGUI.py -> build\lib.win-amd64-3.9\CoolProp\GUI
  copying CoolProp\GUI\PsychScript.py -> build\lib.win-amd64-3.9\CoolProp\GUI
  copying CoolProp\GUI\__init__.py -> build\lib.win-amd64-3.9\CoolProp\GUI
  creating build\lib.win-amd64-3.9\CoolProp\Plots
  copying CoolProp\Plots\Common.py -> build\lib.win-amd64-3.9\CoolProp\Plots
  copying CoolProp\Plots\ConsistencyPlots.py -> build\lib.win-amd64-3.9\CoolProp\Plots
  copying CoolProp\Plots\ConsistencyPlots_pcsaft.py -> build\lib.win-amd64-3.9\CoolProp\Plots
  copying CoolProp\Plots\Plots.py -> build\lib.win-amd64-3.9\CoolProp\Plots
  copying CoolProp\Plots\psy.py -> build\lib.win-amd64-3.9\CoolProp\Plots
  copying CoolProp\Plots\PsychChart.py -> build\lib.win-amd64-3.9\CoolProp\Plots
  copying CoolProp\Plots\PsychScript.py -> build\lib.win-amd64-3.9\CoolProp\Plots
  copying CoolProp\Plots\SimpleCycles.py -> build\lib.win-amd64-3.9\CoolProp\Plots
  copying CoolProp\Plots\SimpleCyclesCompression.py -> build\lib.win-amd64-3.9\CoolProp\Plots
  copying CoolProp\Plots\SimpleCyclesExpansion.py -> build\lib.win-amd64-3.9\CoolProp\Plots
  copying CoolProp\Plots\Tests.py -> build\lib.win-amd64-3.9\CoolProp\Plots
  copying CoolProp\Plots\__init__.py -> build\lib.win-amd64-3.9\CoolProp\Plots
  creating build\lib.win-amd64-3.9\CoolProp\tests
  copying CoolProp\tests\runner.py -> build\lib.win-amd64-3.9\CoolProp\tests
  copying CoolProp\tests\test_CoolPropState.py -> build\lib.win-amd64-3.9\CoolProp\tests
  copying CoolProp\tests\test_plots.py -> build\lib.win-amd64-3.9\CoolProp\tests
  copying CoolProp\tests\test_Props.py -> build\lib.win-amd64-3.9\CoolProp\tests
  copying CoolProp\tests\__init__.py -> build\lib.win-amd64-3.9\CoolProp\tests
  copying CoolProp\AbstractState.pxd -> build\lib.win-amd64-3.9\CoolProp
  copying CoolProp\cAbstractState.pxd -> build\lib.win-amd64-3.9\CoolProp
  copying CoolProp\constants_header.pxd -> build\lib.win-amd64-3.9\CoolProp
  copying CoolProp\CoolProp.pxd -> build\lib.win-amd64-3.9\CoolProp
  copying CoolProp\State.pxd -> build\lib.win-amd64-3.9\CoolProp
  copying CoolProp\typedefs.pxd -> build\lib.win-amd64-3.9\CoolProp
  copying CoolProp\Plots\psyrc -> build\lib.win-amd64-3.9\CoolProp\Plots
  running build_ext
  creating Users
  creating Users\HP
  creating Users\HP\AppData
  creating Users\HP\AppData\Local
  creating Users\HP\AppData\Local\Temp
  creating Users\HP\AppData\Local\Temp\pip-install-3p3pxth7
  creating Users\HP\AppData\Local\Temp\pip-install-3p3pxth7\coolprop
  C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\users\hp\appdata\local\programs\python\python39\include -Ic:\users\hp\appdata\local\programs\python\python39\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /EHsc /TpC:\Users\HP\AppData\Local\Temp\pip-install-3p3pxth7\coolprop\tmpln8z3dxi.cpp /FoUsers\HP\AppData\Local\Temp\pip-install-3p3pxth7\coolprop\tmpln8z3dxi.obj
  tmpln8z3dxi.cpp
  c1xx: fatal error C1083: is not possible to open the origin file: 'C:\Users\HP\AppData\Local\Temp\pip-install-3p3pxth7\coolprop\tmpln8z3dxi.cpp': Permission denied
  C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\users\hp\appdata\local\programs\python\python39\include -Ic:\users\hp\appdata\local\programs\python\python39\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /EHsc /TpC:\Users\HP\AppData\Local\Temp\pip-install-3p3pxth7\coolprop\tmpfo4zm7f5.cpp /FoUsers\HP\AppData\Local\Temp\pip-install-3p3pxth7\coolprop\tmpfo4zm7f5.obj
  tmpfo4zm7f5.cpp
  c1xx: fatal error C1083: is not possible to open the origin file: 'C:\Users\HP\AppData\Local\Temp\pip-install-3p3pxth7\coolprop\tmpfo4zm7f5.cpp': Permission denied
  C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\users\hp\appdata\local\programs\python\python39\include -Ic:\users\hp\appdata\local\programs\python\python39\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /EHsc /TpC:\Users\HP\AppData\Local\Temp\pip-install-3p3pxth7\coolprop\tmptec7vttm.cpp /FoUsers\HP\AppData\Local\Temp\pip-install-3p3pxth7\coolprop\tmptec7vttm.obj
  tmptec7vttm.cpp
  c1xx: fatal error C1083: is not possible to open the origin file: 'C:\Users\HP\AppData\Local\Temp\pip-install-3p3pxth7\coolprop\tmptec7vttm.cpp': Permission denied
  Adding these shared_ptr compilation macros: []
  building 'CoolProp.CoolProp' extension
  creating build\temp.win-amd64-3.9
  creating build\temp.win-amd64-3.9\Release
  creating build\temp.win-amd64-3.9\Release\CoolProp
  creating build\temp.win-amd64-3.9\Release\src
  creating build\temp.win-amd64-3.9\Release\src\Backends
  creating build\temp.win-amd64-3.9\Release\src\Backends\Cubics
  creating build\temp.win-amd64-3.9\Release\src\Backends\Helmholtz
  creating build\temp.win-amd64-3.9\Release\src\Backends\Helmholtz\Fluids
  creating build\temp.win-amd64-3.9\Release\src\Backends\IF97
  creating build\temp.win-amd64-3.9\Release\src\Backends\Incompressible
  creating build\temp.win-amd64-3.9\Release\src\Backends\PCSAFT
  creating build\temp.win-amd64-3.9\Release\src\Backends\REFPROP
  creating build\temp.win-amd64-3.9\Release\src\Backends\Tabular
  creating build\temp.win-amd64-3.9\Release\src\Tests
  C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -I. -I.\include -I.\src -I.\externals\Eigen -I.\externals\fmtlib -I.\externals\msgpack-c\include -Ic:\users\hp\appdata\local\programs\python\python39\include -Ic:\users\hp\appdata\local\programs\python\python39\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /EHsc /TpCoolProp\CoolProp.cpp /Fobuild\temp.win-amd64-3.9\Release\CoolProp\CoolProp.obj
  CoolProp.cpp
  CoolProp\CoolProp.cpp(64655): warning C4996: 'PyUnicode_AsUnicode': deprecated in 3.3
  CoolProp\CoolProp.cpp(65595): error C2039: 'tp_print': is not a member of '_typeobject'
  c:\users\hp\appdata\local\programs\python\python39\include\cpython/object.h(193): note: check the declaration of '_typeobject'
  CoolProp\CoolProp.cpp(65603): error C2039: 'tp_print': is not a member of '_typeobject'
  c:\users\hp\appdata\local\programs\python\python39\include\cpython/object.h(193): note: check the declaration of '_typeobject'
  CoolProp\CoolProp.cpp(65611): error C2039: 'tp_print': is not a member of '_typeobject'
  c:\users\hp\appdata\local\programs\python\python39\include\cpython/object.h(193): note: check the declaration of '_typeobject'
  CoolProp\CoolProp.cpp(65619): error C2039: 'tp_print': is not a member of '_typeobject'
  c:\users\hp\appdata\local\programs\python\python39\include\cpython/object.h(193): note: check the declaration of '_typeobject'
  CoolProp\CoolProp.cpp(65789): error C2039: 'tp_print': is not a member of '_typeobject'
  c:\users\hp\appdata\local\programs\python\python39\include\cpython/object.h(193): note: check the declaration of '_typeobject'
  CoolProp\CoolProp.cpp(65825): error C2039: 'tp_print': is not a member of '_typeobject'
  c:\users\hp\appdata\local\programs\python\python39\include\cpython/object.h(193): note: check the declaration of '_typeobject'
  CoolProp\CoolProp.cpp(67577): warning C4996: '_PyUnicode_get_wstr_length': deprecated in 3.3
  CoolProp\CoolProp.cpp(67593): warning C4996: '_PyUnicode_get_wstr_length': deprecated in 3.3
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.28.29333\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
  ----------------------------------------
  ERROR: Failed building wheel for CoolProp
  Running setup.py clean for CoolProp
Failed to build CoolProp
Installing collected packages: CoolProp
    Running setup.py install for CoolProp ... error
    ERROR: Command errored out with exit status 1:
     command: 'c:\users\hp\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\HP\\AppData\\Local\\Temp\\pip-install-3p3pxth7\\coolprop\\setup.py'"'"'; __file__='"'"'C:\\Users\\HP\\AppData\\Local\\Temp\\pip-install-3p3pxth7\\coolprop\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\HP\AppData\Local\Temp\pip-record-m4wd7jx4\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\hp\appdata\local\programs\python\python39\Include\CoolProp'
         cwd: C:\Users\HP\AppData\Local\Temp\pip-install-3p3pxth7\coolprop\
    Complete output (86 lines):
    Cython will not be used; cy_ext is cpp
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.9
    creating build\lib.win-amd64-3.9\CoolProp
    copying CoolProp\BibtexParser.py -> build\lib.win-amd64-3.9\CoolProp
    copying CoolProp\constants.py -> build\lib.win-amd64-3.9\CoolProp
    copying CoolProp\HumidAirProp.py -> build\lib.win-amd64-3.9\CoolProp
    copying CoolProp\State.py -> build\lib.win-amd64-3.9\CoolProp
    copying CoolProp\__init__.py -> build\lib.win-amd64-3.9\CoolProp
    creating build\lib.win-amd64-3.9\CoolProp\GUI
    copying CoolProp\GUI\CoolPropGUI.py -> build\lib.win-amd64-3.9\CoolProp\GUI
    copying CoolProp\GUI\PsychScript.py -> build\lib.win-amd64-3.9\CoolProp\GUI
    copying CoolProp\GUI\__init__.py -> build\lib.win-amd64-3.9\CoolProp\GUI
    creating build\lib.win-amd64-3.9\CoolProp\Plots
    copying CoolProp\Plots\Common.py -> build\lib.win-amd64-3.9\CoolProp\Plots
    copying CoolProp\Plots\ConsistencyPlots.py -> build\lib.win-amd64-3.9\CoolProp\Plots
    copying CoolProp\Plots\ConsistencyPlots_pcsaft.py -> build\lib.win-amd64-3.9\CoolProp\Plots
    copying CoolProp\Plots\Plots.py -> build\lib.win-amd64-3.9\CoolProp\Plots
    copying CoolProp\Plots\psy.py -> build\lib.win-amd64-3.9\CoolProp\Plots
    copying CoolProp\Plots\PsychChart.py -> build\lib.win-amd64-3.9\CoolProp\Plots
    copying CoolProp\Plots\PsychScript.py -> build\lib.win-amd64-3.9\CoolProp\Plots
    copying CoolProp\Plots\SimpleCycles.py -> build\lib.win-amd64-3.9\CoolProp\Plots
    copying CoolProp\Plots\SimpleCyclesCompression.py -> build\lib.win-amd64-3.9\CoolProp\Plots
    copying CoolProp\Plots\SimpleCyclesExpansion.py -> build\lib.win-amd64-3.9\CoolProp\Plots
    copying CoolProp\Plots\Tests.py -> build\lib.win-amd64-3.9\CoolProp\Plots
    copying CoolProp\Plots\__init__.py -> build\lib.win-amd64-3.9\CoolProp\Plots
    creating build\lib.win-amd64-3.9\CoolProp\tests
    copying CoolProp\tests\runner.py -> build\lib.win-amd64-3.9\CoolProp\tests
    copying CoolProp\tests\test_CoolPropState.py -> build\lib.win-amd64-3.9\CoolProp\tests
    copying CoolProp\tests\test_plots.py -> build\lib.win-amd64-3.9\CoolProp\tests
    copying CoolProp\tests\test_Props.py -> build\lib.win-amd64-3.9\CoolProp\tests
    copying CoolProp\tests\__init__.py -> build\lib.win-amd64-3.9\CoolProp\tests
    copying CoolProp\AbstractState.pxd -> build\lib.win-amd64-3.9\CoolProp
    copying CoolProp\cAbstractState.pxd -> build\lib.win-amd64-3.9\CoolProp
    copying CoolProp\constants_header.pxd -> build\lib.win-amd64-3.9\CoolProp
    copying CoolProp\CoolProp.pxd -> build\lib.win-amd64-3.9\CoolProp
    copying CoolProp\State.pxd -> build\lib.win-amd64-3.9\CoolProp
    copying CoolProp\typedefs.pxd -> build\lib.win-amd64-3.9\CoolProp
    copying CoolProp\Plots\psyrc -> build\lib.win-amd64-3.9\CoolProp\Plots
    running build_ext
    C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\users\hp\appdata\local\programs\python\python39\include -Ic:\users\hp\appdata\local\programs\python\python39\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /EHsc /TpC:\Users\HP\AppData\Local\Temp\pip-install-3p3pxth7\coolprop\tmp65wyy5ri.cpp /FoUsers\HP\AppData\Local\Temp\pip-install-3p3pxth7\coolprop\tmp65wyy5ri.obj
    tmp65wyy5ri.cpp
    c1xx: fatal error C1083: is not possible to open the origin file: 'C:\Users\HP\AppData\Local\Temp\pip-install-3p3pxth7\coolprop\tmp65wyy5ri.cpp': Permission denied
    C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\users\hp\appdata\local\programs\python\python39\include -Ic:\users\hp\appdata\local\programs\python\python39\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /EHsc /TpC:\Users\HP\AppData\Local\Temp\pip-install-3p3pxth7\coolprop\tmpolcxwsgs.cpp /FoUsers\HP\AppData\Local\Temp\pip-install-3p3pxth7\coolprop\tmpolcxwsgs.obj
    tmpolcxwsgs.cpp
    c1xx: fatal error C1083: is not possible to open the origin file: 'C:\Users\HP\AppData\Local\Temp\pip-install-3p3pxth7\coolprop\tmpolcxwsgs.cpp': Permission denied
    C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\users\hp\appdata\local\programs\python\python39\include -Ic:\users\hp\appdata\local\programs\python\python39\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /EHsc /TpC:\Users\HP\AppData\Local\Temp\pip-install-3p3pxth7\coolprop\tmpw8adqq6x.cpp /FoUsers\HP\AppData\Local\Temp\pip-install-3p3pxth7\coolprop\tmpw8adqq6x.obj
    tmpw8adqq6x.cpp
    c1xx: fatal error C1083: is not possible to open the origin file: 'C:\Users\HP\AppData\Local\Temp\pip-install-3p3pxth7\coolprop\tmpw8adqq6x.cpp': Permission denied
    Adding these shared_ptr compilation macros: []
    building 'CoolProp.CoolProp' extension
    creating build\temp.win-amd64-3.9
    creating build\temp.win-amd64-3.9\Release
    creating build\temp.win-amd64-3.9\Release\CoolProp
    creating build\temp.win-amd64-3.9\Release\src
    creating build\temp.win-amd64-3.9\Release\src\Backends
    creating build\temp.win-amd64-3.9\Release\src\Backends\Cubics
    creating build\temp.win-amd64-3.9\Release\src\Backends\Helmholtz
    creating build\temp.win-amd64-3.9\Release\src\Backends\Helmholtz\Fluids
    creating build\temp.win-amd64-3.9\Release\src\Backends\IF97
    creating build\temp.win-amd64-3.9\Release\src\Backends\Incompressible
    creating build\temp.win-amd64-3.9\Release\src\Backends\PCSAFT
    creating build\temp.win-amd64-3.9\Release\src\Backends\REFPROP
    creating build\temp.win-amd64-3.9\Release\src\Backends\Tabular
    creating build\temp.win-amd64-3.9\Release\src\Tests
    C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -I. -I.\include -I.\src -I.\externals\Eigen -I.\externals\fmtlib -I.\externals\msgpack-c\include -Ic:\users\hp\appdata\local\programs\python\python39\include -Ic:\users\hp\appdata\local\programs\python\python39\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /EHsc /TpCoolProp\CoolProp.cpp /Fobuild\temp.win-amd64-3.9\Release\CoolProp\CoolProp.obj
    CoolProp.cpp
    CoolProp\CoolProp.cpp(64655): warning C4996: 'PyUnicode_AsUnicode': deprecated in 3.3
    CoolProp\CoolProp.cpp(65595): error C2039: 'tp_print': is not a member of '_typeobject'
    c:\users\hp\appdata\local\programs\python\python39\include\cpython/object.h(193): note: check the declaration of '_typeobject'
    CoolProp\CoolProp.cpp(65603): error C2039: 'tp_print': is not a member of '_typeobject'
    c:\users\hp\appdata\local\programs\python\python39\include\cpython/object.h(193): note: check the declaration of '_typeobject'
    CoolProp\CoolProp.cpp(65611): error C2039: 'tp_print': is not a member of '_typeobject'
    c:\users\hp\appdata\local\programs\python\python39\include\cpython/object.h(193): note: check the declaration of '_typeobject'
    CoolProp\CoolProp.cpp(65619): error C2039: 'tp_print': is not a member of '_typeobject'
    c:\users\hp\appdata\local\programs\python\python39\include\cpython/object.h(193): note: check the declaration of '_typeobject'
    CoolProp\CoolProp.cpp(65789): error C2039: 'tp_print': is not a member of '_typeobject'
    c:\users\hp\appdata\local\programs\python\python39\include\cpython/object.h(193): note: check the declaration of '_typeobject'
    CoolProp\CoolProp.cpp(65825): error C2039: 'tp_print': is not a member of '_typeobject'
    c:\users\hp\appdata\local\programs\python\python39\include\cpython/object.h(193): note: check the declaration of  '_typeobject'
    CoolProp\CoolProp.cpp(67577): warning C4996: '_PyUnicode_get_wstr_length': deprecated in 3.3
    CoolProp\CoolProp.cpp(67593): warning C4996: '_PyUnicode_get_wstr_length': deprecated in 3.3
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.28.29333\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\hp\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\HP\\AppData\\Local\\Temp\\pip-install-3p3pxth7\\coolprop\\setup.py'"'"'; __file__='"'"'C:\\Users\\HP\\AppData\\Local\\Temp\\pip-install-3p3pxth7\\coolprop\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\HP\AppData\Local\Temp\pip-record-m4wd7jx4\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\hp\appdata\local\programs\python\python39\Include\CoolProp' Check the logs for full command output.

Versions

CoolProp Version: 6.4.1
Operating System and Version: Windows 10

@ibell
Copy link
Contributor

ibell commented Nov 19, 2020 via email

@spinnau
Copy link
Contributor

spinnau commented Dec 13, 2020

Building CoolProp 6.4.1 works fine for me with Python-3.9.0 on Arch Linux with cython-0.29.21

@srgkoshelev
Copy link

I have gotten similar looking error on MacOSX 10.15 Catalina. Changing python to 3.8 in homebrew fixed the issue.

@chacowingnut
Copy link

chacowingnut commented Jan 7, 2021

Simply put we haven't added Python 3.9 support yet.

Any notion of when Python 3.9 support will happen?

@ibell
Copy link
Contributor

ibell commented Jan 8, 2021

We have a bountysource for things like this: https://www.bountysource.com/teams/coolprop . CoolProp is developed by a community of volunteers, please consider digging in and helping out.

@srgkoshelev
Copy link

srgkoshelev commented Jan 8, 2021 via email

@pauliacomi
Copy link

I believe bumping up pybind to 2.6.2 might do the trick.
It seems to build, although I'm not sure I configured it properly in GH Actions, or if the resulting package behaves as expected:

https://github.com/pauliacomi/CoolProp/runs/1954861085?check_suite_focus=true

@ibell
Copy link
Contributor

ibell commented Feb 27, 2021

@pauliacomi The main wrapper for Python is Cython based, rather than pybind11, but you are right that there is also a pybind11 interface in the wrappers folder. Building from source is fine, so all that is required is in theory to make a new release, and that will add wheels for python 3.9.

@pauliacomi
Copy link

@ibell If I understand correctly, when pulling from git and installing, the wrapper is set to use Cython, and when installing from pypi and building from source it uses pybind11. Alternatively, if wheels are available they will be used, but they are built on a private server with buildbot on a release. Is this the gist of it? (I am new to combined cpp/python packaging)

@MeMaZAE
Copy link

MeMaZAE commented Oct 7, 2021

Had the same problem. My solution was switching back to Python 3.7. Maybe not the best solution, but worked for me.

@thorade
Copy link
Contributor

thorade commented Jan 11, 2022

As reported before, wheel files are only available up to cp38
https://pypi.org/project/CoolProp/#files
Python 3.9 also requested here:
https://groups.google.com/g/coolprop-users/c/Cr_myBIpi3k

@ibell I am happy to click the "new release" button, and just release the current status as 6.4.2 if that is fine for everyone. I read your above comment as this will automatically add cp39 wheels, correct?

@HaroldvandenOever
Copy link

@thorade I am very new to all the 'wheels' and 'wrappers', but I will be very happy with a new release. So for me it is not just fine, it would be great!!

@ibell
Copy link
Contributor

ibell commented Jan 11, 2022 via email

@HaroldvandenOever
Copy link

HaroldvandenOever commented Jan 11, 2022 via email

@ibell
Copy link
Contributor

ibell commented Jan 12, 2022 via email

@zjn2010sb
Copy link

many thanks, the issue is fixed!

@jowr jowr added this to the v6.4.2 milestone Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.