Waylan Limberg tells me python-markdown will be releasing version 2.0 at the end of this week. This release breaks my extension and all others written for 1.7. My extension obsoleted within a less than a week of release. That would not do, so I have updated the code to work on 2.0! It's still under LGPL.
You can get it here or clone the Mercurial repository like so:
hg clone http://code.tylerlesmann.com/mdx_video2
Use and install are exactly the same as with the earlier version. Adding new services has changed and I will get to documenting that soon.
Posted by
on April 2, 2009
at 15:20

I am using mdx_video2
and my django project is facing the following problem:
$python manage.py shell
In [1]: import markdown
In [2]: s = "http://www.youtube.com/watch?v=F8qwxzQar2g"
In [3]: markdown.markdown(s, ['video'], safe_mode='escape')
MARKDOWN-CRITICAL: "couldn't load extension video (looking for mdx_video module)"
Out[3]: u'<p>http://www.youtube.com/watch?v=F8qwxzQar2g\n</p>'
any help?
thanks in advance.
It is one of two things. You are using not using markdown 2.0 or mdx_video.py is not in your PYTHON_PATH.
To check your markdown version, start python and do this:
>>> import markdown
>>> markdown.version
'2.0'
To check if mdx_video is in your PYTHON_PATH:
>>> import mdx_video
If you do not get an ImportError, then the extension is ready to be used.
It seems that there is some problem with my markdown 2.0 install or there is some problem with Markdown 2.0 itself.
http://pastebin.com/f1d4a8ff9
I followed http://www.freewisdom.org/projects/python-markdown/Installation for installation
I see the problem. :) Markdown isn't installed.
While in the extracted tar directory, Markdown-2.0, run "python setup.py install" as root. This will install it to python's site-packages. Do this to with the mdx_video extension as well.
If you do not have root access, or do not want to install markdown to the site-packages, then you can use the PYTHON_PATH environment variable, like so:
export PYTHON_PATH=/home/jai/Markdown-2.0:/another/dir/with/modules:/yet/another
:) I am 'not' a noob at Linux or Python.
The first thing I did was easy_install,that got me 2.0, same problem was there. Then I removed the entry from easy-install.pth and downloaded the tar.gz and tried sudo python setup.py install (I am a super user). Same problem. I even appended the path to this dir to sys.path, but that doesn't work.
So I guess I don't really know the problem right now, trying to figure out.
Rather the docs directory in the untar'ed Markdown dir has a file called command_line.txt. which talks in similar lines, but is not of much help.
That's weird.
Have you tried a full re-install of markdown? Removing /usr/lib/python2.X/site-packages/markdown/? I had to do that first from 1.7 to 2.0rc2 and again from 2.0rc2 to 2.0.