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

Error when loading dotenv in Python 3.2 #12

Closed
germanattanasio opened this issue Oct 16, 2015 · 2 comments
Closed

Error when loading dotenv in Python 3.2 #12

germanattanasio opened this issue Oct 16, 2015 · 2 comments

Comments

@germanattanasio
Copy link

I'm using dotenv as part of my tests and I'm getting a problem when trying to load it in Python 3.2

Travis error

Error:

../../../virtualenv/python3.2.5/lib/python3.2/site-packages/_pytest/python.py:591: in _importtestmodule
    mod = self.fspath.pyimport(ensuresyspath=importmode)
../../../virtualenv/python3.2.5/lib/python3.2/site-packages/py/_path/local.py:650: in pyimport
    __import__(modname)
../../../virtualenv/python3.2.5/lib/python3.2/site-packages/_pytest/assertion/rewrite.py:171: in load_module
    py.builtin.exec_(co, mod.__dict__)
test/test_examples.py:10: in <module>
    from dotenv import load_dotenv
../../../virtualenv/python3.2.5/lib/python3.2/site-packages/dotenv.py:10: in <module>
    import click
../../../virtualenv/python3.2.5/lib/python3.2/site-packages/click/__init__.py:18: in <module>
    from .core import Context, BaseCommand, Command, MultiCommand, Group, \
../../../virtualenv/python3.2.5/lib/python3.2/site-packages/click/core.py:8: in <module>
    from .types import convert_type, IntRange, BOOL
../../../virtualenv/python3.2.5/lib/python3.2/site-packages/click/types.py:7: in <module>
    from .exceptions import BadParameter
../../../virtualenv/python3.2.5/lib/python3.2/site-packages/click/exceptions.py:2: in <module>
    from .utils import echo
E     File "/home/travis/virtualenv/python3.2.5/lib/python3.2/site-packages/click/utils.py", line 279
E       message = message or u''
E                              ^
E   SyntaxError: invalid syntax
@theskumar
Copy link
Owner

Hi @germanattanasio, thanks for reporting this. I'm afraid, this is an issue we have due to the click library used in this project.

E     File "/home/travis/virtualenv/python3.2.5/lib/python3.2/site-packages/click/utils.py", line 279
E       message = message or u''

I think it would make sense to report the issue at https://github.com/mitsuhiko/click. Unfortunately, we can't support python 3.2 unless it's supported by click. I'm happy to upgrade our test-suite to include if click supports python 3.2.

@germanattanasio
Copy link
Author

Looks like click doesn't support Python 3.2 pallets/click#382

I'm closing this and thanks for the good work. This module is really useful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants