Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup requires Babel 2.6.0 or greater #430

Merged
merged 1 commit into from
Jul 5, 2018

Conversation

alanhamlett
Copy link
Member

Fixes error when installing with Babel 2.5.3:

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/Users/alanhamlett/git/wakatime/venv/src/wtforms/setup.py", line 103, in <module>
        cmdclass=command_classes,
      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 955, in run_commands
        self.run_command(cmd)
      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/Users/alanhamlett/git/wakatime/venv/src/wtforms/setup.py", line 40, in run
        self.run_command("compile_catalog")
      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/Users/alanhamlett/git/wakatime/venv/lib/python3.6/site-packages/babel/messages/frontend.py", line 182, in run
        self._run_domain(domain)
      File "/Users/alanhamlett/git/wakatime/venv/lib/python3.6/site-packages/babel/messages/frontend.py", line 221, in _run_domain
        catalog = read_po(infile, locale)
      File "/Users/alanhamlett/git/wakatime/venv/lib/python3.6/site-packages/babel/messages/pofile.py", line 331, in read_po
        parser.parse(fileobj)
      File "/Users/alanhamlett/git/wakatime/venv/lib/python3.6/site-packages/babel/messages/pofile.py", line 265, in parse
        self._process_comment(line)
      File "/Users/alanhamlett/git/wakatime/venv/lib/python3.6/site-packages/babel/messages/pofile.py", line 224, in _process_comment
        self._finish_current_message()
      File "/Users/alanhamlett/git/wakatime/venv/lib/python3.6/site-packages/babel/messages/pofile.py", line 164, in _finish_current_message
        self._add_message()
      File "/Users/alanhamlett/git/wakatime/venv/lib/python3.6/site-packages/babel/messages/pofile.py", line 158, in _add_message
        self.catalog[msgid] = message
      File "/Users/alanhamlett/git/wakatime/venv/lib/python3.6/site-packages/babel/messages/catalog.py", line 596, in __setitem__
        self.mime_headers = _parse_header(message.string).items()
      File "/Users/alanhamlett/git/wakatime/venv/lib/python3.6/site-packages/babel/messages/catalog.py", line 399, in _set_mime_headers
        self.locale = Locale.parse(value)
      File "/Users/alanhamlett/git/wakatime/venv/lib/python3.6/site-packages/babel/core.py", line 331, in parse
        raise UnknownLocaleError(input_id)
    babel.core.UnknownLocaleError: unknown locale 'persian'

    ----------------------------------------
  Rolling back uninstall of WTForms
Command "/Users/alanhamlett/git/wakatime/venv/bin/python3 -c "import setuptools, tokenize;__file__='/Users/alanhamlett/git/wakatime/venv/src/wtforms/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" develop --no-deps" failed with error code 1 in /Users/alanhamlett/git/wakatime/venv/src/wtforms/

@davidism davidism merged commit 53d403d into wtforms:master Jul 5, 2018
@alanhamlett alanhamlett deleted the ahamlett-babel_min_ver branch July 5, 2018 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants