calendarserver has dependency on non-existent python-xml package in karmic/lucid

Bug #403349 reported by Tomas Cassidy
126
This bug affects 23 people
Affects Status Importance Assigned to Milestone
calendarserver (Ubuntu)
Fix Released
High
Unassigned
Nominated for Karmic by Tomas Cassidy
Nominated for Lucid by Tomas Cassidy

Bug Description

Binary package hint: calendarserver

The calendarserver package in karmic and lucid has a dependency on the python-xml package. The python-xml package has been deleted from the karmic repository as per bug #343242. This is blocking the install of calendarserver on karmic/lucid.

There are also other packages that are affected by the missing dependency. Look at this Ubuntu Forums thread for more info: http://ubuntuforums.org/showthread.php?t=1330803

tags: added: packaging
Revision history for this message
Bhavani Shankar (bhavi) wrote :

I ll look into this

Thanks

Regards

Revision history for this message
Bhavani Shankar (bhavi) wrote :

I ll try to build with lxml dep and give the link to the deb here

Regards

Changed in calendarserver (Ubuntu):
status: New → In Progress
assignee: nobody → Bhavani Shankar (bhavi)
Revision history for this message
Bhavani Shankar (bhavi) wrote :
Revision history for this message
Tomas Cassidy (tomas-cassidy) wrote :

Hi. I can't test that deb yet on a karmic virtual machine because the current linux-image-virtual in karmic is missing virtio networking drivers. I will test it once alpha6 comes out with the updated drivers.

Revision history for this message
Tomas Cassidy (tomas-cassidy) wrote :

The bug report for the above problem is bug #423426. I will upgrade the virtual machine for testing as soon as the fix is released.

Revision history for this message
Ritz (jonas-ritz) wrote :

Tryid to install the calender server from link provided above on karmic

But get the following error, from package installer:

Error: Dependency is not satisfiable: lxml

Revision history for this message
Tomas Cassidy (tomas-cassidy) wrote :

It looks like the deb has an incorrect dependency. It tries to install the lxml package when it should be installing the python-lxml package.
http://packages.ubuntu.com/karmic/python-lxml

Revision history for this message
Ritz (jonas-ritz) wrote :

Have changed dependency from lxml to python-lxml on a downloaded version of the deb file from Bhavani Shankar.

Now package installer tries to install it, but in the installation process terminates with the following error:

E: /var/cache/apt/archives/python-twisted-calendarserver_0.2.0.svn19773-5ubuntu1_i386.deb: trying to overwrite `/usr/share/pyshared/twisted/plugins/__init__.py', which is also in package python-twisted-core

phyton-twisted-calenderserver depends on python-twisted-core.

Revision history for this message
Ritz (jonas-ritz) wrote :

See Bug #349837 for details about the python-twisted-calendarserver / python-twisted-core problem.

Revision history for this message
Ritz (jonas-ritz) wrote :

There is several updates on the calender server since version 1.2.
Current version is 2.3
Maybe this issue is already fixed.
see: http://trac.calendarserver.org/browser/CalendarServer/tags/release

Revision history for this message
Bhavani Shankar (bhavi) wrote :

Yeah seems better off updating the package then...

ll have a look tomorrow

/me hits bed

Thanks and regards

Revision history for this message
Tomas Cassidy (tomas-cassidy) wrote :

I have filed a bug report for upgrading to the new version of calendarserver at Bug #426778

Changed in calendarserver (Ubuntu):
importance: Undecided → High
Revision history for this message
PeterNSteinmetz (ndoc2) wrote :

It looks like version 2.3 will require a fair number of changes to the debian and ubuntu packaging, from what I can see.

Spent a fair amount of time working with 1.4 from
http://trac.calendarserver.org/browser/CalendarServer/tags/release/CalendarServer-1.4

which was released at basically the same time as 2.3, that is, 3 months ago.

I'm a newbie at this packaging business, so am sure it is not quite right yet.

I took the source for 1.4 and copied in the debian subdirectory from the prior ubuntu package. Needed to make a number of changes to some patch files and the control file.

Have been able to build the source package, build the package, and install on my system (though with a syntax warning in one module that may indicate another patch that needs changing).

I'm finished with this for the weekend, so thought I would forward along my source directory and orig.tar.gz tarball that I was using in construction.

I'm assuming that really the way this should work is either for the debian upstream to be fixed, or for the source to be retrieved via the svn from macports and then a debian subdirectory added, but I'm definitely not sure on that.

Perhaps others can carry on with the packaging and testing from here?

thanks,
Peter

Revision history for this message
PeterNSteinmetz (ndoc2) wrote :

Interesting, perhaps 2.3 isn't so bad. I took the source from macports for 2.3 and copied in the debian subdirectory from the ubuntu 1.2 source.

Removed all files from patches (after all, these may have been fixed). Modified calendarserver.examples to point at conf/auth/accounts.xml rather than conf/accounts.xml. Modified control file to remove dependence on python-twisted-calendarserver, and changed dependence on python-xml to python-lxml.

This seems to build and install. No idea if it works well or at all.

Revision history for this message
Alex Dean (alex-dean) wrote :

PeterNSteinmetz : I was able to build a calendarserver package following the steps you describe, but I have not been able to get it to start.

1. /etc/caldavd was not created when the package was installed, so I copied over the configuration from a running calendarserver on another machine.
2. '/etc/init.d/calendarstart start' produces the output :
 * Starting calendarserver caldavd
exec python /usr/bin/twistd caldav
   ...fail!
3. My running calendarserver (on the other machine) has the following ps output:
... python /usr/bin/twistd caldav
... /usr/bin/python /usr/bin/twistd -u caldavd -g caldavd -n caldav -f /etc/caldavd/caldavd.plist -o ProcessType=Slave -o BindAddresses= -o PIDFile=None -o ErrorLogFile=None -o MultiProcess/ProcessCount=1 -o BindSSLPorts=8443

When I run the second line manually (the /usr/bin/python /usr/bin/twistd command), I get the following Python backtrace:
root@grawp:/etc/courier# /usr/bin/python /usr/bin/twistd -u caldavd -g caldavd -n caldav -f /etc/caldavd/caldavd.plist -o ProcessType=Slave -o BindAddresses= -o PIDFile=None -o ErrorLogFile=None -o MultiProcess/ProcessCount=1 -o BindSSLPorts=8443
Traceback (most recent call last):
  File "/usr/bin/twistd", line 21, in <module>
    run()
  File "/usr/lib/python2.6/dist-packages/twisted/scripts/twistd.py", line 27, in run
    app.run(runApp, ServerOptions)
  File "/usr/lib/python2.6/dist-packages/twisted/application/app.py", line 689, in run
    config.parseOptions()
  File "/usr/lib/python2.6/dist-packages/twisted/application/app.py", line 669, in parseOptions
    usage.Options.parseOptions(self, options)
  File "/usr/lib/python2.6/dist-packages/twisted/python/usage.py", line 226, in parseOptions
    for (cmd, short, parser, doc) in self.subCommands:
  File "/usr/lib/python2.6/dist-packages/twisted/application/app.py", line 680, in subCommands
    self.loadedPlugins[plug.tapname] = plug
  File "/usr/lib/python2.6/dist-packages/twisted/plugins/caldav.py", line 13, in getProperty
    return getattr(reflect.namedClass(self.serviceMakerClass), propname)
  File "/usr/lib/python2.6/dist-packages/twisted/python/reflect.py", line 343, in namedObject
    module = namedModule(string.join(classSplit[:-1], '.'))
  File "/usr/lib/python2.6/dist-packages/twisted/python/reflect.py", line 331, in namedModule
    topLevel = __import__(name)
  File "/usr/lib/python2.6/dist-packages/calendarserver/sidecar/task.py", line 24, in <module>
    from calendarserver.provision.root import RootResource
  File "/usr/lib/python2.6/dist-packages/calendarserver/provision/root.py", line 25, in <module>
    from twisted.web2 import responsecode
ImportError: No module named web2

I don't have any more time to look into this tonight, but I'll keep poking at it as I can make time.

Revision history for this message
Alex Dean (alex-dean) wrote :

For anyone tired of waiting for an updated Ubuntu package : http://www.deanspot.org/content/installing-darwin-calendar-server-23-ubuntu-910

Revision history for this message
Jamin W. Collins (jcollins) wrote :

Would be nice to see this bug resolved before lucid is released. That or the package removed from the archive.

Revision history for this message
PeterNSteinmetz (ndoc2) wrote :

Trying to determine how to develop a package working from the source code for 2.3, since the upstream doesn't seem to be moving. Page now on the wiki:
https://wiki.ubuntu.com/CalendarServerPackaging

Hopefully others can contribute who have more expertise in packaging.

tags: added: unmetdeps
Bhavani Shankar (bhavi)
Changed in calendarserver (Ubuntu):
status: In Progress → Confirmed
assignee: Bhavani Shankar (bhavi) → nobody
summary: calendarserver has dependency on non-existent python-xml package in
- karmic
+ lucid
summary: calendarserver has dependency on non-existent python-xml package in
- lucid
+ karmic/lucid
description: updated
Revision history for this message
Helmo (helmo) wrote :

The 1.2.dfsg-9 version which is available for Maverick notes in the change log "[080f99a] remove package depends 'python-xml' python-xml was merged into the python core package and removed from unstable on 16th August 2009"

https://launchpad.net/ubuntu/+source/calendarserver/1.2.dfsg-9

Has anyone tried this version?

Revision history for this message
Eugene (eyv) wrote :

No such luck, re: calendarserver/1.2.dfsg-9

dpkg: regarding calendarserver_1.2.dfsg-9_all.deb containing calendarserver:
 python-vobject conflicts with calendarserver (<< 2.0)

However, removing python-vobject gets you:
dpkg: dependency problems prevent configuration of calendarserver:
 calendarserver depends on python-vobject (>= 0.4.8); however:
  Package python-vobject is not installed.
 calendarserver depends on python-twisted-calendarserver (>= 0.2.0.svn19773-3); however:
  Package python-twisted-calendarserver is not installed.

The python-twisted-calendarserver package also seems to be missing. But it seems there's some odd problem such that calendarserver cannot be installed whether or not python-vobject is installed.

Revision history for this message
Jay Age (yanoshik) wrote :

For Lucid, Maverick packages:

python-twisted-calendarserver_8.2.0.svn27622-2_i386.deb
calendarserver_2.4.dfsg-2_all.deb

installed without any issues.

calendarserver is working on both 8008 (http) and 8443 (https) posts. Would it be possible to add these packages to Lucid, to solve the issue for the its users and save them installing and updating those packages manually?

It looks that no changes would be necessary...

Revision history for this message
produnis (schlarmann-uni-wh) wrote :

at least I consider to switch back to debian...
:(
Ubuntu is great, but unfortunately, any packages I need to have has a bug...
Concerning the calendarserver, this is broken since jaunty!

Revision history for this message
Aditya V (kroq-gar78) wrote :

I believe this affects many packages. Look at this thread for more info: http://ubuntuforums.org/showthread.php?t=1330803

I'll go ahead and add those saying that they're affected and will change the title appropriately.

Aditya V (kroq-gar78)
description: updated
Revision history for this message
Mattia Rizzolo (mapreri) wrote :

The issue was somehow fixed, and calendarserver is installable on trusty (and also on precise). Marking as fixed.

Changed in calendarserver (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.