From: solsTiCe d'H. <sol...@gm...> - 2009-04-18 16:05:10
|
hi. i upgraded to python-markdown.py and when i try to run markdown.py, i got this error $ markdown.py Traceback (most recent call last): File "/usr/bin/markdown.py", line 44, in <module> from markdown import COMMAND_LINE_LOGGING_LEVEL File "/usr/bin/markdown.py", line 44, in <module> from markdown import COMMAND_LINE_LOGGING_LEVEL ImportError: cannot import name COMMAND_LINE_LOGGING_LEVEL so the fix is to use the patch below ( i guess joined files are filtered in this ML ?) --- markdown.py 2009-04-18 17:58:57.000000000 +0200 +++ markdown.py 2009-04-18 17:59:33.000000000 +0200 @@ -30,10 +30,9 @@ """ import sys, os -if sys.platform == 'win32': +if sys.platform == 'win32' or sys.platform == 'linux2': # We have to remove the Scripts dir from path on windows. # If we don't, it will try to import itself rather than markdown lib. - # This appears to *not* be a problem on *nix systems, only Windows. try: sys.path.remove(os.path.dirname(__file__)) except (ValueError, NameError): so obviously this appears to be a problem too for linux at least but i guess all the other *nix too. i use archlinux and python 2.6.1 |