[sqlalchemy] PyDev throwing errors in the SQLAlchemy Library

2014-08-16 Thread Zakaria Boulouard
Hello guys, I am new to SQLAlchemy and I wanted to try an example using a MySQL database and PyDev as an IDE but when I run it, PyDev gives me the following error : Traceback (most recent call last): File /usr/lib/python2.7/site.py, line 68, in module import os File

Re: [sqlalchemy] PyDev throwing errors in the SQLAlchemy Library

2014-08-16 Thread Michael Bayer
how are you running the script? there's an environmental issue that is causing SQLAlchemy to be imported improperly. This is probably some PyDev issue. If you install SQLAlchemy in a virtualenv normally and run the script from the console it should be fine (runs over here OK). On Aug

Re: [sqlalchemy] PyDev throwing errors in the SQLAlchemy Library

2014-08-16 Thread Zakaria Boulouard
Hello Michael and thanks for your help, If there is anyway to make it work in PyDev that would be great because I want to integrate a similar code into a bigger project and PyDev would be more suitable. I guess importing the SQLAlchemy lib was the way it should be, I even put it as forced lib,