Package: python3-suntime
Version: 1.2.5-5
Severity: normal
Dear Maintainer,
running an example code from upstream (only the part giving errors
copied here):
# On a special date in your machine's local time zone
abd = datetime.datetime(2014, 10, 3)
abd_sr = sun.get_sunrise_time(abd, tz.gettz('Europe/Warsaw'))
abd_ss = sun.get_sunset_time(abd, tz.gettz('Europe/Warsaw'))
The whole example code from here <https://github.com/SatAgro/suntime>.
Gives TypeError:
$ python3 suntime-examp.py
Today at Warsaw the sun raised at 05:06 and get down at 15:35
UTC
Traceback (most recent call last):
File
"/home/ebirdie/Projektit/python3-luokka-2021/suntime-examp.py",
line 18, in <module>
abd_sr = sun.get_sunrise_time(abd,
tz.gettz('Europe/Warsaw'))
TypeError: Sun.get_sunrise_time() takes from 1 to 2
positional arguments but 3 were given
Latest upstream version (in venv, where everything else but suntime
module is from the Debian system above):
$ ~/.venvs/suntime/bin/python3 suntime-examp.py
Today at Warsaw the sun raised at 05:05 and get down at 15:35 UTC
On 2014 -10-03 00:00:00 the sun at Warsaw raised at 06:39 and get down at
18:10.
Error: The sun never rises on this location (on the specified date).
Best regards,
Erkki
-- System Information:
Debian Release: 13.1
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.12.48+deb13-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages python3-suntime depends on:
ii python3 3.13.5-1
ii python3-dateutil 2.9.0-4
python3-suntime recommends no packages.
python3-suntime suggests no packages.
-- no debconf information