• Listen Dev

  • listen installation error

    from Adamkó Péter on Jan 17, 2008 10:26 AM
    Hi!
    
    I am running Zope 2.9.8 with plone 2.5.5.
    I wanted to try out listen, so I installed the product (and its 
    dependencies) according to this tutorial:
    http://www.openplans.org/projects/listen/alternative-instructions-without-using-the-zopebuilder
    I have Five 1.4.4 installed because of the Plone4ArtistVideo product and 
    pyhton 2.4.2.
    
    When I start Zope, I run into the following two errors:
    What these error messages are caused by?
    
    2008-01-17 15:39:16 ERROR Zope Could not import Products.listen
    Traceback (most recent call last):
      File "/opt/zope2.9.8/lib/python/OFS/Application.py", line 708, in 
    import_product
        product=__import__(pname, global_dict, global_dict, silly)
      File "/var/opt/zope2.9.8/default/Products/listen/__init__.py", line 
    11, in ?
        import content
      File "/var/opt/zope2.9.8/default/Products/listen/content/__init__.py", 
    line 1, in ?
        from mailinglist import MailingList, addMailingList
      File 
    "/var/opt/zope2.9.8/default/Products/listen/content/mailinglist.py", 
    line 46, in ?
        from Products.listen.lib.browser_utils import encode
      File 
    "/var/opt/zope2.9.8/default/Products/listen/lib/browser_utils.py", line 
    7, in ?
        from Products.listen.lib.common import lookup_member_id
      File "/var/opt/zope2.9.8/default/Products/listen/lib/common.py", line 
    11, in ?
        from plone.mail import encode_header
    ImportError: No module named mail
    
    2008-01-17 15:39:33 ERROR Zope Couldn't install listen
    Traceback (most recent call last):
      File "/opt/zope2.9.8/lib/python/OFS/Application.py", line 755, in 
    install_product
        global_dict, global_dict, silly)
      File "/var/opt/zope2.9.8/default/Products/listen/__init__.py", line 
    11, in ?
        import content
      File "/var/opt/zope2.9.8/default/Products/listen/content/__init__.py", 
    line 1, in ?
        from mailinglist import MailingList, addMailingList
      File 
    "/var/opt/zope2.9.8/default/Products/listen/content/mailinglist.py", 
    line 45, in ?
        from Products.listen import permissions, config
    ImportError: cannot import name permissions
    
    
    Thanks,
    
    Peter
    
    
    
    Thread Outline:
  • Re: listen installation error

    from Joerg Baach on Jan 17, 2008 10:35 AM
    Hi Adamko,
    
    > ImportError: No module named mail
    
    You will need to install plone.mail and plone.app.form from the plone
    collective. I think you can either install them globally or in your
    sites lib/python.
    
    Cheers,
    
      Joerg
    
    
    
    • Re: listen installation error

      from Adamkó Péter on Jan 17, 2008 01:10 PM
      Thanks for the quick reply!
      
      I thought there is a problem with them...
      Now I have run the setup script in both of them, (maybe the tutorial 
      should contain that it isn't enough to put them into the Product libary)
      so in the Control Panel/Product there is listen, and I also could change 
      the site property to listen, and i could add the
      
      "Various listen Settings" at portal_setup/Import.
      
      However when I try to add a mailing list from plone interface, it generates the following error:
      
      2008-01-17T19:04:25 ERROR Zope.SiteErrorLog http://kfarkas.iit.bme.hu:8080/beam-
      im/mailinglist.2008-01-17.0641097698/@@edit
      Traceback (innermost last):
        Module ZPublisher.Publish, line 115, in publish
        Module ZPublisher.mapply, line 88, in mapply
        Module ZPublisher.Publish, line 41, in call_object
        Module zope.formlib.form, line 770, in __call__
        Module zope.formlib.form, line 764, in render
        Module plone.app.form._named, line 71, in __call__
        Module Shared.DC.Scripts.Bindings, line 311, in __call__
        Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
        Module Products.PageTemplates.PageTemplateFile, line 113, in _exec
        Module Products.PageTemplates.PageTemplate, line 104, in pt_render
         - <ImplicitAcquirerWrapper object at 0xb26c7f2c>
        Module TAL.TALInterpreter, line 238, in __call__
        Module TAL.TALInterpreter, line 281, in interpret
        Module TAL.TALInterpreter, line 749, in do_useMacro
        Module TAL.TALInterpreter, line 281, in interpret
        Module TAL.TALInterpreter, line 457, in do_optTag_tal
        Module TAL.TALInterpreter, line 442, in do_optTag
        Module TAL.TALInterpreter, line 437, in no_tag
        Module TAL.TALInterpreter, line 281, in interpret
        Module TAL.TALInterpreter, line 749, in do_useMacro
        Module TAL.TALInterpreter, line 281, in interpret
        Module TAL.TALInterpreter, line 457, in do_optTag_tal
        Module TAL.TALInterpreter, line 442, in do_optTag
        Module TAL.TALInterpreter, line 437, in no_tag
        Module TAL.TALInterpreter, line 281, in interpret
        Module TAL.TALInterpreter, line 780, in do_defineSlot
        Module TAL.TALInterpreter, line 281, in interpret
        Module TAL.TALInterpreter, line 715, in do_condition
        Module TAL.TALInterpreter, line 281, in interpret
        Module TAL.TALInterpreter, line 780, in do_defineSlot
        Module TAL.TALInterpreter, line 281, in interpret
        Module TAL.TALInterpreter, line 457, in do_optTag_tal
        Module TAL.TALInterpreter, line 442, in do_optTag
        Module TAL.TALInterpreter, line 437, in no_tag
        Module TAL.TALInterpreter, line 281, in interpret
        Module TAL.TALInterpreter, line 749, in do_useMacro
        Module TAL.TALInterpreter, line 281, in interpret
        Module TAL.TALInterpreter, line 715, in do_condition
        Module TAL.TALInterpreter, line 281, in interpret
        Module TAL.TALInterpreter, line 457, in do_optTag_tal
        Module TAL.TALInterpreter, line 442, in do_optTag
        Module TAL.TALInterpreter, line 437, in no_tag
        Module TAL.TALInterpreter, line 281, in interpret
        Module TAL.TALInterpreter, line 691, in do_loop_tal
        Module TAL.TALInterpreter, line 281, in interpret
        Module TAL.TALInterpreter, line 457, in do_optTag_tal
        Module TAL.TALInterpreter, line 442, in do_optTag
        Module TAL.TALInterpreter, line 437, in no_tag
        Module TAL.TALInterpreter, line 281, in interpret
        Module TAL.TALInterpreter, line 457, in do_optTag_tal
        Module TAL.TALInterpreter, line 442, in do_optTag
        Module TAL.TALInterpreter, line 437, in no_tag
        Module TAL.TALInterpreter, line 281, in interpret
        Module TAL.TALInterpreter, line 715, in do_condition
        Module TAL.TALInterpreter, line 281, in interpret
        Module TAL.TALInterpreter, line 457, in do_optTag_tal
        Module TAL.TALInterpreter, line 442, in do_optTag
        Module TAL.TALInterpreter, line 437, in no_tag
        Module TAL.TALInterpreter, line 281, in interpret
        Module TAL.TALInterpreter, line 749, in do_useMacro
        Module TAL.TALInterpreter, line 281, in interpret
        Module TAL.TALInterpreter, line 455, in do_optTag_tal
        Module TAL.TALInterpreter, line 437, in no_tag
        Module TAL.TALInterpreter, line 281, in interpret
        Module TAL.TALInterpreter, line 715, in do_condition
        Module TAL.TALInterpreter, line 281, in interpret
        Module TAL.TALInterpreter, line 356, in do_startTag
        Module Products.PlacelessTranslationService.FasterStringIO, line 119, in write
        Module ZPublisher.HTTPResponse, line 454, in _encode_unicode
        Module encodings.iso8859_15, line 18, in encode
      UnicodeEncodeError: 'charmap' codec can't encode character u'\u0151' in position
       199: character maps to <undefined>
      
      However the mailing list is added as if it doesn't have a name and all 
      buttons work except the edit button.
      
      Peter
      
      
      Joerg Baach wrote:
      
      >Hi Adamko,
      >
      >  
      >
      >>ImportError: No module named mail
      >>    
      >>
      >
      >You will need to install plone.mail and plone.app.form from the plone
      >collective. I think you can either install them globally or in your
      >sites lib/python.
      >
      >Cheers,
      >
      >  Joerg
      >
      >  
      >