Segfault-Inc / Multicorn

Data Access Library
https://multicorn.org/
PostgreSQL License
699 stars 145 forks source link

PosgreSQL ImportError: cannot import name ARRAY #159

Open ghost opened 8 years ago

ghost commented 8 years ago

Import error in sqlalchemyfdw.py.

` File "/usr/lib64/python2.7/site-packages/multicorn-1.3.2_dev-py2.7-linux-x86_64.egg/multicorn/sqlalchemy fdw.py", line 168, in from sqlalchemy.dialects.postgresql.base import ( ImportError: cannot import name ARRAY

`

Error: ARRAY is not in the .base.py file.

Working Fix: breakup import statements on line 168

from sqlalchemy.dialects.postgresql.base import ( ischema_names, PGDialect, NUMERIC) from sqlalchemy.dialects.postgresql.array import ARRAY

ghost commented 8 years ago

System Details: RHEL 7.2 SQLAlchemy (1.1.0b2) sqlalchemy-fdw (0.0.1)