ibell/coolprop

CoolProp 5.0.5 from PyPI: Python import error

Closed this issue · 2 comments

Hi,
CoolProp 5.0.5 + Python 3.4

Installed CoolProp 5.0.5 from PyPI and using:

import CoolProp.CoolProp as CP

throws the error:

Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/lib/python3.4/site-packages/CoolProp/__init__.py", line 5, in 
    from . import constants
  File "/usr/lib/python3.4/site-packages/CoolProp/constants.py", line 3, in 
    import _constants
ImportError: No module named '_constants'

EDIT: SORRY, POSTED IN THE WRONG PLACE; CLOSING IT HERE

And OSX? What version of python?

There's a weird problem it seems that I can't currently replicate. Windows
and some OSX work fine.

@jowr, does this work on your mac? It does, right? Aren't we using it for
the docs?

On Sun, Jan 4, 2015 at 12:05 AM, Frisbee Whisperwind <
notifications@github.com> wrote:

Hi,
CoolProp 5.0.5 + Python 3.4

Installed CoolProp 5.0.5 from PyPI and using:

import CoolProp.CoolProp as CP

throws the error:

Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python3.4/site-packages/CoolProp/init.py", line 5, in
from . import constants
File "/usr/lib/python3.4/site-packages/CoolProp/constants.py", line 3, in
import _constants
ImportError: No module named '_constants'


Reply to this email directly or view it on GitHub
#250.

I'm running Archlinux with Python 3.4.2.

If you haven't noticed, I posted this in the wrong place i.e. issues for version 4; have reposted the issue here:
CoolProp/CoolProp#388