esheldon / esutil

A variety of python utilities focusing on numerical, scientific, and astrophysical computing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pip version of esutil has syntax error

jacobic opened this issue · comments

Hi esheldon,

I just wanted to let you know that when installing with pip I find that is an error on import. It appears that there is an extra comma here which should be removed after the kwargs:

Traceback (most recent call last):
File "src/models/make_models.py", line 11, in
from esutil.cosmology import Cosmo
File "/u/jacobic/.local/anaconda3/envs/ezgal/lib/python2.7/site-packages/esutil/init.py", line 107, in
from . import integrate
File "/u/jacobic/.local/anaconda3/envs/ezgal/lib/python2.7/site-packages/esutil/integrate/init.py", line 3, in
from . import util
File "/u/jacobic/.local/anaconda3/envs/ezgal/lib/python2.7/site-packages/esutil/integrate/util.py", line 20, in
from .. import stat
File "/u/jacobic/.local/anaconda3/envs/ezgal/lib/python2.7/site-packages/esutil/stat/init.py", line 11, in
from . import util
File "/u/jacobic/.local/anaconda3/envs/ezgal/lib/python2.7/site-packages/esutil/stat/util.py", line 981
sdev=False, **ignored_kw,
^
SyntaxError: invalid syntax

After removing it manually it seems to work

Cheers,
Jacob

Thanks for the report.

python 2.7 doesn't allow the trailing comma (python3 does)

Do you want to make a pull request?