[Setup] Plone 2.5 install error on WinXP

Marshall Schor schor at us.ibm.com
Mon Jul 3 19:15:45 UTC 2006


Downloaded from plone.org - Plone-2.5-with-Zope-2.9.exe  The install failed 
many times.  I got farther when I took an older (2003) PYTHON out of my 
system PATH.  It ended up failing with an Index Error out of Range.  I saw a 
similar post which suggested changing one line in the python file to

for ext, mt in [(x, y) for x, y in pymimetypes.types_map.items() if x]:

When I did this, it got a bit farther, before failing with:

Execuing the command 'setupSite.py' failed

AttributeError: 'NoneType' object has no attribute 'binary'

The log shows:

07/03/06 14:47:41: 936: ['C:\\Apps\\Plone 2\\Zope\\bin\\mkzopeinstance.py', 
'-d', 'C:\\Apps\\Plone 2\\Data', '-u', 'mischor:wdy94w0o9h3']
File not changed 'C:\\Apps\\Plone 2\\Data\\.\\bin\\runzope.bat'
File not changed 'C:\\Apps\\Plone 2\\Data\\.\\bin\\runzope'
Changed mode for C:\Apps\Plone 2\Data\.\bin\runzope to 777
File not changed 'C:\\Apps\\Plone 2\\Data\\.\\bin\\zopectl'
Changed mode for C:\Apps\Plone 2\Data\.\bin\zopectl to 777
File not changed 'C:\\Apps\\Plone 2\\Data\\.\\bin\\zopeservice.py'
Changed mode for C:\Apps\Plone 2\Data\.\bin\zopeservice.py to 777
Not overwriting existing file 'C:\\Apps\\Plone 2\\Data\\.\\etc\\plone.conf'
Not overwriting existing file 'C:\\Apps\\Plone 2\\Data\\.\\etc\\zope.conf'
Not overwriting existing file 'C:\\Apps\\Plone 
2\\Data\\.\\lib\\python\\README.txt'
07/03/06 14:47:42: 936: finished
07/03/06 14:47:42: 3064: ['C:\\Apps\\Plone 2\\Data\\bin\\zopeservice.py', 
'--startup', 'auto', 'install']
Installing service Zope_-1180303007
Changing service configuration
Service updated
07/03/06 14:47:43: 3064: finished
07/03/06 14:47:43: 3844: ['C:\\Apps\\Plone 
2\\Data\\Products\\CMFPlone\\Extensions\\setupSite.py', 'mischor', 
'C:\\Apps\\Plone 2\\Data', 'C:\\Apps\\Plone 2\\Data']
C:\Apps\Plone 2\Data\Products\CMFPlone\Extensions\setupSite.py:17: 
DeprecationWarning: The Zope package has been renamed to Zope2. Import of a 
package named 'Zope' is deprecated and will be disabled starting in Zope 
2.11.
  import Zope
2006-07-03 14:47:50 WARNING Init Class 
Products.ATContentTypes.content.base.ATCTFolderMixin has a security 
declaration for nonexistent method 'manage_copyObjects'
2006-07-03 14:47:51 WARNING Plone Deprecation Warning
The CMFPlone.MemberData class will be removed in Plone 3.0
C:\Apps\Plone 2\Data\Products\CMFSquidTool\Permissions.py:19: 
DeprecationWarning: The module, 'Products.CMFCore.CMFCorePermissions' is a 
deprecated compatiblity alias for 'Products.CMFCore.permissions';  please 
use the new module instead.
  from Products.CMFCore.CMFCorePermissions import ManagePortal
2006-07-03 14:47:53 WARNING Plone Deprecation Warning
CustomizationPolicies are deprecated and will be removed in Plone 3.0. 
Please use GenericSetup extension profiles instead.
2006-07-03 14:47:53 WARNING Plone Deprecation Warning
registerSetupWidget is deprecated and will be removed in Plone 3.0.
2006-07-03 14:47:53 WARNING Plone Deprecation Warning
registerSetupWidget is deprecated and will be removed in Plone 3.0.
2006-07-03 14:47:54 WARNING Plone Deprecation Warning
CustomizationPolicies are deprecated and will be removed in Plone 3.0. 
Please use GenericSetup extension profiles instead.
C:\Apps\Plone 2\Data\Products\CMFSquidTool\__init__.py:38: 
DeprecationWarning: The product_name parameter of ToolInit is deprecated and 
will be ignored in CMF 2.0: CMFSquidTool
  icon="tool.gif",
C:\Apps\Plone 2\Data\Products\CacheSetup\config.py:23: DeprecationWarning: 
The zLOG package is deprecated and will be removed in Zope 2.11. Use the 
Python logging module instead.
  LOG(PROJECT_NAME, INFO, msg)
C:\Apps\Plone 2\Zope\lib\python\OFS\Application.py:835: DeprecationWarning: 
__init__.py of Products.ExternalEditor has a long deprecated 'methods' 
attribute. 'methods' will be ignored by install_product in Zope 2.10. Please 
use registerClass instead.
  DeprecationWarning)
C:\Apps\Plone 2\Data\Products\MemcachedManager\__init__.py:8: 
DeprecationWarning: The zLOG package is deprecated and will be removed in 
Zope 2.11. Use the Python logging module instead.
  LOG('MemcachedManager', log_level, summary, text)
C:\Apps\Plone 2\Data\Products\kupu\plone\__init__.py:32: DeprecationWarning: 
The product_name parameter of ToolInit is deprecated and will be ignored in 
CMF 2.0: kupu
  icon="kupu_icon.gif",
2006-07-03 14:48:01 WARNING Plone Deprecation Warning
correctFolderContentsAction is deprecated and will be removed in Plone 3.0
2006-07-03 14:48:01 WARNING Plone Deprecation Warning
CatalogTool._initIndexes is deprecated, please use a GenericSetup profile 
instead.
C:\Apps\Plone 2\Zope\lib\python\OFS\subscribers.py:74: DeprecationWarning: 
Products.CMFPlone.QuickInstallerTool.QuickInstallerTool.manage_afterAdd is 
deprecated and will be removed in Zope 2.11, you should use event 
subscribers instead, and meanwhile mark the class with 
<five:deprecatedManageAddDelete/>
  DeprecationWarning)
C:\Apps\Plone 2\Zope\lib\python\OFS\subscribers.py:74: DeprecationWarning: 
Products.PluggableAuthService.PluggableAuthService.PluggableAuthService.manage_afterAdd 
is deprecated and will be removed in Zope 2.11, you should use event 
subscribers instead, and meanwhile mark the class with 
<five:deprecatedManageAddDelete/>
  DeprecationWarning)
C:\Apps\Plone 2\Data\Products\PluggableAuthService\plugins\BasePlugin.py:71: 
DeprecationWarning: isImplementedBy has been renamed to providedBy
  return interface.isImplementedBy( self )
C:\Apps\Plone 2\Zope\lib\python\OFS\subscribers.py:74: DeprecationWarning: 
Products.PlonePAS.plugins.cookie_handler.ExtendedCookieAuthHelper.manage_afterAdd 
is deprecated and will be removed in Zope 2.11, you should use event 
subscribers instead, and meanwhile mark the class with 
<five:deprecatedManageAddDelete/>
  DeprecationWarning)
C:\Apps\Plone 2\Zope\lib\python\OFS\subscribers.py:74: DeprecationWarning: 
Products.PlonePAS.plugins.role.GroupAwareRoleManager.manage_afterAdd is 
deprecated and will be removed in Zope 2.11, you should use event 
subscribers instead, and meanwhile mark the class with 
<five:deprecatedManageAddDelete/>
  DeprecationWarning)
C:\Apps\Plone 2\Zope\lib\python\OFS\subscribers.py:74: DeprecationWarning: 
Products.PluggableAuthService.plugins.ZODBRoleManager.ZODBRoleManager.manage_afterAdd 
is deprecated and will be removed in Zope 2.11, you should use event 
subscribers instead, and meanwhile mark the class with 
<five:deprecatedManageAddDelete/>
  DeprecationWarning)
C:\Apps\Plone 2\Zope\lib\python\OFS\subscribers.py:74: DeprecationWarning: 
Products.kupu.plone.plonelibrarytool.PloneKupuLibraryTool.manage_afterAdd is 
deprecated and will be removed in Zope 2.11, you should use event 
subscribers instead, and meanwhile mark the class with 
<five:deprecatedManageAddDelete/>
  DeprecationWarning)
Traceback (most recent call last):
  File "C:\Apps\Plone 2\Zope\pwi\inno_runner.py", line 30, in ?
    execfile(sys.argv[0])
  File "C:\Apps\Plone 2\Data\Products\CMFPlone\Extensions\setupSite.py", 
line 54, in ?
    process(name, swhome, ihome)
  File "C:\Apps\Plone 2\Data\Products\CMFPlone\Extensions\setupSite.py", 
line 31, in process
    out = create(app, admin_username)
  File "C:\Apps\Plone 2\Data\Products\CMFPlone\PloneInitialize.py", line 59, 
in create
    factory.addPloneSite(pid, create_userfolder=1)
  File "C:\Apps\Plone 2\Data\Products\CMFPlone\factory.py", line 44, in 
addPloneSite
    setup_tool.runAllImportSteps()
  File "C:\Apps\Plone 2\Data\Products\GenericSetup\tool.py", line 251, in 
runAllImportSteps
    message = self._doRunImportStep(step, context)
  File "C:\Apps\Plone 2\Data\Products\GenericSetup\tool.py", line 725, in 
_doRunImportStep
    return handler(context)
  File "C:\Apps\Plone 2\Data\Products\CMFCore\exportimport\content.py", line 
44, in importSiteStructure
    IFilesystemImporter(context.getSite()).import_(context, 'structure', 
True)
  File "C:\Apps\Plone 2\Data\Products\CMFCore\exportimport\content.py", line 
174, in import_
    subdir, import_context)
  File "C:\Apps\Plone 2\Data\Products\CMFCore\exportimport\content.py", line 
210, in _makeInstance
    content.setDescription(description)
  File "C:\Apps\Plone 2\Data\Products\Archetypes\BaseFolder.py", line 269, 
in setDescription
    self.getField('description').set(self, value, **kwargs)
  File "C:\Apps\Plone 2\Data\Products\Archetypes\Field.py", line 1004, in 
set
    instance=instance,
  File "C:\Apps\Plone 2\Data\Products\Archetypes\Field.py", line 1238, in 
_process_input
    d, f, mimetype = mtr(body, **kw)
  File "C:\Apps\Plone 
2\Data\Products\MimetypesRegistry\MimeTypesRegistry.py", line 372, in 
__call__
    if not mt.binary and not type(data) is UnicodeType:
AttributeError: 'NoneType' object has no attribute 'binary'
07/03/06 14:49:12: 3844: finished

I saw a suggestion to remove a "blank" mime-type in the regiestry.  I 
scanned the registry using the search arg mimetype and "mime type" (without 
the quotes), and didn't see any "blank" mime-types.  If there is something 
we can fix in the registry, please post more detailed instructions on what 
to look for and do to find and fix it.

Any other suggestions appreciated.

-Marshall Schor 







More information about the Setup mailing list