ImportError: No module named names
Hi, Unfortunately I'm not very fond of Python. Calendarserver is the only contact with Python I had so far. On my server I just upgraded from Ubuntu 12.04 to 14.04. That upgraded my calendarserver from 2.4.dfsg-7 to 5.2+dfsg-1. But now it won't start anymore, failing in the below error. Has anyone a hint on what I could try to eliminate this problem? Best regards, Axel Traceback (most recent call last): File "/usr/bin/twistd", line 14, in <module> run() File "/usr/lib/python2.7/dist-packages/twisted/scripts/twistd.py", line 27, in run app.run(runApp, ServerOptions) File "/usr/lib/python2.7/dist-packages/twisted/application/app.py", line 637, in run config.parseOptions() File "/usr/lib/python2.7/dist-packages/twisted/application/app.py", line 604, in parseOptions usage.Options.parseOptions(self, options) File "/usr/lib/python2.7/dist-packages/twisted/python/usage.py", line 261, in parseOptions for (cmd, short, parser, doc) in self.subCommands: File "/usr/lib/python2.7/dist-packages/twisted/application/app.py", line 621, in subCommands for plug in sorted(plugins, key=attrgetter('tapname')): File "/usr/lib/python2.7/dist-packages/twisted/plugins/caldav.py", line 31, in getProperty return getattr(reflect.namedClass(self.serviceMakerClass), propname) File "/usr/lib/python2.7/dist-packages/twisted/python/_reflectpy3.py", line 151, in namedObject module = namedModule('.'.join(classSplit[:-1])) File "/usr/lib/python2.7/dist-packages/twisted/python/_reflectpy3.py", line 137, in namedModule topLevel = __import__(name) File "/usr/lib/python2.7/dist-packages/calendarserver/tap/caldav.py", line 77, in <module> from txdav.common.datastore.upgrade.migrate import UpgradeToDatabaseStep File "/usr/lib/python2.7/dist-packages/txdav/common/datastore/upgrade/migrate.py", line 44, in <module> from txdav.common.datastore.file import CommonDataStore as FileStore, TOPPATHS File "/usr/lib/python2.7/dist-packages/txdav/common/datastore/file.py", line 37, in <module> from twistedcaldav.notifications import NotificationRecord File "/usr/lib/python2.7/dist-packages/twistedcaldav/notifications.py", line 33, in <module> from twistedcaldav.resource import ReadOnlyNoCopyResourceMixIn, CalDAVResource File "/usr/lib/python2.7/dist-packages/twistedcaldav/resource.py", line 71, in <module> from twistedcaldav.directory.internal import InternalDirectoryRecord File "/usr/lib/python2.7/dist-packages/twistedcaldav/directory/internal.py", line 30, in <module> from twistedcaldav.directory.directory import DirectoryService, DirectoryRecord File "/usr/lib/python2.7/dist-packages/twistedcaldav/directory/directory.py", line 51, in <module> from txdav.caldav.datastore.scheduling.ischedule.localservers import Servers File "/usr/lib/python2.7/dist-packages/txdav/caldav/datastore/scheduling/ischedule/localservers.py", line 23, in <module> from txdav.caldav.datastore.scheduling.ischedule.utils import getIPsFromHost File "/usr/lib/python2.7/dist-packages/txdav/caldav/datastore/scheduling/ischedule/utils.py", line 20, in <module> from twisted.names import dns ImportError: No module named names
On Oct 11, 2014, at 2:45 AM, Axel <cal@mooselook.de> wrote:
File "/usr/lib/python2.7/dist-packages/txdav/caldav/datastore/scheduling/ischedule/utils.py", line 20, in <module> from twisted.names import dns ImportError: No module named names
It seems your installation of Twisted is incomplete, and is installing the twisted.names package. This is odd, because unless you've specifically installed Twisted from the sub-package distributions to exclude things, it would include all of tis subpackages. How did you install it? -glyph
Hi, I got a lot further. Realized that calendarserver is using postgres db now and not filesystem anymore. Also managed to set everything up. Upgrade from filesystem to db happened. Now I still get an error when starting the server about guid. I've also removed guid for my user already but that won't help either. Server is starting up. Can access my "main" calendar that I used to access through /calendars/users/axel/calendar/. Another problem is that I had another calendar for that user at /calendars/users/axel/katjaaxelcal. That is not available through that URL anymore. What happened? Not sure how to continue here. Could anyone help out? Thanks, Axel Attached my error.log and below is my accounts.xml. ------------------------- <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (c) 2006-2007 Apple Inc. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <!DOCTYPE accounts SYSTEM "accounts.dtd"> <accounts realm="Test Realm"> <user> <uid>admin</uid> <password>pwd</password> <name>Super User</name> </user> <user> <uid>axel</uid> <password>pwd</password> <name>Axel Siebenwirth</name> <guid>328FA528-6ABB-5775-98DF-E5D6E37DA7DD</guid> </user> <group> <uid>users</uid> <password>users</password> <name>Users Group</name> <members> <member type="users">axel</member> </members> </group> </accounts> On 11.10.2014 22:43, Glyph wrote:
On Oct 11, 2014, at 2:45 AM, Axel <cal@mooselook.de <mailto:cal@mooselook.de>> wrote:
File "/usr/lib/python2.7/dist-packages/txdav/caldav/datastore/scheduling/ischedule/utils.py", line 20, in <module> from twisted.names import dns ImportError: No module named names
It seems your installation of Twisted is incomplete, and is installing the twisted.names package. This is odd, because unless you've specifically installed Twisted from the sub-package distributions to exclude things, it would include all of tis subpackages.
How did you install it?
-glyph
Hi Axel, --On October 15, 2014 at 2:07:19 PM +0200 Axel Siebenwirth <cal@mooselook.de> wrote:
Another problem is that I had another calendar for that user at /calendars/users/axel/katjaaxelcal. That is not available through that URL anymore. What happened?
Not sure how to continue here.
Could anyone help out?
Add a <guid> element to the <user> and <group> elements that lack one, using a uuid value for each one. -- Cyrus Daboo
participants (4)
-
Axel
-
Axel Siebenwirth
-
Cyrus Daboo
-
Glyph