is anyone having this issue when running `meltano ...
# troubleshooting
b
is anyone having this issue when running
meltano init .
or any command like even when adding an extractor to the initialized project!
Emitter.__init__() got an unexpected keyword argument 'request_timeout'
w
Hi @bassel. This occurs when other packages are installed alongside Meltano within its virtual environment.
Our installation docs recommend using
pipx
to install Meltano into its own virtual environment
b
that's what I just did .. should I create another project?
w
If you run
which meltano
, what do you get?
b
/Library/Frameworks/Python.framework/Versions/3.10/bin/meltano
w
Looks like the version of Meltano being found on your
$PATH
is not the one installed by
pipx
b
Copy code
pipx ensurepath
/Users/baselabdo/.local/bin has been been added to PATH, but you need to open a new terminal or re-login for this PATH change to take effect.

You will need to open a new terminal or re-login for the PATH changes to take effect.

Otherwise pipx is ready to go! ✨ 🌟 ✨
I opened a new tab but still showing the same result
/Library/Frameworks/Python.framework/Versions/3.10/bin/meltano
w
Can you confirm that
/Users/baselabdo/.local/bin
appears before
/Library/Frameworks/Python.framework/Versions/3.10/bin
in the output of
echo $PATH
?
b
no it does not
Copy code
/Library/Frameworks/Python.framework/Versions/3.10/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin
tried re-installing meltano using pipx @Will Da Silva (Arch)
'meltano' already seems to be installed. Not modifying existing installation in  '/Users/baselabdo/.local/pipx/venvs/meltano'. Pass '--force' to force installation.
u
You'll need to fix the error with the
pipx
bin directory not being in
$PATH
. I'm not sure what the fix would be, because that would depend on how it's set up, and how your shell's RC file is configured
b
I added it to the $PATH
Copy code
✘ ✝  ~  echo $PATH
/Library/Frameworks/Python.framework/Versions/3.10/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/baselabdo/.local/bin:/Users/baselabdo/.local/bin:/Users/baselabdo/.local/bin: /opt/homebrew/bin/pipx:/Users/baselabdo/.local/bin:/opt/homebrew/bin/pipx
created a directory, and installed meltano with pipx --force -> created new folder -> ran meltano init test -> getting the same error!!
Emitter.__init__() got an unexpected keyword argument 'request_timeout'
Should activate a virtual env before? That's weird, meltano was running before with no issue ! @Will Da Silva (Arch)
u
You'll need the
pipx
bin directory to come before
/Library/Frameworks/Python.framework/Versions/3.10/bin
in
$PATH
. Currently it's at the end, so it's being checked last. It might help to uninstall
meltano
from your Python installation by running
/Library/Frameworks/Python.framework/Versions/3.10/bin/python -m pip uninstall meltano
so that you won't be able to use the wrong/broken installation of Meltano
b
removed an older version of meltnao (2.19) and kept 2.20
Copy code
✘ ✝  ~  python3 -m pip uninstall meltano
Found existing installation: meltano 2.19.1
Uninstalling meltano-2.19.1:
  Would remove:
    /Library/Frameworks/Python.framework/Versions/3.10/bin/meltano
    /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/meltano-2.19.1.dist-info/*
    /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/meltano/*
Proceed (Y/n)? Y
  Successfully uninstalled meltano-2.19.1
 ✝  ~  clear
 ✝  ~  meltano --version
meltano, version 2.20.0
create another project -> initialized it (no errors) -> added tap-mysql extractor -> got this error 😅
Copy code
✘ ✝  ~/ssh-test  meltano add extractor tap-mysql
Need help fixing this problem? Visit <http://melta.no/> for troubleshooting steps, or to
join our friendly Slack community.

<flag 'DefinitionSource'> invalid value -2
    given 0b1 10
  allowed 0b1 11
@Will Da Silva (Arch)
u
u
i.e. a bug in Python 3.11.4. If you can downgrade to 3.11.3 that should fix the error
b
mine is
Copy code
python3 --version
Python 3.10.11
u
Thanks @edgar_ramirez_mondragon. I'll add that Python has fixed the bug in 3.11.5, which is slated for release soon
w
@bassel Are you sure that's the same Python version used by
pipx
when running Meltano? What do you get when you run
/Users/baselabdo/.local/pipx/venvs/meltano/bin/python --version
?
b
Oh! getting a different version 😅
Copy code
/Users/baselabdo/.local/pipx/venvs/meltano/bin/python --version
Python 3.11.4