[CalendarServer-users] Import Error - cannot import name

Gaurav Jain monkeyfdude at gmail.com
Mon Feb 8 10:26:31 PST 2016


Ok..I have resolved the issue. Server was referring to some stale dirs that
I removed.

On Mon, Feb 8, 2016 at 9:59 AM, Gaurav Jain <monkeyfdude at gmail.com> wrote:

> I was testing CalendarServer-7.0. It was building and running fine.
>
> However, now I keep getting following error. I tried even in virtualenv on
> Mac
>
> Would you know the issue?
>
>
>   File
> "//develop/PythonVirtualEnvs/Calendar-7.0/CalendarServer-7.0/txdav/dps/server.py",
> line 21, in <module>
>
>     from calendarserver.tap.util import getDBPool,
> storeFromConfigWithDPSServer
>
>   File
> "//develop/PythonVirtualEnvs/Calendar-7.0/CalendarServer-7.0/calendarserver/tap/util.py",
> line 68, in <module>
>
>     from twistedcaldav.controlapi import ControlAPIResource
>
>   File
> "//develop/PythonVirtualEnvs/Calendar-7.0/CalendarServer-7.0/twistedcaldav/controlapi.py",
> line 47, in <module>
>
>     from txdav.who.groups import GroupCacherPollingWork, GroupRefreshWork,
> \
>
>   File
> "//develop/PythonVirtualEnvs/Calendar-7.0/CalendarServer-7.0/txdav/who/groups.py",
> line 29, in <module>
>
>     from txdav.caldav.datastore.sql import CalendarStoreFeatures
>
>   File
> "//develop/PythonVirtualEnvs/Calendar-7.0/CalendarServer-7.0/txdav/caldav/datastore/sql.py",
> line 1112, in <module>
>
>     class Calendar(CommonHomeChild):
>
>   File
> "//develop/PythonVirtualEnvs/Calendar-7.0/CalendarServer-7.0/txdav/caldav/datastore/sql.py",
> line 1141, in Calendar
>
>     _shadowProperties = tuple([PropertyName.fromString(prop) for prop in
> config.Sharing.Calendars.CollectionProperties.Shadowable])
>
>   File
> "//develop/PythonVirtualEnvs/Calendar-7.0/CalendarServer-7.0/twistedcaldav/config.py",
> line 180, in __getattr__
>
>     self.update()
>
>   File
> "//develop/PythonVirtualEnvs/Calendar-7.0/CalendarServer-7.0/twistedcaldav/config.py",
> line 262, in update
>
>     hook(self._data, reloading=reloading)
>
>   File
> "//develop/PythonVirtualEnvs/Calendar-7.0/CalendarServer-7.0/twistedcaldav/stdconfig.py",
> line 1414, in _postUpdateResourceService
>
>     from twistedcaldav.upgrade import upgradeResourcesXML
>
>   File
> "//develop/PythonVirtualEnvs/Calendar-7.0/CalendarServer-7.0/twistedcaldav/upgrade.py",
> line 67, in <module>
>
>     from calendarserver.tap.util import getRootResource, FakeRequest
>
> ImportError: cannot import name getRootResource
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-users/attachments/20160208/47327be9/attachment.html>


More information about the calendarserver-users mailing list