jan_soubusta
12/14/2022, 10:03 AMmeltano run tap-github target-postgres
Error:
AttributeError: module 'collections' has no attribute 'MutableMapping'
I googled and it seems that MutableMapping
was moved to different library in Python 3.10 (which I have in the underlying virtualenv).
This github issue in Medusa seems to be related:
https://github.com/pymedusa/Medusa/issues/10253
Is it a known bug/limitation? Is a fix in progress? Any workaround solution?Sven Balnojan
12/14/2022, 10:50 AMSven Balnojan
12/14/2022, 11:03 AMjan_soubusta
12/14/2022, 11:19 AMmeltano add loader target-postgres
Sven Balnojan
12/14/2022, 11:45 AMaaronsteers
12/14/2022, 4:48 PMjan_soubusta
12/14/2022, 6:00 PMmeltano.yml
file:
• dbname
in DOC but database
is required
• password
must be specified in meltano.yml
file(not secure), neither .env
file not manually exporting TARGET_POSTGRES_PASSWORD
env variable works.christoph
12/14/2022, 8:12 PMWe can also change the Hub entry for this plugin to point to the github repo instead of the PyPi package.I think that sounds like a great idea, considering that it's already taking quite a lot of time to merge critical dependabot security issues into the master branch, I would not hold my breath for any Pypi releases at all.
christoph
12/14/2022, 8:13 PM(Although we probably should also ping the maintainer in a GitHub issue to see if they can push a new release.)I have done that from time to time, but it just doesn't feel like the most efficient way of keeping the basic house keeping alive (security fixes, python version support and other dependabot merges ...)
christoph
12/14/2022, 8:14 PMI downgraded to 3.8,I feel like downgrading Python will just get you into more trouble. It is my belief that Python 3.10 is probably the most widely used version right now (considering that that's what is shipped in the latest Ubuntu LTS)
christoph
12/14/2022, 8:18 PMtarget-postgres
from github, without needing to wait for a Pypi release by following the steps in this comment: https://meltano.slack.com/archives/C01TCRBBJD7/p1670477332101509?thread_ts=1670449431.189059&cid=C01TCRBBJD7jan_soubusta
12/15/2022, 8:33 AMjan_soubusta
12/15/2022, 10:11 AMmeltano.yml
contains errors, the error report is confusing. Huge stacktrace, where I have to find raw key error and realize that the key relates to a configuration property
• onboarding DOC is focused on the interactive experience. I don't like it. Instead, I expect a documented list of mandatory config properties in a YAML format, so I can copy&paste them into my config file and update them accordingly. Including properties stored in .env
file.jan_soubusta
12/15/2022, 10:14 AMchristoph
12/15/2022, 8:38 PMShould I keep the custom pip_url forever or should I wait for an update from your side how to "standardize" it?Well. This is indeed a specific workaround for this variant of target-postgres. Understanding how to resolve installation issues with this variant is not an obvious task and does always require a bit of analysis. One problem with this particular variant is that security fixes simply are not merged in a timely manner. (The security fixes in this variant are mostly the embedded OpenSSL native C library that comes with the psycopg2-binary python wheel.) So, this workaround of pinning to a github PR is not really great, but it's the best I have found so far. The alternative is to use the newly developed MeltanoLabs variant, which won't suffer from these maintenance problems. https://hub.meltano.com/loaders/target-postgres--meltanolabs/ I am planning of migrating to the new MeltanoLabs variant myself as early as I can find time for testing it.