emcp
07/30/2022, 3:40 PMpip install meltano
meltano install
meltano upgrade
...
Updating files managed by plugins...
Updating file bundle 'airflow'...
Updating file bundle 'dbt'...
[Errno 2] No such file or directory: '/home/emcp/Dev/git/my_project_root/.meltano/files/airflow/venv/bin/python'
but it might be that I need to refactor something or ? I thought I had airflow under the hood but is the proper thing to simply elect to install it again ?emcp
07/30/2022, 3:42 PM$ meltano add orchestrator airflow
Orchestrator 'airflow' variant 'original' is not known to Meltano. Variants: ['apache (default)']
Doc source : https://docs.meltano.com/getting-started#schedule-pipelines-to-run-regularlyemcp
07/30/2022, 3:44 PMmeltano.yml
orchestrators:
- name: airflow
pip_url: apache-airflow==2.1.0 --constraint <https://raw.githubusercontent.com/apache/airflow/constraints-2.1.0/constraints-3.7.txt>emcp
07/30/2022, 3:45 PMemcp
07/30/2022, 3:46 PMemcp
07/30/2022, 3:59 PMemcp
07/30/2022, 4:01 PM$ meltano add transformer dbt-postgres
Added transformer 'dbt-postgres' to your Meltano project
Variant: dbt-labs (default)
Repository: <https://github.com/dbt-labs/dbt-core>
Documentation: <https://docs.meltano.com/guide/transformation>
Adding required file bundle 'files-dbt-postgres' to your Meltano project...
Variant: meltano (default)
Repository: <https://github.com/meltano/files-dbt-postgres>
Documentation: <https://hub.meltano.com/files/files-dbt-postgres>
Installing transformer 'dbt-postgres'...
Installing file bundle 'files-dbt-postgres'...
Transformer 'dbt-postgres' could not be installed: could not create the virtualenv for 'transformers/dbt-postgres'
File bundle 'files-dbt-postgres' could not be installed: could not create the virtualenv for 'files/files-dbt-postgres'
Installed 0/2 plugins
Failed to install plugin(s)visch
07/30/2022, 4:04 PM'/home/emcp/Dev/git/my_project_root/.meltano/files/airflow/venv/bin/python'
If you look at that file it probably points to a different python than you have now. Easiest fix is meltano install or meltano install --cleanemcp
07/30/2022, 4:06 PMemcp
07/30/2022, 4:06 PMchown -R .... would sort it but, apparently notvisch
07/30/2022, 4:06 PMmeltano install --forcevisch
07/30/2022, 4:07 PMrm -rf .meltano then reinstallemcp
07/30/2022, 4:12 PM$ meltano install
Installing 8 plugins...
Installing extractor 'tap-ibkr-tickers'...
Skipped installing extractor 'tap-ibkr-tickers'...
Installing extractor 'tap-ibkr-news'...
Skipped installing extractor 'tap-ibkr-news'...
Installing loader 'target-postgres'...
Installing loader 'target-jsonl-blob'...
Skipped installing loader 'target-jsonl-blob'...
Installing orchestrator 'airflow'...
Installing transformer 'dbt'...
Installing file bundle 'airflow'...
Installing file bundle 'dbt'...
Transformer 'dbt' could not be installed: could not create the virtualenv for 'transformers/dbt'
Orchestrator 'airflow' could not be installed: could not create the virtualenv for 'orchestrators/airflow'
File bundle 'dbt' could not be installed: could not create the virtualenv for 'files/dbt'
File bundle 'airflow' could not be installed: could not create the virtualenv for 'files/airflow'
Loader 'target-postgres' could not be installed: could not create the virtualenv for 'loaders/target-postgres'
Installed 0/8 plugins
Skipped installing 3/8 plugins
Failed to install plugin(s)emcp
07/30/2022, 4:12 PMvisch
07/30/2022, 4:13 PMemcp
07/30/2022, 4:13 PM--force nowvisch
07/30/2022, 4:13 PMemcp
07/30/2022, 4:14 PM--force is no such optionemcp
07/30/2022, 4:14 PMemcp
07/30/2022, 4:16 PMmeltano install --debug --verbose but both those options are not validemcp
07/30/2022, 4:16 PMemcp
07/30/2022, 4:19 PMemcp
07/30/2022, 4:21 PMemcp
07/30/2022, 4:48 PM(settings) [[]]: key:value
'value' is not a valid SettingKind
(settings) [[]]: key:string
Added extractor 'tap-ibkr' to your Meltano project
Installing extractor 'tap-ibkr'...
Extractor 'tap-ibkr' could not be installed: could not create the virtualenv for 'extractors/tap-ibkr'
Failed to install plugin(s)
I am going to take a guess that perhaps pipx went from a suggestion to a requirement?emcp
07/30/2022, 4:48 PMemcp
07/30/2022, 4:51 PMemcp
07/30/2022, 4:51 PMemcp
07/30/2022, 4:55 PMpython3 -m venv .venv
The virtual environment was not created successfully because ensurepip is not
available. On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.
apt install python3.10-venv
You may need to use sudo with that command. After installing the python3-venv
package, recreate your virtual environment.emcp
07/30/2022, 4:56 PMemcp
07/30/2022, 4:56 PMemcp
07/30/2022, 5:14 PMmeltano install it hangs on the post Installed transfer dbt .. I am going to wipe everything and attempt to upgrade first, THEN installemcp
07/30/2022, 5:15 PMalexander_butler
07/30/2022, 6:02 PMalexander_butler
07/30/2022, 6:04 PMemcp
07/30/2022, 6:09 PM$ meltano remove transformer dbt
Removing transformer 'dbt'...
Error removing plugin transformer 'dbt' from system database: None
Removed transformer 'dbt' from meltano.yml
Could not find transformer 'dbt' in .meltano/transformers to remove
Removed transformer 'dbt' from plugins/transformers/dbt*.lockemcp
07/30/2022, 6:16 PMmeltano upgrade files and meltano upgrade .. and meltano remove transformer dbt after getting the new postgres specific variant... I still hang on the very end of meltano install ... I'll let it run but.. i would guess somethings a bit off with my migration and it might be best to just.. re-install a project from scratchalexander_butler
07/30/2022, 6:18 PMalexander_butler
07/30/2022, 6:18 PMemcp
07/30/2022, 6:18 PMemcp
07/30/2022, 6:18 PMemcp
07/30/2022, 6:18 PMtransform/ directory. Manually remove transform/profiles.ymlemcp
07/30/2022, 6:19 PMtransform/profiles.yml .. but i DO have transform/profile/profiles.ymlalexander_butler
07/30/2022, 6:19 PMemcp
07/30/2022, 6:20 PM$ rm -rf .meltano/
$ meltano install transformer dbt-postgres
Installing 1 plugins...
Installing transformer 'dbt-postgres'...
Installed transformer 'dbt-postgres'alexander_butler
07/30/2022, 6:21 PMemcp
07/30/2022, 6:21 PMemcp
07/30/2022, 6:22 PMemcp
07/30/2022, 6:22 PMemcp
07/30/2022, 6:45 PMemcp
07/30/2022, 6:54 PM$ meltano install
Installing 7 plugins...
Installing extractor 'tap-ibkr-tickers'...
Skipped installing extractor 'tap-ibkr-tickers'...
Installing extractor 'tap-ibkr-news'...
Skipped installing extractor 'tap-ibkr-news'...
Installing loader 'target-postgres'...
Installing loader 'target-jsonl-blob'...
Skipped installing loader 'target-jsonl-blob'...
Installing orchestrator 'airflow'...
Installing transformer 'dbt-postgres'...
Installing file bundle 'airflow'...
Installed file bundle 'airflow'
Run `meltano upgrade files` to update your project's 'airflow' files.
Installed loader 'target-postgres'
Installed transformer 'dbt-postgres'
Installed orchestrator 'airflow'
Installed 4/7 plugins
Skipped installing 3/7 plugins
Thank you @visch and @alexander_butler againvisch
07/31/2022, 10:32 AMvisch
07/31/2022, 10:35 AM