-
-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'pg_engine' object has no attribute 'pgsql_cur' #98
Comments
the error means the connection to postgresql is not successfuly. did you enable postgres to accept the connections from other hosts? what the postgresql log says? |
@stereobooster I had the same issue and from the repo you linked it appears to be for identical reasons:
It appears to me that you have to specify an empty dict in the yaml file when you do not want to have @the4thdoctor Maybe a check for the key or retrieval of the key with a default value on nonexistence would help avoid this kind of error? Edit: Meant to write empty dict, not empty list: |
@the4thdoctor I'm trying to configure replica from MySQL to Postgres. |
I updated the schema mapping in the config file and it works |
I'm actually having the same issue, and I've tried it with the empty dicts, but nothing. I think it may be related to how the source schema in the schema mappings needs to be escaped (contains a How would one properly escape that? |
can you provide an example for your schema_mappings? |
I want everything in the database, so I just put it in as
EDIT: the MySQL database is named one-database and the PSQL database is one_database and I've also tried it with quotes around the one with the UPDATE: I've abandoned my plan to use this. thanks for the offer to assist though. |
Thanks. Will try to reproduce the error. |
Hi there!
I'm trying to configure replica from MySQL to Postgres with docker-compose. I created two db images and separate image for chameleon
When I run it I get this error:
AttributeError: 'pg_engine' object has no attribute 'pgsql_cur'
.My guess is that I need to install chameleon inside Postgres image instead of separate image. Do you have any instructions/advices on how to use chameleon with Docker?
Source code is here https://github.com/stereobooster/headless-cms-comparison/tree/master/directus-chameleon-hasura
The text was updated successfully, but these errors were encountered: