ImportError: No module named happydoc_class ?

j vickroy
2002-01-19
2002-01-22
  • j vickroy
    j vickroy
    2002-01-19

    I am new to HappyDoc and have just installed r2_0 on a
    Windows 2000 machine running Python 2.1.

    Here is what happens when I try to run it:

    D:\py_addons\HappyDoc-r2_0>happydocwin.py
    Traceback (most recent call last):
    File "D:\py_addons\HappyDoc-r2_0\happydocwin.py",
    line 64, in ?
    from happydoc_class import HappyDoc
    ImportError: No module named happydoc_class

    Here is what happens when I try to run its test:

    D:\py_addons\HappyDoc-r2_0>test_happydoc.py
    Traceback (most recent call last):
    File "D:\py_addons\HappyDoc-r2_0\test_happydoc.py",
    line 83, in ?
    import happydoclib.formatter.openoffice
    File "D:\py_addons\HappyDoc-r2_0
    \happydoclib\formatter\openoffice.py", line 63, in ?
    from xml.sax import saxlib, saxexts
    ImportError: cannot import name saxlib

    Any ideas what is wrong with my installation?

    Thanks.

     
    • Doug Hellmann
      Doug Hellmann
      2002-01-19

      For the 2.0 release I did some major code rearranging, and I missed this file.

      In the file happydocwin.py, replace "happydoc_class" with "happydoclib" (no quotes, of course).  I've checked this change into CVS, so it will be part of the next release.

      Doug

       
      • j vickroy
        j vickroy
        2002-01-22

        Thanks Doug; that worked.