Giter Club home page Giter Club logo

Comments (11)

graingert avatar graingert commented on July 3, 2024

@rosner I'm going to need the example code.

Can you create a minimal failing case and post it on github?

from sqlalchemy-redshift.

jklukas avatar jklukas commented on July 3, 2024

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.

rosner avatar rosner commented on July 3, 2024

@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.

graingert avatar graingert commented on July 3, 2024

@rosner I'm going to need the example code.

Can you create a minimal failing case and post it on github?

from sqlalchemy-redshift.

rosner avatar rosner commented on July 3, 2024

@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.

graingert avatar graingert commented on July 3, 2024
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
    import sqlalchemy as sa
ImportError: No module named 'sqlalchemy'

from sqlalchemy-redshift.

graingert avatar graingert commented on July 3, 2024

I tried this in a clean venv.

perhaps this is your issue?

from sqlalchemy-redshift.

graingert avatar graingert commented on July 3, 2024

Seriously, can you actually create the project in GitHub and reproduce the failure with Travis.

from sqlalchemy-redshift.

rosner avatar rosner commented on July 3, 2024

Yeah you're right, I'm not really helpful without giving more context. Will try to reproduce it and get back.

from sqlalchemy-redshift.

rosner avatar rosner commented on July 3, 2024

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.

akashj08 avatar akashj08 commented on July 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.