nick_james
04/27/2022, 7:34 PMamanda.folson
04/27/2022, 7:51 PMnick_james
04/27/2022, 7:52 PMnick_james
04/27/2022, 7:53 PMnick_james
04/27/2022, 7:53 PMnick_james
04/27/2022, 7:53 PMweb: cd meltano && meltano upgrade files && meltano install && meltano invoke airflow webserver
scheduler: cd meltano && meltano upgrade files && meltano install && meltano invoke airflow scheduler
amanda.folson
04/27/2022, 7:56 PMweb
expects some sort of web server rather than a series of commands like that (even though the end result is a web server there) so it's probably upset about that. If you get rid of web
does it still work with the scheduler
process?nick_james
04/27/2022, 8:02 PMnick_james
04/27/2022, 8:09 PM2022-04-27T20:08:38.288243+00:00 app[scheduler.1]: 2022-04-27T20:08:38.288106Z [error ] Traceback (most recent call last):
2022-04-27T20:08:38.288250+00:00 app[scheduler.1]: File "/app/meltano/.meltano/orchestrators/airflow/venv/bin/airflow", line 5, in <module>
2022-04-27T20:08:38.288251+00:00 app[scheduler.1]: from airflow.__main__ import main
2022-04-27T20:08:38.288252+00:00 app[scheduler.1]: File "/app/meltano/.meltano/orchestrators/airflow/venv/lib/python3.8/site-packages/airflow/__init__.py", line 46, in <module>
2022-04-27T20:08:38.288252+00:00 app[scheduler.1]: settings.initialize()
2022-04-27T20:08:38.288254+00:00 app[scheduler.1]: File "/app/meltano/.meltano/orchestrators/airflow/venv/lib/python3.8/site-packages/airflow/settings.py", line 447, in initialize
2022-04-27T20:08:38.288254+00:00 app[scheduler.1]: configure_orm()
2022-04-27T20:08:38.288255+00:00 app[scheduler.1]: File "/app/meltano/.meltano/orchestrators/airflow/venv/lib/python3.8/site-packages/airflow/settings.py", line 222, in configure_orm
2022-04-27T20:08:38.288255+00:00 app[scheduler.1]: engine = create_engine(SQL_ALCHEMY_CONN, connect_args=connect_args, **engine_args)
2022-04-27T20:08:38.288256+00:00 app[scheduler.1]: File "/app/meltano/.meltano/orchestrators/airflow/venv/lib/python3.8/site-packages/sqlalchemy/engine/__init__.py", line 525, in create_engine
2022-04-27T20:08:38.288256+00:00 app[scheduler.1]: return strategy.create(*args, **kwargs)
2022-04-27T20:08:38.288256+00:00 app[scheduler.1]: File "/app/meltano/.meltano/orchestrators/airflow/venv/lib/python3.8/site-packages/sqlalchemy/engine/strategies.py", line 87, in create
2022-04-27T20:08:38.288257+00:00 app[scheduler.1]: dbapi = dialect_cls.dbapi(**dbapi_args)
2022-04-27T20:08:38.288258+00:00 app[scheduler.1]: File "/app/meltano/.meltano/orchestrators/airflow/venv/lib/python3.8/site-packages/sqlalchemy/dialects/postgresql/psycopg2.py", line 792, in dbapi
2022-04-27T20:08:38.288259+00:00 app[scheduler.1]: import psycopg2
2022-04-27T20:08:38.288259+00:00 app[scheduler.1]: ModuleNotFoundError: No module named 'psycopg2'
2022-04-27T20:08:38.288259+00:00 app[scheduler.1]:
2022-04-27T20:08:38.289276+00:00 app[scheduler.1]: Command `airflow --help` failed
nick_james
04/27/2022, 8:09 PMamanda.folson
04/27/2022, 8:13 PMnick_james
04/27/2022, 8:48 PMamanda.folson
04/27/2022, 8:59 PMnick_james
04/27/2022, 9:00 PMnick_james
04/27/2022, 9:00 PMamanda.folson
04/27/2022, 9:00 PMnick_james
04/27/2022, 9:00 PMnick_james
04/27/2022, 9:01 PMmeltano install
that will actually run in my dyno environments.nick_james
04/27/2022, 11:16 PMmeltano install
step out to a custom buildpack (which i’d be happy to publish properly afterwards for any other heroku people out there), but now the binaries are all kinds of sideways =/
Basically Meltano is installing the virtual environments for its plugins into a temp directory that’s only available at build time. I think what i need to be able to do is specify the python path to meltano. Is this possible?edgar_ramirez_mondragon
04/28/2022, 12:22 AM.meltano/
directory (where plugins are installed) needs to be available after the build step.
The python path you pointed to is within each plugin's venv, which need to be separate to avoid any dependency conflictsnick_james
04/28/2022, 12:25 AMcat /app/meltano/.meltano/orchestrators/airflow/venv/bin/airflow
#!/tmp/build_a52af35b/meltano/.meltano/orchestrators/airflow/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from airflow.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
nick_james
04/28/2022, 5:34 PMedgar_ramirez_mondragon
04/29/2022, 1:11 AMcraig_morris
07/18/2022, 2:04 PM