jceb / vim-orgmode

Text outlining and task management for Vim based on Emacs' Org-Mode
http://www.vim.org/scripts/script.php?script_id=3642
Other
3.1k stars 266 forks source link

ValueError: cannot use LOCALE flag with a str pattern + NameError: name 'ORGMODE' is not defined #265

Closed tuxayo closed 7 years ago

tuxayo commented 7 years ago

Python version: 3.6.0

Error detected while processing /home/victor/.vim/plugged/vim-orgmode/ftplugin/org.vim:
line  123:
Traceback (most recent call last):
  File "<string>", line 10, in <module>
  File "/home/victor/.vim/plugged/vim-orgmode/ftplugin/orgmode/_vim.py", line 22, in <module>
    from orgmode.vimbuffer import VimBuffer
  File "/home/victor/.vim/plugged/vim-orgmode/ftplugin/orgmode/vimbuffer.py", line 30, in <module>
    from orgmode.liborgmode.documents import Document, MultiPurposeList, Direction
  File "/home/victor/.vim/plugged/vim-orgmode/ftplugin/orgmode/liborgmode/documents.py", line 16, in <module>
    from orgmode.liborgmode.headings import Heading, HeadingList
  File "/home/victor/.vim/plugged/vim-orgmode/ftplugin/orgmode/liborgmode/headings.py", line 16, in <module>
    from orgmode.liborgmode.checkboxes import Checkbox, CheckboxList
  File "/home/victor/.vim/plugged/vim-orgmode/ftplugin/orgmode/liborgmode/checkboxes.py", line 20, in <module>
    from orgmode.liborgmode.dom_obj import DomObj, DomObjList, REGEX_SUBTASK, REGEX_SUBTASK_PERCENT, REGEX_HEADING, REGEX_CHECKBOX
  File "/home/victor/.vim/plugged/vim-orgmode/ftplugin/orgmode/liborgmode/dom_obj.py", line 28, in <module>
    flags=re.U | re.L)
  File "/usr/lib/python3.6/re.py", line 233, in compile
    return _compile(pattern, flags)
  File "/usr/lib/python3.6/re.py", line 301, in _compile
    p = sre_compile.compile(pattern, flags)
  File "/usr/lib/python3.6/sre_compile.py", line 562, in compile
    p = sre_parse.parse(p, flags)
  File "/usr/lib/python3.6/sre_parse.py", line 866, in parse
    p.pattern.flags = fix_flags(str, p.pattern.flags)
  File "/usr/lib/python3.6/sre_parse.py", line 833, in fix_flags
    raise ValueError("cannot use LOCALE flag with a str pattern")
ValueError: cannot use LOCALE flag with a str pattern
Error detected while processing function <SNR>67_OrgRegisterMenu:
line    1:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'ORGMODE' is not defined