Comments (11)
@rosner I'm going to need the example code.
Can you create a minimal failing case and post it on github?
from sqlalchemy-redshift.
In particular, what's in your connection string? From the output, I'm suspecting it might be prefixed with psycopg2://
where it needs to be redshift+psycopg2://
from sqlalchemy-redshift.
@jklukas sorry I pasted the wrong exception message. I first tried with redshift+psycopg2://user:[email protected]:5439/dev
and then tried different things (postgres://
and redshift://
only for example).
from sqlalchemy-redshift.
@rosner I'm going to need the example code.
Can you create a minimal failing case and post it on github?
from sqlalchemy-redshift.
@graingert here's the snippet with which I can reproduce it:
import sqlalchemy as sa
sa.create_engine('redshift+psycopg2://user:[email protected]:5439/dev')
I tried this in a clean venv.
from sqlalchemy-redshift.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
import sqlalchemy as sa
ImportError: No module named 'sqlalchemy'
from sqlalchemy-redshift.
I tried this in a clean venv.
perhaps this is your issue?
from sqlalchemy-redshift.
Seriously, can you actually create the project in GitHub and reproduce the failure with Travis.
from sqlalchemy-redshift.
Yeah you're right, I'm not really helpful without giving more context. Will try to reproduce it and get back.
from sqlalchemy-redshift.
Alright I finally got back to this. And I didn't manage to reproduce it with a travis setup. So I'm closing this and sorry for the "trouble" again. Thanks a ton for reacting that quickly. It's still puzzling what's going on in that specific venv but that's not an issue for this project.
from sqlalchemy-redshift.
Error : Can't load plugin: sqlalchemy.dialects:psycopg2
I Have faced the same issue when set the variable clerny result backend:
AIRFLOW__CELERY__RESULT_BACKEND: "db+psycopg2://{{ .Values.postgresql.postgresqlUsername }}:{{.Values.postgresql.postgresqlPassword }}@airflow-postgresql-headless:{{ .Values.postgresql.service.port }}/airflow"
Reslove this issue by Changes the string value :
Must install python pip modules:
1.psycopg2-binary
2.sqlalchemy
3.sqlalchemy-redshift
Than change the CELERY__RESULT_BACKEND value to :
AIRFLOW__CELERY__RESULT_BACKEND: "db+postgresql://{{ .Values.postgresql.postgresqlUsername }}:{{.Values.postgresql.postgresqlPassword }}@airflow-postgresql-headless:{{ .Values.postgresql.service.port }}/airflow"
from sqlalchemy-redshift.
Related Issues (20)
- support sqlalchemy 2.0 HOT 23
- Use bind parameters
- Update project CI
- Regression causing errors during reflection for 1.4 FutureEngine HOT 5
- Log handler added in v0.8.13 produces duplicate logs in application
- Regression in v0.8.13: table reflection broken for non-superusers HOT 2
- Do not run integration tests with dbuser having elevated permissions HOT 1
- Migration error: 'Relation "alembic_version" already exists'
- Alembic migration issue: alter table
- Alembic migrations use RETURNING on update
- Performance degradation and memory peaks when updating from 0.8.12
- Class method needs updating HOT 1
- Table Reflection Slowness
- Temp Table Reflection
- Programming Error with percentile_cont HOT 1
- statements save OIDs unless commited
- Proposal: Remove pkg_resources from the fast path
- Any way to support sqlalchemy >= 2.0? HOT 3
- util.text_type issue HOT 1
- attach query group while running redshift queries
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sqlalchemy-redshift.