ragyibrahim commented on PR #25325:
URL: https://github.com/apache/beam/pull/25325#issuecomment-1421947099
Hey, @ahmedabu98 I've tried running the commands to check for linting
changes that need to be made, however, I get the below error:
```bash
tox -e py3-yapf && ../../gradlew lint
.pkg: _optional_hooks> python
/opt/homebrew/lib/python3.10/site-packages/pyproject_api/_backend.py True
setuptools.build_meta __legacy__
.pkg: get_requires_for_build_sdist> python
/opt/homebrew/lib/python3.10/site-packages/pyproject_api/_backend.py True
setuptools.build_meta __legacy__
.pkg: prepare_metadata_for_build_wheel> python
/opt/homebrew/lib/python3.10/site-packages/pyproject_api/_backend.py True
setuptools.build_meta __legacy__
.pkg: build_sdist> python
/opt/homebrew/lib/python3.10/site-packages/pyproject_api/_backend.py True
setuptools.build_meta __legacy__
py3-yapf: install_package> target/.tox/py3-yapf/bin/python
/Users/ragy/Documents/RNA/GitHub/beam/sdks/python/target/.tox/py3-yapf/bin/pip
install --retries 10 --force-reinstall --no-deps
/Users/ragy/Documents/RNA/GitHub/beam/sdks/python/target/.tox/.tmp/package/4/apache-beam-2.46.0.dev0.tar.gz
Processing ./target/.tox/.tmp/package/4/apache-beam-2.46.0.dev0.tar.gz
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [10 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File
"/Users/ragy/Documents/RNA/GitHub/beam/sdks/python/target/.tox/py3-yapf/tmp/pip-req-build-seoqvdlv/setup.py",
line 180, in <module>
generate_protos_first()
File
"/Users/ragy/Documents/RNA/GitHub/beam/sdks/python/target/.tox/py3-yapf/tmp/pip-req-build-seoqvdlv/setup.py",
line 150, in generate_protos_first
gen_protos.generate_proto_files()
File
"/Users/ragy/Documents/RNA/GitHub/beam/sdks/python/target/.tox/py3-yapf/tmp/pip-req-build-seoqvdlv/gen_protos.py",
line 476, in generate_proto_files
raise RuntimeError(error_msg)
RuntimeError: Not in apache git tree, unable to find proto definitions.
[end of output]
note: This error originates from a subprocess, and is likely not a problem
with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
py3-yapf: exit 1 (0.61 seconds)
/Users/ragy/Documents/RNA/GitHub/beam/sdks/python>
target/.tox/py3-yapf/bin/python
/Users/ragy/Documents/RNA/GitHub/beam/sdks/python/target/.tox/py3-yapf/bin/pip
install --retries 10 --force-reinstall --no-deps
/Users/ragy/Documents/RNA/GitHub/beam/sdks/python/target/.tox/.tmp/package/4/apache-beam-2.46.0.dev0.tar.gz
pid=80407
.pkg: _exit> python
/opt/homebrew/lib/python3.10/site-packages/pyproject_api/_backend.py True
setuptools.build_meta __legacy__
py3-yapf: FAIL code 1 (1.78 seconds)
evaluation failed :( (1.85 seconds)
```
I checked the issues and it seems that this was a problem in apache-beam
2.43 and was fixed. Please see the issue:
https://github.com/apache/beam/issues/23227
Not sure how to get past this
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]