EconForge / interpolation.py

BSD 2-Clause "Simplified" License
123 stars 35 forks source link

Error on package import #31

Closed bdun closed 5 years ago

bdun commented 5 years ago

My problem looks similar to #25.

I'm using Python 2.7.15

>>> from interpolation import interp
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python27\lib\site-packages\interpolation\__init__.py", line 1, in <module>
    from .multilinear.mlinterp import interp, mlinterp
  File "C:\Python27\lib\site-packages\interpolation\multilinear\mlinterp.py", line 38
    def mlininterp(grid: Tuple, c: Array, u: Tuple)->float:

My pip list:

backports.functools-lru-cache (1.5)
cycler (0.10.0)
Cython (0.28.5)
enum34 (1.1.6)
fstrings (0.1.0)
funcsigs (1.0.2)
gitdb2 (2.0.4)
GitPython (2.1.11)
interpolation (0.2.1)
kiwisolver (1.0.1)
llvmlite (0.25.0)
matplotlib (2.2.2)
numba (0.40.0)
numexpr (2.6.5)
numpy (1.14.5)
pandas (0.23.4)
pip (9.0.3)
pyparsing (2.2.0)
python-dateutil (2.7.3)
pytz (2018.4)
scipy (1.1.0)
setuptools (39.0.1)
singledispatch (3.4.0.3)
six (1.11.0)
smmap2 (2.0.4)
tables (3.4.4)
tabulate (0.8.2)
albop commented 5 years ago

That's because we need python 3.6. I'll fix the package requirements accordingly.

Le sam. 29 sept. 2018 à 04:34, bdun notifications@github.com a écrit :

My problem looks similar to #25 https://github.com/EconForge/interpolation.py/issues/25.

I'm using Python 2.7.15

from interpolation import interp Traceback (most recent call last): File "", line 1, in File "C:\Python27\lib\site-packages\interpolation__init__.py", line 1, in from .multilinear.mlinterp import interp, mlinterp File "C:\Python27\lib\site-packages\interpolation\multilinear\mlinterp.py", line 38 def mlininterp(grid: Tuple, c: Array, u: Tuple)->float:

My pip list:

backports.functools-lru-cache (1.5) cycler (0.10.0) Cython (0.28.5) enum34 (1.1.6) fstrings (0.1.0) funcsigs (1.0.2) gitdb2 (2.0.4) GitPython (2.1.11) interpolation (0.2.1) kiwisolver (1.0.1) llvmlite (0.25.0) matplotlib (2.2.2) numba (0.40.0) numexpr (2.6.5) numpy (1.14.5) pandas (0.23.4) pip (9.0.3) pyparsing (2.2.0) python-dateutil (2.7.3) pytz (2018.4) scipy (1.1.0) setuptools (39.0.1) singledispatch (3.4.0.3) six (1.11.0) smmap2 (2.0.4) tables (3.4.4) tabulate (0.8.2)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/EconForge/interpolation.py/issues/31, or mute the thread https://github.com/notifications/unsubscribe-auth/AAQ5Kfbjx5qQCMono5m50--AECCLfGu0ks5uftwrgaJpZM4XASJI .