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