[CalendarServer] #328: can't find twisted.cred.strcred
#328: can't find twisted.cred.strcred ---------------------------------+------------------------------------------ Reporter: macosforge@… | Owner: wsanchez@… Type: Defect | Status: new Priority: 5: Not set | Milestone: Component: Calendar Server | Severity: Other Keywords: | ---------------------------------+------------------------------------------ Running either './run' or './test twistedcaldav.static', I get: Starting server... exec python /home/arnouten/dev/calendaring/Twisted/bin/twistd -n caldav -f /home/arnouten/dev/calendaring/CalendarServer/conf/caldavd-dev.plist -o ProcessType=Combined Traceback (most recent call last): File "/home/arnouten/dev/calendaring/Twisted/twisted/application/app.py", line 354, in parseOptions usage.Options.parseOptions(self, options) File "/home/arnouten/dev/calendaring/Twisted/twisted/python/usage.py", line 184, in parseOptions for (cmd, short, parser, doc) in self.subCommands: File "/home/arnouten/dev/calendaring/Twisted/twisted/application/app.py", line 364, in subCommands for plug in plugins: File "/home/arnouten/dev/calendaring/Twisted/twisted/plugin.py", line 186, in getPlugins allDropins = getCache(package) --- <exception caught here> --- File "/home/arnouten/dev/calendaring/Twisted/twisted/plugin.py", line 151, in getCache provider = pluginModule.load() File "/home/arnouten/dev/calendaring/Twisted/twisted/python/modules.py", line 378, in load return self.pathEntry.pythonPath.moduleLoader(self.name) File "/home/arnouten/dev/calendaring/Twisted/twisted/python/modules.py", line 614, in moduleLoader return self._moduleLoader(modname) File "/home/arnouten/dev/calendaring/Twisted/twisted/python/reflect.py", line 361, in namedAny topLevelPackage = __import__(trialname) File "/usr/share/pyshared/twisted/plugins/cred_anonymous.py", line 14, in <module> from twisted.cred.strcred import ICheckerFactory exceptions.ImportError: No module named strcred Interesting thing is that the lowest entry in the stack is "/usr/share/pyshared/twisted/plugins/cred_anonymous.py", and "/usr/share/pyshared/twisted/cred/strcred.py" actually exists. -- Ticket URL: <http://trac.calendarserver.org/ticket/328> CalendarServer </> HTTP/WebDAV/CalDAV Server
#328: can't find twisted.cred.strcred ---------------------------------+------------------------------------------ Reporter: macosforge@… | Owner: wsanchez@… Type: Defect | Status: new Priority: 5: Not set | Milestone: Component: Calendar Server | Severity: Other Keywords: | ---------------------------------+------------------------------------------ Comment(by macosforge@…): This is on ubuntu linux, using latest SVN. These 2 files are from the python-twisted-core package, which 8.1.0. Removing the python-twisted-core package seems to make the problem go away - "./test twistedcaldav.static" no longer shows stacktraces, though it still reports there are 0 tests. I'd quite prefer to leave the python-twisted-core package installed, is there any way to tell python only to use CalendarServers `builtin' version? -- Ticket URL: <http://trac.calendarserver.org/ticket/328#comment:1> CalendarServer </> HTTP/WebDAV/CalDAV Server
#328: can't find twisted.cred.strcred ---------------------------------+------------------------------------------ Reporter: macosforge@… | Owner: wsanchez@… Type: Defect | Status: new Priority: 2: Expected | Milestone: Linux Port Component: Calendar Server | Severity: Other Keywords: | ---------------------------------+------------------------------------------ Changes (by wsanchez@…): * priority: 5: Not set => 2: Expected * milestone: => Linux Port Comment: Something about `PYTHONPATH` is getting `/home/arnouten/dev/calendaring/Twisted` sometimes and `/usr/share/pyshared` another time. It shouldn't be looking in `/usr/share/pyshared` at all. On Mac OS X, I have it pretty reliably only using the "builtin" version, so I don't know what's going on here. -- Ticket URL: <http://trac.calendarserver.org/ticket/328#comment:2> CalendarServer </> HTTP/WebDAV/CalDAV Server
#328: can't find twisted.cred.strcred ----------------------------------+----------------------------------------- Reporter: macosforge@… | Owner: wsanchez@… Type: Defect | Status: closed Priority: 2: Expected | Milestone: Linux Port Component: Calendar Server | Severity: Other Resolution: Software changed | Keywords: Radar: | ----------------------------------+----------------------------------------- Changes (by wsanchez@…): * status: new => closed * resolution: => Software changed Comment: Should work now that we don't try to build our own Twisted. -- Ticket URL: <http://trac.calendarserver.org/ticket/328#comment:3> Calendar and Contacts Server </> HTTP/WebDAV/CalDAV Server
#328: can't find twisted.cred.strcred ----------------------------------+----------------------------------------- Reporter: macosforge@… | Owner: wsanchez@… Type: Defect | Status: closed Priority: 2: Expected | Milestone: CalendarServer-3.0 Component: Calendar Server | Severity: Other Resolution: Software changed | Keywords: Radar: | ----------------------------------+----------------------------------------- Changes (by wsanchez@…): * milestone: Linux Port => CalendarServer-3.0 -- Ticket URL: <http://trac.calendarserver.org/ticket/328#comment:4> Calendar and Contacts Server </> HTTP/WebDAV/CalDAV Server
participants (2)
-
Calendar and Contacts Server
-
CalendarServer