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

2014-08-18 Thread Simon King
I've never used PyDev, but if it effectively adds the folder that you've specified in that screenshot to PYTHONPATH, then I suspect that is the problem. What happens if you remove that External Library, and try to run the following script: import sqlalchemy print sqlalchemy.__file__

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

2014-08-18 Thread Zakaria Boulouard
Hi Simon and thanks for your help. I just tried what you said and it doesn't work! What I did though (AND IT WORKED!) is that I have updated my OS (Ubuntu) from 12.04 to 14.04 which has Python3 as default and I run my project with it. 2014-08-18 10:31 GMT+01:00 Simon King

[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,