[Calypso] Switch to python3

Dominik 'Rathann' Mierzejewski dominik at greysector.net
Fri Mar 13 06:44:42 PDT 2020


On Wednesday, 11 March 2020 at 23:53, Keith Packard wrote:
> Dominik 'Rathann' Mierzejewski <dominik at greysector.net> writes:
> > On Saturday, 16 March 2019 at 18:51, Keith Packard wrote:
[...]
> > 1. setup.py tries to download https://pypi.org/project/daemon/
> > instead of https://pypi.org/project/python-daemon/ while the code
> > clearly depends on the latter. The attached patch solves the issue for
> > me.
> 
> Oops. I'm only using my debian package, not setup :-)

I'm not familiar with Debian package building, but shouldn't that use
setup.py as well?

> > 2. When I try to run calypso as a daemon (calypso -d), it dies
> > after 10 seconds. I have vobject-0.9.6.1 and daemon-2.2.3 installed.
> > Python3 3.7.6 is the interpreter.
> 
> Any debug output?

How do I get debug output from a daemon process? I do get output on
stdout only if I run it without -d, i.e. in foreground.

> > 3. I get "Request timed out" message immediately after almost every
> > client operation, e.g.:
> > Mar 11 20:05:14 calypso[60301]: 172.16.20.35 - - [11/Mar/2020 20:05:09] "REPORT /Dominik/ HTTP/1.1" 207 -
> > Mar 11 20:05:14 calypso[60301]: Request timed out: timeout('The read
> > operation timed out')

Any idea how to debug this one?

> > 4. There's no support for starting as root and dropping privileges
> > later. This would be useful for listening on a privileged port and using
> > a root-accessible TLS keyfile for TLS support.
> 
> Yeah, but then it would need a pile of UID management to support
> multiple users accessing their data files directly. Alternatively,
> providing a command line mechanism to modify the database could work?

What database are you talking about? I don't understand the question.

> > 5. Is there any support for calendar colours? All entries in all
> > calendars hosted on calypso are shown in green in Android calendar
> > applications (e.g. LineageOS's built-in calendar app and Etar). I'm
> > using DAVx⁵ for calendar syncing in Android.
> 
> Not sure what those properties are; should be pretty easy to support
> though.

It looks like support for color property is already there:
https://keithp.com/cgit/calypso.git/tree/calypso/webdav.py#n703
https://keithp.com/cgit/calypso.git/tree/calypso/xmlutils.py#n182

I was rather asking if anyone has an idea why it's not working on the
client side.

> > 6. I wrote a basic systemd unit, which I'm attaching as well.
> 
> Thanks. Figuring out how to make calypso usable by more than one user
> would be a great project...

Speaking of which, I read there's support for PAM authentication, but I
couldn't get it to work. Attempts to log in with the correct password
failed with a generic PAM error. Do you have any setup instructions for
that?

Regards,
Dominik
-- 
Fedora   https://getfedora.org  |  RPM Fusion  http://rpmfusion.org
There should be a science of discontent. People need hard times and
oppression to develop psychic muscles.
        -- from "Collected Sayings of Muad'Dib" by the Princess Irulan


More information about the Calypso mailing list