julian 0.14 library

Thomas Jollans tjol at tjol.eu
Wed Apr 4 12:21:13 EDT 2018


On 2018-04-04 05:44, Chris Angelico wrote:
> 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.

the cheeseshop description says 3.2+



More information about the Python-list mailing list