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

Version 6.1 with Python 3.6.1 Anaconda (64-bit) #1654

Closed
rddaz2013 opened this issue Feb 23, 2018 · 12 comments
Closed

Version 6.1 with Python 3.6.1 Anaconda (64-bit) #1654

rddaz2013 opened this issue Feb 23, 2018 · 12 comments
Milestone

Comments

@rddaz2013
Copy link

The normal way..

 pip install coolprop -> gives only 6.0.0 

 pip install -vvv --pre --trusted-host www.coolprop.dreamhosters.com --find-links http://www.coolprop.dreamhosters.com/binaries/Python/ -U --force-reinstall CoolProp
 -> python extension gives (*...so file) an error if imported 
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-c15bcbf8c84c> in <module>()
      1 import numpy as np
      2 import math
----> 3 from CoolProp.CoolProp import PropsSI
      4 from __future__ import print_function
      5 import CoolProp.CoolProp as CP

~/anaconda3/lib/python3.6/site-packages/CoolProp/__init__.py in <module>()
     14     quit()
     15 
---> 16 from .CoolProp import AbstractState
     17 from . import CoolProp
     18 from . import HumidAirProp

ImportError: /home/rened/anaconda3/lib/python3.6/site-packages/CoolProp/CoolProp.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZTVNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEEE

only working install with...
conda install -c bryanwweber coolprop

@ibell
Copy link
Contributor

ibell commented Feb 24, 2018

What version of OS do you have? I use this method on *nix all the time.

@rddaz2013
Copy link
Author

rddaz2013 commented Feb 24, 2018

This error was on Ubuntu 16.04.3 LTS 64-Bit. (running jupyterlab)
other Win7 installation of coolprop over pip works well.

@ibell
Copy link
Contributor

ibell commented Feb 25, 2018 via email

@thorade
Copy link
Contributor

thorade commented Mar 5, 2018

To be absolutely sure you use the correpsonding pip for your python (and not the system pip),
could you please also try
python -m pip ...
from the Anaconda prompt.

Also, compare the output of pip --version and python -m pip --version from the normal terminal and from the Anaconda prompt respectively, and possibly also the output of which pip.

https://docs.python.org/3/installing/#work-with-multiple-versions-of-python-installed-in-parallel

Also, this should be fixed once 6.2 is released:
https://github.com/CoolProp/CoolProp/milestone/9
#1604

@ibell
Copy link
Contributor

ibell commented Mar 6, 2018 via email

@rddaz2013
Copy link
Author

rddaz2013 commented Mar 6, 2018

from Ubuntu 16.04.3 LTS 64-Bit

pip --version
pip 9.0.1 from /home/rened/anaconda3/lib/python3.6/site-packages (python 3.6)

python -m pip --version
pip 9.0.1 from /home/rened/anaconda3/lib/python3.6/site-packages (python 3.6)

@rddaz2013
Copy link
Author

rddaz2013 commented Mar 6, 2018

from WIN10

pip --version
pip 9.0.1 from F:\Anaconda3\lib\site-packages (python 3.6)
python -m pip --version
pip 9.0.1 from F:\Anaconda3\lib\site-packages (python 3.6)

@thorade
Copy link
Contributor

thorade commented Mar 6, 2018

That looks both good 👍
so the error is elsewhere 😞

@thorade thorade added this to the v6.2.0 milestone Mar 6, 2018
@thorade
Copy link
Contributor

thorade commented Mar 6, 2018

I added this ticket to Milestone 6.2, because the new release will include a Py36 package (and a source release as fallback).

@henningjp
Copy link
Contributor

I have the same problem under Python 3.6 on Win10. Standard pip install only gives me 6.0.0. It’s like there’s no build wheel for 6.1.0 on Python 3.6....

If I want 6.1.0, I have to build my own from that git release tag. Grabbing the nightly 6.1.1dev build works fine, though.

@thorade
Copy link
Contributor

thorade commented Mar 6, 2018

@henningjp Your error is different:
There is no py36 package for Coolprop, so py36 tries to install from source.
But there also is no source package for Coolprop 6.1, only for Coolprop 6.0.
So py36 tries to install 6.0 and fails.

The real soultion would be to publish a py36 package, either for Coolprop 6.1 or even better for 6.2.
To be safe for the future (e.g. py37 will be released in summer), a source package should be included!!

Until then, the recommended workaround is to use the nightly builds, and that should just work.
It does work for me, on Windows 10, but the issue described here is that it failed on Ubuntu 16.04.

@ibell
Copy link
Contributor

ibell commented Mar 11, 2018

Python 3.6 binary wheels are now being built on all platforms, and should be pip installable as of version 6.2

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

No branches or pull requests

4 participants