From: Jan E. M. <li...@mo...> - 2010-06-30 13:59:28
|
I just installed python markdown and tried to run it and got the following message File "/usr/local/bin/markdown.py", line 44, in <module> from markdown import COMMAND_LINE_LOGGING_LEVEL File "/usr/local/bin/markdown.py", line 44, in <module> from markdown import COMMAND_LINE_LOGGING_LEVEL ImportError: cannot import name COMMAND_LINE_LOGGING_LEVEL Does anyone have an idea what I missed during install? - jem |
From: Waylan L. <wa...@gm...> - 2010-06-30 14:57:55
|
It would appear that you have installed an older version which had this problem on some systems depending on how they are configured. The latest version (currently 2.0.3) is here: http://pypi.python.org/pypi/Markdown On Wed, Jun 30, 2010 at 9:23 AM, Jan Erik Moström <li...@mo...> wrote: > I just installed python markdown and tried to run it and got the > following message > > File "/usr/local/bin/markdown.py", line 44, in <module> > from markdown import COMMAND_LINE_LOGGING_LEVEL > File "/usr/local/bin/markdown.py", line 44, in <module> > from markdown import COMMAND_LINE_LOGGING_LEVEL > ImportError: cannot import name COMMAND_LINE_LOGGING_LEVEL > > Does anyone have an idea what I missed during install? > > - jem > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Python-markdown-discuss mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-markdown-discuss > -- ---- \X/ /-\ `/ |_ /-\ |\| Waylan Limberg |
From: Jan E. M. <li...@mo...> - 2010-06-30 15:37:00
|
I just tried installing this version but get the same result, this is on OS X 10.6.4 - standard install. The python version is 2.6.1, the version in /Library/Python/2.6/site-packages/markdown is 2.0.3 (I've tried logging in/out etc). Any advice on how to proceed is most welcome. - jem On Wed, Jun 30, 2010 at 16:57, Waylan Limberg <wa...@gm...> wrote: > It would appear that you have installed an older version which had > this problem on some systems depending on how they are configured. > > The latest version (currently 2.0.3) is here: > http://pypi.python.org/pypi/Markdown > > On Wed, Jun 30, 2010 at 9:23 AM, Jan Erik Moström <li...@mo...> wrote: >> I just installed python markdown and tried to run it and got the >> following message >> >> File "/usr/local/bin/markdown.py", line 44, in <module> >> from markdown import COMMAND_LINE_LOGGING_LEVEL >> File "/usr/local/bin/markdown.py", line 44, in <module> >> from markdown import COMMAND_LINE_LOGGING_LEVEL >> ImportError: cannot import name COMMAND_LINE_LOGGING_LEVEL >> >> Does anyone have an idea what I missed during install? >> >> - jem |
From: Waylan L. <wa...@gm...> - 2010-06-30 16:21:13
|
It occurs to me that you may not have uninstalled an older version before installing the new one. The problem is that when the commandline script is named "markdown.py" it will only ever try to import itself rather than the markdown library. There are solutions available to reconfigure your system to not have this problem (fiddling with the PYTHONPATH), but that is not something we should expect our users to do. The solution we used instead was to rename the commandline script by dropping the ".py". I'm guessing that because you did not uninstall the older version, "markdown.py" is still in your bin and will still raise the error. First check that "/usr/local/bin/markdown" exists, then delete the older script at "/usr/local/bin/markdown.py" and just remember to use "markdown" from now on. On a somewhat related note, a bug report has been filed with Ubuntu [1] because both the python and perl implementations of markdown use "markdown" as their commandline script which creates a conflict. So we will be changing the commandline script name again in the next release. Sigh! Unless someone has a better suggestion, we'll use "markdown-python" as that will show up in autocompletion if one types "markdown". [1]: https://bugs.launchpad.net/bugs/593565 On Wed, Jun 30, 2010 at 11:35 AM, Jan Erik Moström <li...@mo...> wrote: > I just tried installing this version but get the same result, this is > on OS X 10.6.4 - standard install. The python version is 2.6.1, the > version in /Library/Python/2.6/site-packages/markdown is 2.0.3 (I've > tried logging in/out etc). > > Any advice on how to proceed is most welcome. > > - jem > > On Wed, Jun 30, 2010 at 16:57, Waylan Limberg <wa...@gm...> wrote: >> It would appear that you have installed an older version which had >> this problem on some systems depending on how they are configured. >> >> The latest version (currently 2.0.3) is here: >> http://pypi.python.org/pypi/Markdown >> >> On Wed, Jun 30, 2010 at 9:23 AM, Jan Erik Moström <li...@mo...> wrote: >>> I just installed python markdown and tried to run it and got the >>> following message >>> >>> File "/usr/local/bin/markdown.py", line 44, in <module> >>> from markdown import COMMAND_LINE_LOGGING_LEVEL >>> File "/usr/local/bin/markdown.py", line 44, in <module> >>> from markdown import COMMAND_LINE_LOGGING_LEVEL >>> ImportError: cannot import name COMMAND_LINE_LOGGING_LEVEL >>> >>> Does anyone have an idea what I missed during install? >>> >>> - jem > -- ---- \X/ /-\ `/ |_ /-\ |\| Waylan Limberg |
From: Jan E. M. <li...@mo...> - 2010-06-30 16:51:17
|
On Wed, Jun 30, 2010 at 18:20, Waylan Limberg <wa...@gm...> wrote: > It occurs to me that you may not have uninstalled an older version > before installing the new one. The problem is that when the > commandline script is named "markdown.py" it will only ever try to > import itself rather than the markdown library. There are solutions > available to reconfigure your system to not have this problem > (fiddling with the PYTHONPATH), but that is not something we should > expect our users to do. The solution we used instead was to rename the > commandline script by dropping the ".py". I'm guessing that because > you did not uninstall the older version, "markdown.py" is still in > your bin and will still raise the error. First check that > "/usr/local/bin/markdown" exists, then delete the older script at > "/usr/local/bin/markdown.py" and just remember to use "markdown" from > now on. Thanks, that worked. - jem |