kathryn_cowie
11/17/2022, 9:23 PMvisch
11/17/2022, 9:34 PMpython -m ensurepip if you run that my guess is you'll be off to the races (I don't use mac so maybe there's another step)kathryn_cowie
11/18/2022, 3:17 AM% pipx install meltano
/Users/kcowie/.local/pipx/shared/bin/python: No module named pip
...
pipx.util.PipxError: '/Users/kcowie/.local/pipx/shared/bin/python -m pip --disable-pip-version-check install -q --upgrade pip setupt
ools wheel' failed
'meltano' already seems to be installed. Not modifying existing installation in
% meltano --version
Traceback (most recent call last):
File "/Users/kcowie/.local/bin/meltano", line 5, in <module>
from meltano.cli import main
ModuleNotFoundError: No module named 'meltano'visch
11/18/2022, 3:35 AM/Users/kcowie/.local/pipx/shared/bin/python
I tried a quick google on the pipx error and found https://github.com/pypa/pipx/issues/278 that looks to have an answer (reinstall pipx)visch
11/18/2022, 3:36 AMvisch
11/18/2022, 3:36 AMpipx reinstall-all
might do the trick too so it seems!kathryn_cowie
11/18/2022, 3:53 AM/Users/kcowie/.local/pipx/venvs/meltano/bin/python: No module named pipkathryn_cowie
11/18/2022, 3:57 AMvisch
11/18/2022, 3:57 AMkathryn_cowie
11/18/2022, 3:58 AMNothing to uninstall for meltano š“visch
11/18/2022, 3:59 AMvisch
11/18/2022, 3:59 AMSolution
Well, I simply had to explicitly uninstall pipx from the old system Python version withand then reinstall it with the new system Python version withpython3.7 -m pip uninstall pipx, and reinstall all pipx packages.python -m pip install --user pipx
visch
11/18/2022, 4:00 AMRemovingJust copying from the issue š¤·and reinstalling pipx also worked for me! Thanks.~/.local/pipx
kathryn_cowie
11/18/2022, 4:00 AMpipx uninstall meltano. The log file is returned from installing again. I'll try those solutionsškathryn_cowie
11/18/2022, 3:03 PMkathryn_cowie
11/18/2022, 5:39 PMLoader 'target-postgres' could not be installed: failed to install plugin 'target-postgres'.
error: subprocess-exited-with-error
Ć python setup.py bdist_wheel did not run successfully.
...
module.c:1:10: fatal error: 'Python.h' file not found
...
ERROR: Failed building wheel for ciso8601
There are also some new pscyopg2 errors thrown in for target-postgres. I'll see if I can clean up Postgres and psychopg2 to make sure they're not dependent on the wrong thing. ....But not sure about the python header error. Will follow https://github.com/MeltanoLabs/Meta/issues/25christoph
11/18/2022, 10:59 PMERROR: Failed building wheel for ciso8601https://meltano.slack.com/archives/C01TCRBBJD7/p1668724974138119?thread_ts=1668716930.499579&cid=C01TCRBBJD7
kathryn_cowie
11/23/2022, 4:32 PMtarget-csv cisco wheel building failures by
⢠re-installing pipx as @visch suggested,
⢠removing meltano, /.meltano directory, and target-postgres from meltano.yml,
⢠then specifying the python path, which made the difference:
pipx install meltano --python /usr/local/bin/python3.10
To resolve the target-postgres issues with psycopg2, ran:
pip install psycopg2_binary
brew install openssl
brew link openssl
# For compilers to find openssl@3:
export LDFLAGS="-L/usr/local/opt/openssl@3/lib"
export CPPFLAGS="-I/usr/local/opt/openssl@3/include"christoph
11/23/2022, 8:06 PM