Hello I've pushed 0.6.17, which fixes the Python 3.2.1 compat' and a few bugs. Thanks to the people involved in this release. If you have any issue with this release, or want to see a particular problem fixed in the next one, let me know Cheers Tarek -- Tarek Ziadé | http://ziade.org
Op 30-05-11 18:06, Tarek Ziadé schreef:
Hello
I've pushed 0.6.17, which fixes the Python 3.2.1 compat' and a few bugs. Thanks to the people involved in this release.
If you have any issue with this release, or want to see a particular problem fixed in the next one, let me know
When I try to use this in a Plone buildout, I cannot start my Zope instance anymore. Works fine when I revert to 0.6.16. This is with zc.buildout 1.4.3 or 1.4.4, Plone 3.3.5 (+python2.4) or Plone 4.0.6.1 (with python2.6). The buildout (created with either the plone3_buildout or plone4_buildout templates from ZopeSkel, or a client buildout that has worked fine for the past year) finished successfully. Starting the zope instance on the foreground fails with an ImportError; for example this one, but I have seen others: Traceback (most recent call last): File "/Users/mauritsvanrees/zopes/Zope-2.10.11-final-py2.4/lib/python/OFS/Application.py", line 709, in import_product product=__import__(pname, global_dict, global_dict, silly) File "/Users/mauritsvanrees/shared-eggs/Products.ATContentTypes-1.3.4-py2.4.egg/Products/ATContentTypes/__init__.py", line 64, in ? import Products.ATContentTypes.content File "/Users/mauritsvanrees/shared-eggs/Products.ATContentTypes-1.3.4-py2.4.egg/Products/ATContentTypes/content/__init__.py", line 26, in ? import Products.ATContentTypes.content.link File "/Users/mauritsvanrees/shared-eggs/Products.ATContentTypes-1.3.4-py2.4.egg/Products/ATContentTypes/content/link.py", line 39, in ? from Products.ATContentTypes.content.base import registerATCT File "/Users/mauritsvanrees/shared-eggs/Products.ATContentTypes-1.3.4-py2.4.egg/Products/ATContentTypes/content/base.py", line 63, in ? from Products.CMFPlone.PloneFolder import ReplaceableWrapper File "/Users/mauritsvanrees/shared-eggs/Plone-3.3.4-py2.4.egg/Products/CMFPlone/__init__.py", line 215, in ? from browser import ploneview File "/Users/mauritsvanrees/shared-eggs/Plone-3.3.4-py2.4.egg/Products/CMFPlone/browser/ploneview.py", line 12, in ? from Products.CMFPlone import utils ImportError: cannot import name utils When I go in with a pdb in this utils.py everything seems fine but then the import error just happens a bit further on, failing to import plone.app.layout. On Plone 4 an import of Shared.DC.ZRDB.Search fails. Again, with distribute 0.6.16 it works fine. This is on Mac OS X. Possibly I have strange ways of installing python, but it has worked fine so far. Can anyone else reproduce this? -- Maurits van Rees Web App Programmer at Zest Software: http://zestsoftware.nl Personal website: http://maurits.vanrees.org/
On Tue, May 31, 2011 at 11:50 AM, Maurits van Rees <m.van.rees@zestsoftware.nl> wrote: ...
ImportError: cannot import name utils
When I go in with a pdb in this utils.py everything seems fine but then the import error just happens a bit further on, failing to import plone.app.layout. On Plone 4 an import of Shared.DC.ZRDB.Search fails. Again, with distribute 0.6.16 it works fine.
This is on Mac OS X. Possibly I have strange ways of installing python, but it has worked fine so far. Can anyone else reproduce this?
Could you dump and compare sys.path in both cases ? thanks
-- Maurits van Rees Web App Programmer at Zest Software: http://zestsoftware.nl Personal website: http://maurits.vanrees.org/
_______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
-- Tarek Ziadé | http://ziade.org
Op 31-05-11 12:04, Tarek Ziadé schreef:
On Tue, May 31, 2011 at 11:50 AM, Maurits van Rees <m.van.rees@zestsoftware.nl> wrote: ....
ImportError: cannot import name utils
When I go in with a pdb in this utils.py everything seems fine but then the import error just happens a bit further on, failing to import plone.app.layout. On Plone 4 an import of Shared.DC.ZRDB.Search fails. Again, with distribute 0.6.16 it works fine.
This is on Mac OS X. Possibly I have strange ways of installing python, but it has worked fine so far. Can anyone else reproduce this?
Could you dump and compare sys.path in both cases ? thanks
The only difference in both bin/buildout and bin/instance is the distribute version. I will paste the scripts with 0.6.17 below for good measure (Plone 4 buildout in this case). bin/buildout: ====================================================================== #!/Users/mauritsvanrees/envs/py26/bin/python2.6 import sys sys.path[0:0] = [ '/Users/mauritsvanrees/shared-eggs/zc.buildout-1.4.4-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/distribute-0.6.17-py2.6.egg', ] import zc.buildout.buildout if __name__ == '__main__': zc.buildout.buildout.main() ====================================================================== bin/instance: ====================================================================== #!/Users/mauritsvanrees/envs/py26/bin/python2.6 import sys sys.path[0:0] = [ '/Users/mauritsvanrees/shared-eggs/Plone-4.0.6-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/plone.recipe.zope2instance-4.1.5-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/Zope2-2.12.18-py2.6-macosx-10.6-x86_64.egg', '/Users/mauritsvanrees/shared-eggs/zc.recipe.egg-1.2.2-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/mailinglogger-3.3.3-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/distribute-0.6.17-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zc.buildout-1.4.4-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.tales-3.4.0-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.tal-3.5.2-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.structuredtext-3.4.0-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.site-3.6.1-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.publisher-3.8.0-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.pagetemplate-3.5.2-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.location-3.6.0-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.interface-3.5.3-py2.6-macosx-10.6-x86_64.egg', '/Users/mauritsvanrees/shared-eggs/zope.i18nmessageid-3.5.3-py2.6-macosx-10.6-x86_64.egg', '/Users/mauritsvanrees/shared-eggs/zope.i18n-3.7.4-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.event-3.4.1-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.dottedname-3.4.6-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.deprecation-3.4.0-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.deferredimport-3.5.3-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.component-3.7.1-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.app.publication-3.8.1-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.app.locales-3.6.2-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.app.container-3.8.0-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/z3c.autoinclude-0.3.4-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/wicked-1.1.9-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/transaction-1.0.1-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/plonetheme.sunburst-1.0.6-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/plonetheme.classic-1.0.1-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/plone.portlet.static-2.0-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/plone.portlet.collection-2.0.2-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/plone.theme-2.0-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/plone.session-3.0.1-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/plone.protect-2.0-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/plone.portlets-2.0.2-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/plone.openid-2.0-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/plone.memoize-1.1.1-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/plone.locking-2.0.1-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/plone.intelligenttext-2.0.1-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/plone.indexer-1.0-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/plone.i18n-2.0-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/plone.fieldsets-2.0-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/plone.contentrules-2.0.1-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/plone.browserlayer-2.0.1-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/plone.app.workflow-2.0-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/plone.app.vocabularies-2.0.3-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/plone.app.viewletmanager-2.0.1-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/plone.app.upgrade-1.0.6-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/plone.app.users-1.0.4-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/plone.app.redirector-1.1.1-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/plone.app.portlets-2.0.4-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/plone.app.openid-2.0.1-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/plone.app.locales-4.0.7-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/plone.app.linkintegrity-1.3.2-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/plone.app.layout-2.0.9-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/plone.app.kss-1.6.2-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/plone.app.jquerytools-1.1.2-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/plone.app.iterate-2.1-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/plone.app.i18n-2.0-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/plone.app.form-2.0.2-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/plone.app.folder-1.0.3-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/plone.app.customerize-1.2.2-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/plone.app.controlpanel-2.0.6-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/plone.app.contentrules-2.0.6-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/plone.app.content-2.0.6-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/plone.app.contentmenu-2.0.2-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/plone.app.blob-1.5-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/kss.core-1.6.1-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/five.customerize-1.0-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/five.localsitemanager-2.0.4-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/borg.localrole-3.0.2-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/archetypes.referencebrowserwidget-2.4.1-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/archetypes.kss-1.6.0-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/ZODB3-3.9.5-py2.6-macosx-10.6-x86_64.egg', '/Users/mauritsvanrees/shared-eggs/Products.TinyMCE-1.1.10-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/Products.statusmessages-4.0-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/Products.ResourceRegistries-2.0.4-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/Products.PortalTransforms-2.0.5-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/Products.PluginRegistry-1.3b1-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/Products.PluggableAuthService-1.7.3-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/Products.PlonePAS-4.0.7-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/Products.PloneLanguageTool-3.0.8-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/Products.PlacelessTranslationService-2.0.2-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/Products.PasswordResetTool-2.0.5-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/Products.MimetypesRegistry-2.0.2-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/Products.GenericSetup-1.6.3-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/Products.ExternalEditor-1.0-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/Products.ExtendedPathIndex-2.9-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/Products.DCWorkflow-2.2.2-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/Products.CMFUid-2.2.1-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/Products.CMFQuickInstallerTool-3.0.5-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/Products.CMFPlacefulWorkflow-1.5.4-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/Products.CMFFormController-3.0.1-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/Products.CMFEditions-2.0.7-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/Products.CMFDynamicViewFTI-4.0.2-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/Products.CMFDiffTool-2.0-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/Products.CMFDefault-2.2.2-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/Products.CMFCore-2.2.4-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/Products.CMFCalendar-2.2.2-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/Products.CMFActionIcons-2.1.3-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/Products.ATContentTypes-2.0.7-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/Products.Archetypes-1.6.6-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/Products.kupu-1.4.17-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/ExtensionClass-2.13.2-py2.6-macosx-10.6-x86_64.egg', '/Users/mauritsvanrees/shared-eggs/DateTime-2.12.6-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/Acquisition-2.13.7-py2.6-macosx-10.6-x86_64.egg', '/Users/mauritsvanrees/shared-eggs/zope.app.schema-3.5.0-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.app.publisher-3.8.4-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.viewlet-3.6.1-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.traversing-3.7.1-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.testing-3.9.4-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.testbrowser-3.6.0a2-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.size-3.4.1-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.sequencesort-3.4.0-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.sendmail-3.5.3-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.security-3.7.4-py2.6-macosx-10.6-x86_64.egg', '/Users/mauritsvanrees/shared-eggs/zope.schema-3.5.4-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.proxy-3.6.1-py2.6-macosx-10.6-x86_64.egg', '/Users/mauritsvanrees/shared-eggs/zope.processlifetime-1.0-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.mkzeoinstance-3.9.4-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.lifecycleevent-3.6.2-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.exceptions-3.5.2-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.contenttype-3.4.3-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.contentprovider-3.5.0-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.container-3.8.2-py2.6-macosx-10.6-x86_64.egg', '/Users/mauritsvanrees/shared-eggs/zope.configuration-3.6.0-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zLOG-2.11.1-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zdaemon-2.0.4-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/tempstorage-2.11.3-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/pytz-2011e-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/initgroups-2.13.0-py2.6-macosx-10.6-x86_64.egg', '/Users/mauritsvanrees/shared-eggs/five.formlib-1.0.4-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/docutils-0.7-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/ZopeUndo-2.12.0-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/ZConfig-2.7.1-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/ThreadLock-2.13.0-py2.6-macosx-10.6-x86_64.egg', '/Users/mauritsvanrees/shared-eggs/RestrictedPython-3.5.2-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/Record-2.13.0-py2.6-macosx-10.6-x86_64.egg', '/Users/mauritsvanrees/shared-eggs/Products.ZSQLMethods-2.13.3-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/Persistence-2.13.2-py2.6-macosx-10.6-x86_64.egg', '/Users/mauritsvanrees/shared-eggs/MultiMapping-2.13.0-py2.6-macosx-10.6-x86_64.egg', '/Users/mauritsvanrees/shared-eggs/Missing-2.13.1-py2.6-macosx-10.6-x86_64.egg', '/Users/mauritsvanrees/shared-eggs/zope.annotation-3.5.0-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.browser-1.3-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.authentication-3.7.1-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.copy-3.5.0-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.error-3.6.0-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.dublincore-3.4.3-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.copypastemove-3.5.2-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.formlib-3.7.0-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/plone.keyring-2.0-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/python_openid-2.2.5-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.ramcache-1.0-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/Unidecode-0.04.1-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.componentvocabulary-1.0-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.app.form-3.8.1-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/Products.SecureMailHost-1.1.2-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/Products.contentmigration-2.0.1-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.app.component-3.8.3-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.app.cache-3.6.0-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/feedparser-4.1-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/Products.CMFPlone-4.0b1-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/plone.folder-1.0.1-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.cachedescriptors-3.5.1-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/plone.stringinterp-1.0.4-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/plone.scale-1.2-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/plone.app.imaging-1.0.5-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/archetypes.schemaextender-2.0.3-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.app.pagetemplate-3.7.1-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.app.folder-3.5.1-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.datetime-3.4.0-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zc.lockfile-1.0.0-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/elementtree-1.2.7_20070827_preview-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/Markdown-2.0.3-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/python_gettext-1.1.1-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/Products.PloneTestCase-0.9.12-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/Products.ZopeVersionControl-1.1.3-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/Products.validation-2.0-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/Products.ATReferenceBrowserWidget-3.0-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/Products.Marshall-2.0-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/Products.CMFTestCase-0.9.11-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.app.testing-3.7.3-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/mechanize-0.1.11-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/ClientForm-0.2.10-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.broken-3.6.0-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.filerepresentation-3.5.0-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.hookable-3.4.1-py2.6-macosx-10.6-x86_64.egg', '/Users/mauritsvanrees/shared-eggs/zope.app.basicskin-3.4.1-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.app.security-3.7.3-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.app.content-3.4.0-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.app.authentication-3.6.1-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/unittest2-0.5.1-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.password-3.5.1-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.app.dependable-3.4.0-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.app.debug-3.4.1-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.app.appsetup-3.11-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.securitypolicy-3.6.1-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.principalregistry-3.7.1-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.app.localpermission-3.7.2-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.app.interface-3.5.2-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.session-3.9.3-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zodbcode-3.4.0-py2.6.egg', '/Users/mauritsvanrees/shared-eggs/zope.minmax-1.1.2-py2.6.egg', ] import plone.recipe.zope2instance.ctl if __name__ == '__main__': plone.recipe.zope2instance.ctl.main( ["-C", '/Users/mauritsvanrees/tmp/p4/parts/instance/etc/zope.conf'] + sys.argv[1:]) ====================================================================== -- Maurits van Rees Web App Programmer at Zest Software: http://zestsoftware.nl Personal website: http://maurits.vanrees.org/
On Tue, May 31, 2011 at 12:29 PM, Maurits van Rees <m.van.rees@zestsoftware.nl> wrote:
Op 31-05-11 12:04, Tarek Ziadé schreef:
On Tue, May 31, 2011 at 11:50 AM, Maurits van Rees <m.van.rees@zestsoftware.nl> wrote: ....
ImportError: cannot import name utils
When I go in with a pdb in this utils.py everything seems fine but then the import error just happens a bit further on, failing to import plone.app.layout. On Plone 4 an import of Shared.DC.ZRDB.Search fails. Again, with distribute 0.6.16 it works fine.
This is on Mac OS X. Possibly I have strange ways of installing python, but it has worked fine so far. Can anyone else reproduce this?
Could you dump and compare sys.path in both cases ? thanks
The only difference in both bin/buildout and bin/instance is the distribute version. I will paste the scripts with 0.6.17 below for good measure (Plone 4 buildout in this case).
I was talking about the value of sys,path right before the import that fails to check if there's any difference besides the distribute version. The scripts you are showing are inserting entries in the beginning of sys.path Cheers Tarek -- Tarek Ziadé | http://ziade.org
Op 31-05-11 12:36, Tarek Ziadé schreef:
On Tue, May 31, 2011 at 12:29 PM, Maurits van Rees <m.van.rees@zestsoftware.nl> wrote:
Op 31-05-11 12:04, Tarek Ziadé schreef:
On Tue, May 31, 2011 at 11:50 AM, Maurits van Rees <m.van.rees@zestsoftware.nl> wrote: ....
ImportError: cannot import name utils
When I go in with a pdb in this utils.py everything seems fine but then the import error just happens a bit further on, failing to import plone.app.layout. On Plone 4 an import of Shared.DC.ZRDB.Search fails. Again, with distribute 0.6.16 it works fine.
This is on Mac OS X. Possibly I have strange ways of installing python, but it has worked fine so far. Can anyone else reproduce this?
Could you dump and compare sys.path in both cases ? thanks
The only difference in both bin/buildout and bin/instance is the distribute version. I will paste the scripts with 0.6.17 below for good measure (Plone 4 buildout in this case).
I was talking about the value of sys,path right before the import that fails to check if there's any difference besides the distribute version.
The scripts you are showing are inserting entries in the beginning of sys.path
Cheers Tarek
Ah, right. No, no differences in the sys.path except the distribute version. Here is the last part of the sys.path: '/Users/mauritsvanrees/shared-eggs/zope.minmax-1.1.2-py2.6.egg', '/Users/mauritsvanrees/tmp/p4/bin', '/Users/mauritsvanrees/envs/py26/lib/python2.6/site-packages/distribute-0.6.10-py2.6.egg', '/Users/mauritsvanrees/envs/py26/lib/python2.6/site-packages/pip-0.7.2-py2.6.egg', '/Users/mauritsvanrees/envs/py26/lib/python2.6/site-packages/PILwoTk-1.1.6.4-py2.6-macosx-10.6-x86_64.egg', '/Users/mauritsvanrees/envs/py26/lib/python26.zip', '/Users/mauritsvanrees/envs/py26/lib/python2.6', '/Users/mauritsvanrees/envs/py26/lib/python2.6/plat-darwin', '/Users/mauritsvanrees/envs/py26/lib/python2.6/plat-mac', '/Users/mauritsvanrees/envs/py26/lib/python2.6/plat-mac/lib-scriptpackages', '/Users/mauritsvanrees/envs/py26/lib/python2.6/lib-tk', '/Users/mauritsvanrees/envs/py26/lib/python2.6/lib-old', '/Users/mauritsvanrees/envs/py26/lib/python2.6/lib-dynload', '/Users/mauritsvanrees/buildout/python/parts/opt/lib/python2.6', '/Users/mauritsvanrees/buildout/python/parts/opt/lib/python2.6/plat-darwin', '/Users/mauritsvanrees/buildout/python/parts/opt/lib/python2.6/lib-tk', '/Users/mauritsvanrees/buildout/python/parts/opt/lib/python2.6/plat-mac', '/Users/mauritsvanrees/buildout/python/parts/opt/lib/python2.6/plat-mac/lib-scriptpackages', '/Users/mauritsvanrees/envs/py26/lib/python2.6/site-packages', '/Users/mauritsvanrees/envs/py26/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info', '/Users/mauritsvanrees/buildout/python/parts/opt/lib/python2.6/site-packages', '/Users/mauritsvanrees/envs/py26/lib/python26.zip', '/Users/mauritsvanrees/envs/py26/lib/python2.6/plat-darwin', '/Users/mauritsvanrees/envs/py26/lib/python2.6/plat-mac', '/Users/mauritsvanrees/envs/py26/lib/python2.6/plat-mac/lib-scriptpackages', '/Users/mauritsvanrees/envs/py26/lib/python2.6/lib-tk', '/Users/mauritsvanrees/envs/py26/lib/python2.6/lib-old', '/Users/mauritsvanrees/envs/py26/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info', '/Users/mauritsvanrees/envs/py26/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info'] -- Maurits van Rees Web App Programmer at Zest Software: http://zestsoftware.nl Personal website: http://maurits.vanrees.org/
I've seen the same issue in Mac OS X with namespace packages that are more than one level deep. 'zope.server' works fine, 'zope.app.server' (or any other 'zope.app.*') blows up. Works fine with distribute 0.6.16, blows up with 0.6.17. On Tue, May 31, 2011 at 4:04 AM, Tarek Ziadé <ziade.tarek@gmail.com> wrote:
On Tue, May 31, 2011 at 11:50 AM, Maurits van Rees <m.van.rees@zestsoftware.nl> wrote: ...
ImportError: cannot import name utils
When I go in with a pdb in this utils.py everything seems fine but then the import error just happens a bit further on, failing to import plone.app.layout. On Plone 4 an import of Shared.DC.ZRDB.Search fails. Again, with distribute 0.6.16 it works fine.
This is on Mac OS X. Possibly I have strange ways of installing python, but it has worked fine so far. Can anyone else reproduce this?
Could you dump and compare sys.path in both cases ? thanks
-- Jeff Shell
Aurélien has fixed the issue: https://bitbucket.org/tarek/distribute/changeset/191f38f47256 Could someone double-check by running the tip, that everything is now working fine ? I'll release 0.6.18 right after Thanks On Tue, May 31, 2011 at 9:40 PM, Jeff Shell <eucci.group@gmail.com> wrote:
I've seen the same issue in Mac OS X with namespace packages that are more than one level deep. 'zope.server' works fine, 'zope.app.server' (or any other 'zope.app.*') blows up. Works fine with distribute 0.6.16, blows up with 0.6.17.
On Tue, May 31, 2011 at 4:04 AM, Tarek Ziadé <ziade.tarek@gmail.com> wrote:
On Tue, May 31, 2011 at 11:50 AM, Maurits van Rees <m.van.rees@zestsoftware.nl> wrote: ...
ImportError: cannot import name utils
When I go in with a pdb in this utils.py everything seems fine but then the import error just happens a bit further on, failing to import plone.app.layout. On Plone 4 an import of Shared.DC.ZRDB.Search fails. Again, with distribute 0.6.16 it works fine.
This is on Mac OS X. Possibly I have strange ways of installing python, but it has worked fine so far. Can anyone else reproduce this?
Could you dump and compare sys.path in both cases ? thanks
-- Jeff Shell
-- Tarek Ziadé | http://ziade.org
Op 01-06-11 10:27, Tarek Ziadé schreef:
Aurélien has fixed the issue: https://bitbucket.org/tarek/distribute/changeset/191f38f47256
Could someone double-check by running the tip, that everything is now working fine ?
I'll release 0.6.18 right after
Yes, this works now for me. Thank you both! -- Maurits van Rees Web App Programmer at Zest Software: http://zestsoftware.nl Personal website: http://maurits.vanrees.org/
On Wed, Jun 1, 2011 at 12:01 PM, Maurits van Rees <m.van.rees@zestsoftware.nl> wrote:
Op 01-06-11 10:27, Tarek Ziadé schreef:
Aurélien has fixed the issue: https://bitbucket.org/tarek/distribute/changeset/191f38f47256
Could someone double-check by running the tip, that everything is now working fine ?
I'll release 0.6.18 right after
Yes, this works now for me. Thank you both!
0.6.18 is released. Thanks to all for the tests, and to Aurélien for the fix. Cheers Tarek -- Tarek Ziadé | http://ziade.org
On 5/31/2011 5:50 AM, Maurits van Rees wrote:
When I go in with a pdb in this utils.py everything seems fine but then the import error just happens a bit further on, failing to import plone.app.layout. On Plone 4 an import of Shared.DC.ZRDB.Search fails. Again, with distribute 0.6.16 it works fine.
This is on Mac OS X. Possibly I have strange ways of installing python, but it has worked fine so far. Can anyone else reproduce this?
I had this same error (on import of Shared.DC.ZRDB.Search) with 0.6.17 and Plone 4.1rc2. Reverting to 0.6.16 fixed that problem (although I had upgraded to 0.6.17 in an effort to fix a seemingly unrelated issue). This is on Fedora 8. Eric.
On Tue, May 31, 2011 at 12:33 PM, Eric Smith <eric@trueblade.com> wrote:
On 5/31/2011 5:50 AM, Maurits van Rees wrote:
When I go in with a pdb in this utils.py everything seems fine but then the import error just happens a bit further on, failing to import plone.app.layout. On Plone 4 an import of Shared.DC.ZRDB.Search fails. Again, with distribute 0.6.16 it works fine.
This is on Mac OS X. Possibly I have strange ways of installing python, but it has worked fine so far. Can anyone else reproduce this?
I had this same error (on import of Shared.DC.ZRDB.Search) with 0.6.17 and Plone 4.1rc2. Reverting to 0.6.16 fixed that problem (although I had upgraded to 0.6.17 in an effort to fix a seemingly unrelated issue).
This is on Fedora 8.
I added a bug here: https://bitbucket.org/tarek/distribute/issue/210
Eric. _______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
-- Tarek Ziadé | http://ziade.org
I think this regression could be related to this change: https://bitbucket.org/tarek/distribute/changeset/a3f0d30e94c2 Would you mind trying to revert this change in your environment to see if the problem goes away ? Thanks On Tue, May 31, 2011 at 12:40 PM, Tarek Ziadé <ziade.tarek@gmail.com> wrote:
On Tue, May 31, 2011 at 12:33 PM, Eric Smith <eric@trueblade.com> wrote:
On 5/31/2011 5:50 AM, Maurits van Rees wrote:
When I go in with a pdb in this utils.py everything seems fine but then the import error just happens a bit further on, failing to import plone.app.layout. On Plone 4 an import of Shared.DC.ZRDB.Search fails. Again, with distribute 0.6.16 it works fine.
This is on Mac OS X. Possibly I have strange ways of installing python, but it has worked fine so far. Can anyone else reproduce this?
I had this same error (on import of Shared.DC.ZRDB.Search) with 0.6.17 and Plone 4.1rc2. Reverting to 0.6.16 fixed that problem (although I had upgraded to 0.6.17 in an effort to fix a seemingly unrelated issue).
This is on Fedora 8.
I added a bug here: https://bitbucket.org/tarek/distribute/issue/210
Eric. _______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
-- Tarek Ziadé | http://ziade.org
-- Tarek Ziadé | http://ziade.org
Op 31-05-11 12:43, Tarek Ziadé schreef:
I think this regression could be related to this change:
https://bitbucket.org/tarek/distribute/changeset/a3f0d30e94c2
Would you mind trying to revert this change in your environment to see if the problem goes away ?
Bingo: going back to the revision before this changeset solves it for me. -- Maurits van Rees Web App Programmer at Zest Software: http://zestsoftware.nl Personal website: http://maurits.vanrees.org/
On Tue, May 31, 2011 at 1:43 PM, Maurits van Rees <m.van.rees@zestsoftware.nl> wrote:
Op 31-05-11 12:43, Tarek Ziadé schreef:
I think this regression could be related to this change:
https://bitbucket.org/tarek/distribute/changeset/a3f0d30e94c2
Would you mind trying to revert this change in your environment to see if the problem goes away ?
Bingo: going back to the revision before this changeset solves it for me.
Alright, I've asked Aurelien to look at this, so his bugfix does not do this. We will push the next version asap
-- Maurits van Rees Web App Programmer at Zest Software: http://zestsoftware.nl Personal website: http://maurits.vanrees.org/
_______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
-- Tarek Ziadé | http://ziade.org
Op 31-05-11 13:46, Tarek Ziadé schreef:
On Tue, May 31, 2011 at 1:43 PM, Maurits van Rees <m.van.rees@zestsoftware.nl> wrote:
Op 31-05-11 12:43, Tarek Ziadé schreef:
I think this regression could be related to this change:
https://bitbucket.org/tarek/distribute/changeset/a3f0d30e94c2
Would you mind trying to revert this change in your environment to see if the problem goes away ?
Bingo: going back to the revision before this changeset solves it for me.
Alright, I've asked Aurelien to look at this, so his bugfix does not do this.
We will push the next version asap
Thanks for the quick follow-up. -- Maurits van Rees Web App Programmer at Zest Software: http://zestsoftware.nl Personal website: http://maurits.vanrees.org/
On 5/31/2011 7:43 AM, Maurits van Rees wrote:
Op 31-05-11 12:43, Tarek Ziadé schreef:
I think this regression could be related to this change:
https://bitbucket.org/tarek/distribute/changeset/a3f0d30e94c2
Would you mind trying to revert this change in your environment to see if the problem goes away ?
Bingo: going back to the revision before this changeset solves it for me.
Same here: reverting that change fixes the problem with importing Shared.DC.ZRDB.Search.
participants (4)
-
Eric Smith
-
Jeff Shell
-
Maurits van Rees
-
Tarek Ziadé