From: Yuri T. <qar...@gm...> - 2009-04-22 18:18:22
|
Should we perhaps just do this for all operating systems? - yuri On Sat, Apr 18, 2009 at 9:05 AM, solsTiCe d'Hiver <sol...@gm...> wrote: > 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 > > > > ------------------------------------------------------------------------------ > Stay on top of everything new and different, both inside and > around Java (TM) technology - register by April 22, and save > $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. > 300 plus technical and hands-on sessions. Register today. > Use priority code J9JMT32. http://p.sf.net/sfu/p > _______________________________________________ > Python-markdown-discuss mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-markdown-discuss > -- http://spu.tnik.org/ |