jan_soubusta
05/02/2023, 2:37 PM(.venv) jacek@holly:~/work/src/panther-internal-analytics$ make extract_load
cd "data_pipeline" && meltano --environment $ELT_ENVIRONMENT run tap-salesforce $MELTANO_TARGET
Need help fixing this problem? Visit <http://melta.no/> for troubleshooting steps, or to
join our friendly Slack community.
Emitter.__init__() got an unexpected keyword argument 'request_timeout'
make: *** [Makefile:25: extract_load] Error 1
I deleted virtualenv and .meltano and installed everything from scratch, it did not help.
Anyone hit this issue?Will Da Silva (Arch)
05/02/2023, 2:40 PMtap-jaffle-shop-template
Will Da Silva (Arch)
05/02/2023, 2:41 PMpip freeze
, and provide us with the outputjan_soubusta
05/02/2023, 2:42 PMWill Da Silva (Arch)
05/02/2023, 2:45 PMsnowplow-tracker==0.10.0
, which is surprising since the Emitter
class for that version has the keyword argument `request_timeout`: https://github.com/snowplow/snowplow-python-tracker/blob/0.10.0/snowplow_tracker/emitters.py#L61Will Da Silva (Arch)
05/02/2023, 2:48 PMWill Da Silva (Arch)
05/02/2023, 2:51 PMjan_soubusta
05/02/2023, 2:55 PMjan_soubusta
05/02/2023, 2:56 PMWill Da Silva (Arch)
05/02/2023, 3:00 PM--log-level=debug
. Another thing to check is what the output of the following is:
python -c 'import inspect, snowplow_tracker; print(snowplow_tracker.__version__); print(inspect.signature(snowplow_tracker.emitters.Emitter))'
user
05/02/2023, 3:13 PMdevs install meltano, dbt and some other libs into the same virtual environmentIf you change the installation order that might fix it, i.e. installing meltano after dbt and other libs. I suspect dbt’s snowplow tracker requirement is the offender.
Will Da Silva (Arch)
05/02/2023, 3:15 PMpip freeze
results suggest that a valid version of snowplow-tracker
is installed, so now I'm not surejan_soubusta
05/03/2023, 6:40 AMjan_soubusta
05/03/2023, 6:41 AMjan_soubusta
05/03/2023, 6:42 AM"""Meltano tracker backed by Snowplow."""
jan_soubusta
05/03/2023, 6:43 AM(.venv) jacek@holly:~/work/src/panther-internal-analytics/data_pipeline$ python -c 'import inspect, snowplow_tracker; print(snowplow_tracker.__version__); print(inspect.signature(snowplow_tracker.emitters.Emitter))'
0.0.2
(endpoint, protocol='http', port=None, method='get', buffer_size=None, on_success=None, on_failure=None, byte_limit=None)
jan_soubusta
05/03/2023, 6:43 AM(.venv) jacek@holly:~/work/src/panther-internal-analytics/data_pipeline$ pip list | grep snowplow
minimal-snowplow-tracker 0.0.2
snowplow-tracker 0.10.0
jan_soubusta
05/03/2023, 6:44 AMjan_soubusta
05/03/2023, 6:46 AMpip install --upgrade snowplow-tracker
helps. It upgrades from 0.10.0 to 0.15.0.
Will set the version in my requirements file.jan_soubusta
05/03/2023, 11:40 AMTypeError: Emitter.__init__() got an unexpected keyword argument 'buffer_size'
I am so sad 😉jan_soubusta
05/03/2023, 12:14 PMWill Da Silva (Arch)
05/03/2023, 12:15 PMjan_soubusta
05/03/2023, 12:36 PMWill Da Silva (Arch)
05/03/2023, 12:38 PMpipx
the packages installed become globally available. If I run pipx install meltano
, then I can run meltano
from within any venv (or outside of one) so long as there is not PATH
conflict (e.g. from also installing meltano
within a venv).jan_soubusta
05/03/2023, 12:58 PMmeltano run ...
and dbt run
.
If I run pipx install meltano
and pipx install dbt
, both (including conflicting dependencies) will be installed into the same global scope, right? So the problem persists, right?user
05/03/2023, 2:04 PMmeltano run
and dbt run
outside any virtualenv (so no activation required)jan_soubusta
05/03/2023, 2:12 PMniall_keleher
05/04/2023, 5:04 PMuser
05/04/2023, 5:27 PM--python
option. I actually use both pyenv and pipx and have a few Meltano versions installed side-by-side:
$ pipx list | grep meltano@cp
package meltano 2.19.0 (meltano@cp310), installed using Python 3.10.8
- meltano@cp310
package meltano 2.19.0 (meltano@cp37), installed using Python 3.7.16
- meltano@cp37
package meltano 2.19.0 (meltano@cp38), installed using Python 3.8.14
- meltano@cp38
package meltano 2.19.0 (meltano@cp39), installed using Python 3.9.16
- meltano@cp39
niall_keleher
05/04/2023, 5:42 PMjan_soubusta
11/01/2023, 3:47 PMpipx
does not provide the option -r requirements.txt
. I cannot install each package separately.
I no longer can use the workaround with two venvs - I want to use Dagster orchestrating both dbt and meltano from the same (v)env.
Thinking about how to solve it...jan_soubusta
11/01/2023, 3:48 PMsnowplow-tracker
still exists, just it manifests differently 😉jan_soubusta
11/01/2023, 3:48 PMedgar_ramirez_mondragon
11/06/2023, 6:18 PMjan_soubusta
11/07/2023, 9:40 AMjan_soubusta
11/07/2023, 9:41 AMedgar_ramirez_mondragon
11/08/2023, 7:54 PMjan_soubusta
11/08/2023, 9:26 PMjacob_mulligan
11/17/2023, 8:37 AMImportError: cannot import name 'SelfDescribing' from 'snowplow_tracker' (/Users/jacob/.pyenv/versions/3.10.11/envs/peach-meltano/lib/python3.10/site-packages/snowplow_tracker/__init__.py)Reverting from
meltano==2.20.0
to meltano==2.19
in my requirements.txt file "fixed" the issueedgar_ramirez_mondragon
11/17/2023, 5:27 PMjan_soubusta
11/30/2023, 12:10 PMjan_soubusta
11/30/2023, 12:11 PMjan_soubusta
11/30/2023, 12:47 PMnpm ERR! Cannot read properties of undefined (reading 'isStream')
node v18.17.1
npm 9.6.7
Python 3.10.12jacob_mulligan
12/01/2023, 10:51 AMedgar_ramirez_mondragon
12/01/2023, 5:37 PMeslint
hook. FWIW I got npm 9.8.1, so that's probably it: https://github.com/npm/cli/issues/6665#issuecomment-1645728379jan_soubusta
12/04/2023, 11:51 AMjan_soubusta
12/04/2023, 11:51 AMjan_soubusta
12/05/2023, 8:30 AMpoetry run pytest