Python Forum
Can't load plugin: sqlalchemy.dialects:postgresql
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can't load plugin: sqlalchemy.dialects:postgresql
#1
Can't load plugin: sqlalchemy.dialects:postgresql .......
This my code:

import sqlalchemy as s
import psycopg2 as p

  eng = s.engine.create_engine(s.URL.create("postgresql://xxxx:xxxx@localhost:5432/MyDataBase"))
  met = s.MetaData.create_all(eng, checkfirst=True)
  def update_data(table, conditions, values):
        with eng.connect() as conn:
          if conn is not None:
            print("Esta conecta ao banco")
          else:
            print("Esta faltando algo")
Larz60+ write Mar-25-2024, 08:27 PM:
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.

Code modified for you this time, please use BBCode tags on future posts.

Also please show full unedited error transcript
Reply
#2
change line 4 which currently directs sqlalchemy to PostgreSQL
Reply
#3
(Mar-25-2024, 08:28 PM)Larz60+ Wrote: change line 4 which currently directs sqlalchemy to PostgreSQL

Thanks.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020