julian 0.14 library

Chris Angelico rosuav at gmail.com
Tue Apr 3 23:44:41 EDT 2018


On Wed, Apr 4, 2018 at 12:24 PM, sum abiut <suabiut at gmail.com> wrote:
> Hi,
> Has anyone try this https://pypi.python.org/pypi/julian/0.14
>
> i got this error trying to import julian
>
>>>> import julian
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/usr/local/lib/python2.7/dist-packages/julian/__init__.py", line 1,
> in <module>
>     from julian.julian import to_jd, from_jd
>   File "/usr/local/lib/python2.7/dist-packages/julian/julian.py", line 5
>     def __to_format(jd: float, fmt: str) -> float:
>                       ^
> SyntaxError: invalid syntax
>

Looks like that package requires Python 3, but was uploaded to PyPI
without any version tags. You could try running it in Python 3.x, but
there's no way to know which ".x" versions are going to work.

ChrisA


More information about the Python-list mailing list