Error_Coding
Error_Coding

Reputation: 283

why I am Getting Import error for eve.io.SQLAlchemy?

I am running the demo script available at

https://gist.github.com/Tefnet/5430309

I am getting following error, despite having all libraries

flask sqlalchemy validate SQL

File demo.py in line 2 , in <module>
    from eve.io.sqlalchemy import SQLAlchemy, Validator
ImportError no module named sqlalchemy

Not sure why is it giving ? even though I have installed EVE, SQLAlchemy, flask

Upvotes: 1

Views: 409

Answers (2)

Nicola Iarocci
Nicola Iarocci

Reputation: 6576

The SQLAlchemy branch is a work in progress. It has evolved quite a bit from the fork linked by codegeek and now is almost on par (feature-wise) with v0.4dev.

So if you want to play around with it, make sure to pull that branch. Also, one thing it's not been done yet is update requirements.txt and setup.py, so you will want to pip install sqlalchemy on your own.

You can find a rather complete Eve-SQL log by checking out this very long lived ticket.

Upvotes: 1

codegeek
codegeek

Reputation: 33309

There is no eve.io.sqlalchemy by looking at the official source code of eve. The Gist that you are looking at is a fork from eve but the changes are not pulled in yet officially.

See the commit changes here.

Upvotes: 0

Related Questions