#1118402 python3-suntime: The version in Debian stable bugs, upstream release does not

#1118402#5
Date:
2025-10-19 10:59:08 UTC
From:
To:
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