martijn_raats
09/06/2023, 11:26 AMWill Da Silva (Arch)
09/06/2023, 12:54 PMmartijn_raats
09/06/2023, 5:42 PMmartijn_raats
09/06/2023, 5:42 PMmartijn_raats
09/06/2023, 5:42 PMedgar_ramirez_mondragon
09/06/2023, 6:42 PMERROR: Package 'thk-target-mysql' requires a different Python: 3.11.5 not in '<=3.11,>=3.8.1'
So you could try using Python < 3.11.
Though I'm also seeing a build error even using Python 3.10:
Exception: Can not find valid pkg-config name.
Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS env vars manually
I see the library only has Windows wheels, and I'm probably missing some dev libraries.martijn_raats
09/06/2023, 6:57 PMedgar_ramirez_mondragon
09/06/2023, 7:16 PMpipx install git+<https://github.com/thkwag/target-mysql.git> --python python3.11martijn_raats
09/06/2023, 7:31 PMedgar_ramirez_mondragon
09/06/2023, 7:56 PMrich traceback that you shared you should see normal logging where there's one or more messages like
Installing with args 'thk-target-mysql' into virtual environment for 'loaders/target-mysql
at debug level. Which means Meltano is running pip install thk-target-mysql under the hood.
We could certainly surface the pip error, which I think is printed to the subprocess' stdout. If you are interested in looking at the code and maybe submitting a PR, the relevant location is here. Maybe it's as simple as adding something like
stdout = await err.process.stdout.read()
logger.error(stdout.decode("utf-8"))Will Da Silva (Arch)
09/06/2023, 7:58 PMpython setting feature released in v3.0.0edgar_ramirez_mondragon
09/06/2023, 10:01 PMpip install subprocess is missing an extract_stderr callback?Will Da Silva (Arch)
09/06/2023, 10:04 PMmartijn_raats
09/07/2023, 7:47 AMedgar_ramirez_mondragon
09/13/2023, 12:11 AMuser
09/18/2023, 6:18 PM