Comment 1 for bug 600259

Revision history for this message
Tres Seaver (tseaver) wrote : Re: [Bug 600259] [NEW] Attempt to add Plone site causes "ImportError: No module named importCachingPolicyManager" in _uno_import if "python-uno" is installed

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

kleist wrote:
> Public bug reported:
>
> This bug was originally reported in
> http://dev.plone.org/plone/ticket/10693 .
>
> Version 4.0b4, installed from the unified installer, with no products at
> all yet.
>
> When adding the first Plone site, I get:
> {{{
> 2010-06-25 10:33:00 ERROR Zope.SiteErrorLog
> 1277472780.530.230225306014 http://localhost:8080/@@plone-addsite
> Traceback (innermost last):
> Module ZPublisher.Publish, line 127, in publish
> Module ZPublisher.mapply, line 77, in mapply
> Module ZPublisher.Publish, line 47, in call_object
> Module Products.CMFPlone.browser.admin, line 186, in __call__
> Module Products.CMFPlone.factory, line 81, in addPloneSite
> Module Products.GenericSetup.tool, line 330, in
> runAllImportStepsFromProfile
> - __traceback_info__: profile-Products.CMFPlone:plone
> Module Products.GenericSetup.tool, line 1078, in
> _runImportStepsFromContext
> Module Products.GenericSetup.tool, line 252, in getSortedImportSteps
> Module Products.GenericSetup.tool, line 261, in
> getImportStepMetadata
> Module Products.GenericSetup.registry, line 257, in getStepMetadata
> Module Products.GenericSetup.utils, line 105, in _resolveDottedName
> - __traceback_info__:
> Products.CMFCore.exportimport.cachingpolicymgr.importCachingPolicyManager
> Module uno, line 262, in _uno_import
> ImportError: No module named importCachingPolicyManager
> }}}
>
> The only place I know of for uno to get involved is Product.PortalTransforms, but the word_to_html.py code says:
> {{{
> # disable office_uno because it doesn't support multithread yet
> ENABLE_UNO = False
> ...
> try:
> if ENABLE_UNO:
> from office_uno import document
> else:
> raise
> except:
> from office_wvware import document
> }}}
>
> so even that shouldn't cause uno to be loaded. Removing python-uno
> avoids the problem with Plone, but breaks some functionality in
> OpenOffice.

 status invalid

This cannot possibly be a bug in CMF: there is no dependency anywhere
on UNO in the software. The traceback has to be coming from some broken
value in the original poster's Plone profile data.

Tres.
- --
===================================================================
Tres Seaver +1 540-429-0999 <email address hidden>
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkwrbI8ACgkQ+gerLs4ltQ6LUACgmtCuTMkNsteCQRqb/g1V03j4
+IkAoM8gTbYhusrjjua10Q9LJ5mDPxlJ
=NmMB
-----END PGP SIGNATURE-----