error when the child logs in

Asked by henrydenhengst

OS: ArcoLinux
Kernel: 5.16.9-zen1-1-zen
Shell: bash 5.1.16
timekpr 0.3.2-13

What causes these errors?
What can I do?

2022-02-16 14:49:33.404226: org.freedesktop.DBus.Python.TypeError: Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/dbus/service.py", line 715, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/lib/python3/dist-packages/timekpr/server/interface/dbus/daemon.py", line 522, in requestTimeLeft
    self._timekprUserList[pUserName].getTimeLeft(True)
  File "/usr/lib/python3/dist-packages/timekpr/server/user/userdata.py", line 603, in getTimeLeft
    self._timekprUserNotification.processTimeLeft(pForceNotifications, timeValues)
  File "/usr/lib/python3/dist-packages/timekpr/common/utils/notifications.py", line 139, in processTimeLeft
    self.timeLeftNotification(notifUrgency, max(pTimeValues[cons.TK_CTRL_LEFT], 0), max(pTimeValues[cons.TK_CTRL_LEFTD], 0), pTimeValues[cons.TK_CTRL_LIMITD])
  File "/usr/lib/python3.10/site-packages/dbus/decorators.py", line 325, in emit_signal
    message.append(signature=signature, *args)
TypeError: 'float' object cannot be interpreted as an integer

Question information

Language:
English Edit question
Status:
Solved
For:
Timekpr-nExT Edit question
Assignee:
Eduards Bezverhijs Edit question
Solved by:
Eduards Bezverhijs
Solved:
Last query:
Last reply:
Revision history for this message
Best Eduards Bezverhijs (mjasnik) said (last edit ):
#1

It seems that this is happening with very recent versions of python, for some reason or other.

However, are you really and actually sure that your version is 0.3.2? That's very old and is unsupported. I think you mismatched what is installed on our system vs what timekpr version is in package manager. The error very much looks like from timekpr-next :)

I have never heard of ArcoLinux before, however, I found out that it is based on ArchLinux (which I use) and for that you need to install it via AUR, the package is timekpr-next-git.

I have already made a fix for this (OFC only for lastest version, which is 0.5.3), please install beta and report back whether it solves the issue.
Do not worry, beta will use the same user configuration as stable version.

Revision history for this message
henrydenhengst (henrydenhengst) said :
#2

The current Python version is 3.10.2

So I did what you said and used the other timekpr-next version in the AUR: https://aur.archlinux.org/packages/timekpr-next-git
and it works! The other one worked too, but the constant error was very annoying.

If I can help you translate this program to Dutch than I'd be happy too?

Thanks!

Revision history for this message
henrydenhengst (henrydenhengst) said :
#3

Thanks Eduards Bezverhijs, that solved my question.

Revision history for this message
Eduards Bezverhijs (mjasnik) said (last edit ):
#4

Translations are welcome!

Please go to translations section https://translations.launchpad.net/timekpr-next , you can translate it there.