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

Import cornice fails because colander is not installed #400

Closed
ottokruse opened this issue Oct 21, 2016 · 3 comments · Fixed by #403
Closed

Import cornice fails because colander is not installed #400

ottokruse opened this issue Oct 21, 2016 · 3 comments · Fixed by #403
Labels

Comments

@ottokruse
Copy link

When importing cornice an import error is raised. Apparently colander is now a dependency (is that correct?), but it is not listed as a dependency by cornice.

File "/usr/local/lib/python3.5/site-packages/cornice/init.py", line 10, in
from cornice.service import Service # NOQA
File "/usr/local/lib/python3.5/site-packages/cornice/service.py", line 6, in
from cornice.validators import (
File "/usr/local/lib/python3.5/site-packages/cornice/validators/init.py", line 5, in
from cornice.validators._colander import (
File "/usr/local/lib/python3.5/site-packages/cornice/validators/_colander.py", line 4, in
import colander
ImportError: No module named 'colander'

@leplatrem
Copy link
Contributor

Thanks for the feedback!
It's a bug! Colander shouldn't be a dependency.

@leplatrem leplatrem added the bug label Oct 21, 2016
@ottokruse
Copy link
Author

Sure thing. Great that you guys are working on this software

@Natim
Copy link
Contributor

Natim commented Oct 21, 2016

I will add a new travis job to make sure everything works without colander.

leplatrem added a commit that referenced this issue Oct 24, 2016
Make sure colander is optional (fixes #400)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants