rough-engineer-58925
11/18/2024, 11:54 AMpants export \
--resolve=python-default \
--export-py-generated-sources-in-resolve=python-default
It fails with:
Traceback (most recent call last):
File "/Users/achrafmamdouh/GitHub/hera/dist/export/python/virtualenvs/python-default/3.12.7/__pants_codegen__/codegen_setup.py", line 15, in <module>
os.rename(os.path.join(codegen_dir, item), os.path.join(site_packages_dir, item))
OSError: [Errno 66] Directory not empty: '/Users/achrafmamdouh/GitHub/hera/dist/export/python/virtualenvs/python-default/3.12.7/__pants_codegen__/google' -> '/Users/achrafmamdouh/GitHub/hera/dist/export/python/virtualenvs/python-default/3.12.7/lib/python3.12/site-packages/google'
I understand why the error is emitted:
1. `Google`'s types have a package starting with google
. Hence, the output of the export is written under a folder named google
.
2. At the same time, I have several 3rd party deps that are also written there. Hence the clash.gorgeous-winter-99296
11/18/2024, 12:23 PMrough-engineer-58925
11/18/2024, 12:42 PMrough-engineer-58925
11/18/2024, 12:43 PMrough-engineer-58925
11/18/2024, 12:46 PMTimestamp
.rough-engineer-58925
11/18/2024, 1:09 PMgoogle
to goog
solve my issue for the time being.rough-engineer-58925
11/18/2024, 6:52 PMpackage
name because well-known types have extra behavior
@gorgeous-winter-99296 this is a blocker. Can you help me?gorgeous-winter-99296
11/18/2024, 6:56 PM