Problem starting Mailmanager

Help
senacle
2006-06-02
2013-06-04
  • senacle

    senacle - 2006-06-02

    I've installed all in the Products folder.
    I start Zope.
    But the products Mailmanager is broken with the followig message :

    Import Traceback

    Traceback (most recent call last):
      File "X:\Program Files\Zope-2.8.1-final\lib\python\OFS\Application.py", line 695, in import_product
        product=__import__(pname, global_dict, global_dict, silly)
      File "X:\Zope-Instance\Products\MailManager\__init__.py", line 10, in ?
        import MailManager, MMUserFolder
      File "X:\Zope-Instance\Products\MailManager\MailManager.py", line 20, in ?
        from MailMixin import MailMixin
      File "X:\Zope-Instance\Products\MailManager\MailMixin.py", line 59, in ?
        from Products.MailManager.support.html2text import html2text
    ImportError: No module named support.html2text

    I don't understand why.
    The file html2text.py is OK, folders also.

     
    • Kevin Campbell

      Kevin Campbell - 2006-06-02

      The issue is to do with the import statement not prefixing with Products.MailManager. What version of MailManager is this you are using? I would recommend upgrading to the latest and trying again and seeing if that resolves it. Please let me know how you get on.

      Regards,
      Kevin

       
    • senacle

      senacle - 2006-06-02

      I have already change with not prefixing with Products.Mailmanager --> same error.

      When i copy the file html2text.py in the folder Mailmanager and change the import to "from html2text import html2text", it's OK.
      But i think it's not good.

      I have installed the latest version 2.0.10

       
    • senacle

      senacle - 2006-06-02

      Other problems :

      from Products.MailManager.support.html2text import html2text

      KO for MailMixin, MailManager

      So, i copy html2text.py in the MailManager folder and change MailMixin.py and MailManager.py with "from html2text import html2text".

      ---> OK

      Other problem :

      Traceback (most recent call last):
        File "X:\Program Files\Zope-2.8.1-final\lib\python\OFS\Application.py", line 695, in import_product
          product=__import__(pname, global_dict, global_dict, silly)
        File "X:\Zope-Instance\Products\MailManager\__init__.py", line 10, in ?
          import MailManager, MMUserFolder
        File "X:\Zope-Instance\Products\MailManager\MailManager.py", line 76, in ?
          from tests.classes.mmtestdata import TestDataMixin
      ImportError: No module named classes.mmtestdata

      i copy mmtestdata.py in the MailManager folder and change MailManager.py with "from mmtestdata import mmtestdata".

      It seems good know.

      But is it not a bug ?

       
    • senacle

      senacle - 2006-06-04

      I've installed Zope 2.8.6.

      Know, new problems :

      Traceback (most recent call last):
        File "I:\Zope\lib\python\OFS\Application.py", line 698, in import_product
          product=__import__(pname, global_dict, global_dict, silly)
        File "I:\Zope-Instance\Products\MailManager\__init__.py", line 10, in ?
          import MailManager, MMUserFolder
        File "I:\Zope-Instance\Products\MailManager\MailManager.py", line 71, in ?
          import mx.DateTime
      ImportError: No module named mx.DateTime

      So, i change MailManager.py with "import Products.mx.DateTime"

      Next problem :

      Traceback (most recent call last):
        File "I:\Zope\lib\python\OFS\Application.py", line 698, in import_product
          product=__import__(pname, global_dict, global_dict, silly)
        File "I:\Zope-Instance\Products\MailManager\__init__.py", line 10, in ?
          import MailManager, MMUserFolder
        File "I:\Zope-Instance\Products\MailManager\MailManager.py", line 71, in ?
          import Products.mx.DateTime
        File "I:\Zope-Instance\Products\mx\DateTime\__init__.py", line 12, in ?
          from mx.Misc import LazyModule
      ImportError: No module named mx.Misc

      So, i change __init__.py with "from Products.mx.Misc import LazyModule"

      Next problem :

      Traceback (most recent call last):
        File "I:\Zope\lib\python\OFS\Application.py", line 698, in import_product
          product=__import__(pname, global_dict, global_dict, silly)
        File "I:\Zope-Instance\Products\MailManager\__init__.py", line 10, in ?
          import MailManager, MMUserFolder
        File "I:\Zope-Instance\Products\MailManager\MailManager.py", line 71, in ?
          import Products.mx.DateTime
        File "I:\Zope-Instance\Products\mx\DateTime\__init__.py", line 40, in ?
          class modinit:
        File "I:\Zope-Instance\Products\mx\DateTime\__init__.py", line 50, in modinit
          _DT)
        File "I:\Zope\bin\lib\copy_reg.py", line 16, in pickle
          raise TypeError("copy_reg is not intended for use with classes")
      TypeError: copy_reg is not intended for use with classes

      Here, i don't know what to do.

      It's strange that form some "import xxxx.yyy" and "from zzz.ttt.uuu import aaa" it's working fine and for others i need to put "Products."

      I don't understand.

       
      • Kevin Campbell

        Kevin Campbell - 2006-06-04

        mx.DateTime should not be stored in the Products folder, it is not a Zope product. Instead, the setup.py script contained within it should be used to install the package system wide. You will need to  use the command line under windows, change to the directory where mx.DateTime has been saved on disk (the desktop, for example), and run python setup.py install.

        Regards,
        Kevin

         
    • senacle

      senacle - 2006-06-04

      There's no setup.py file in the mx/Datetime folder.

      I've installed MAilmanager on 2 different PC.
      With the first, there was the problems described on the 2006-06-02.

      With the second, the problems described on the 2006-06-02.

      With the first, i put all 3rd party in the products folder. And no problem with mxdatime.

      Strange, isn'it ?

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks