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 |
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/ |
From: Waylan L. <wa...@gm...> - 2009-04-22 18:36:33
|
No, actually that's not a guaranteed fix - more of a hack which works in many cases but not all. This is the same as the other report we received. The only real fix is to rename markdown.py to something else. I'm going with "markdown" (no ".py") unless someone has a better suggestion. On Wed, Apr 22, 2009 at 2:18 PM, Yuri Takhteyev <qar...@gm...> wrote: > 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/ > > ------------------------------------------------------------------------------ > 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 > -- ---- \X/ /-\ `/ |_ /-\ |\| Waylan Limberg |
From: Marco P. <mar...@gm...> - 2009-04-23 08:26:37
|
I vote for "markdown-process" (without the ".py"). If you use setuptools, it should take care of everything. Cheers, Marco On Wed, Apr 22, 2009 at 8:36 PM, Waylan Limberg <wa...@gm...> wrote: > No, actually that's not a guaranteed fix - more of a hack which works > in many cases but not all. This is the same as the other report we > received. The only real fix is to rename markdown.py to something > else. I'm going with "markdown" (no ".py") unless someone has a better > suggestion. > > On Wed, Apr 22, 2009 at 2:18 PM, Yuri Takhteyev <qar...@gm...> wrote: >> 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/ >> >> ------------------------------------------------------------------------------ >> 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 >> > > > > -- > ---- > \X/ /-\ `/ |_ /-\ |\| > Waylan Limberg > > ------------------------------------------------------------------------------ > 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 > -- Marco Pantaleoni |