jandecaluwe / urubu-quickstart

Urubu Quickstart site
urubu-quickstart.jandecaluwe.com
The Unlicense
6 stars 5 forks source link

ImportError: cannot import name ReferencePattern #10

Open noasic opened 6 years ago

noasic commented 6 years ago

Hi, I just tried to install the quickstart on my windows machine using Python 2.7.13. I'm seeing the following error message:

C:\temp\urubu>python -m urubu build
Traceback (most recent call last):
  File "C:\Python27\lib\runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "C:\Python27\lib\runpy.py", line 72, in _run_code
    exec code in run_globals
  File "C:\Python27\lib\site-packages\urubu\__main__.py", line 18, in <module>
    from urubu import main
  File "C:\Python27\lib\site-packages\urubu\main.py", line 25, in <module>
    from urubu import project
  File "C:\Python27\lib\site-packages\urubu\project.py", line 33, in <module>
    from urubu import readers, processors
  File "C:\Python27\lib\site-packages\urubu\processors.py", line 31, in <module>
    from urubu import md_extensions
  File "C:\Python27\lib\site-packages\urubu\md_extensions.py", line 31, in <module>
    from markdown.inlinepatterns import ReferencePattern, REFERENCE_RE, SHORT_REF_RE
ImportError: cannot import name ReferencePattern

Any idea why this happens? Thanks, Guy.

lkraider commented 5 years ago

Stumbled on this, markdown version 3 added some breaking changes, you need to use version 2.6:

pip install --upgrade 'markdown < 3'