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

First example of Eve use doesn't work #1277

Closed
sybrenstuvel opened this issue May 29, 2019 · 1 comment
Closed

First example of Eve use doesn't work #1277

sybrenstuvel opened this issue May 29, 2019 · 1 comment
Milestone

Comments

@sybrenstuvel
Copy link
Contributor

Expected Behavior

This should work, as it's the very first example of how Eve works:

from eve import Eve

app = Eve()

Actual Behavior

Python 3.6.7 (default, Oct 22 2018, 11:32:17) 
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from eve import Eve
>>> app = Eve()
Traceback (most recent call last):
  File "/home/sybren/workspace/cloud/eve/eve/flaskapp.py", line 319, in validate_domain_struct
    domain = self.config["DOMAIN"]
KeyError: 'DOMAIN'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/sybren/workspace/cloud/eve/eve/flaskapp.py", line 161, in __init__
    self.validate_domain_struct()
  File "/home/sybren/workspace/cloud/eve/eve/flaskapp.py", line 321, in validate_domain_struct
    raise ConfigException("DOMAIN dictionary missing or wrong.")
eve.exceptions.ConfigException: DOMAIN dictionary missing or wrong.

Environment

  • Python version: 3.6.7
  • Eve version: 0.9.1
@nicolaiarocci
Copy link
Member

Oh, wow .This must have been around since, like, forever. I can only imagine how many people scared away from the project. Thanks for reporting.

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

No branches or pull requests

2 participants