#67 Getting Error for test_happydoc.py

open
Doug Hellmann
None
5
2003-01-21
2003-01-21
Pragati Sawaikar
No

I have installed HappyDoc and wanted to test it on
the "test_happydoc.py" ,

when I did :
happydoc test_happydoc.py

It gave me following error :

Traceback (innermost last):
File "/usr/bin/happydoc", line 57, in ?
from happydoclib import HappyDoc
File "/usr/bin/happydoclib/__init__.py", line 64, in
?
import happydoclib.CommandLineApp
File "", line 516
grouped_options = [ x[1] for x in
option_aliases.items() ]

When I commented the line 516 in
CommandLineApp.py it was giving me

Traceback (innermost last):
File "/usr/bin/happydoc", line 57, in ?
from happydoclib import HappyDoc
File "/usr/bin/happydoclib/__init__.py", line 64, in
?
import happydoclib.CommandLineApp
File "/usr/bin/happydoclib/CommandLineApp.py", line
71, in ?
import unittest
ImportError: No module named unittest

I want to use Helpdoc for documenting my Python Code.
Have I missed out something while installing.

Please help.

Thanks in Advance and waiting for Your reply.

Regards,
Pragati.

Discussion

    • assigned_to: nobody --> doughellmann
     
  • Doug Hellmann
    Doug Hellmann
    2003-01-21

    Logged In: YES
    user_id=34486

    It looks like the version of Python you are using does not
    include the unittest module. What version do you have?

    You should not need to run the tests in order to use
    HappyDoc, so the fact that you are missing unittest should
    not matter. There may be Python 2.1 features in the source
    by now, though, so if you are using 1.5.2 HappyDoc itself
    may not run.