You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "AnandInguva (via GitHub)" <gi...@apache.org> on 2023/03/28 19:15:33 UTC

[GitHub] [beam] AnandInguva opened a new issue, #26017: [Bug]: Fix error in pull_licenses_py.py for Python 3.11

AnandInguva opened a new issue, #26017:
URL: https://github.com/apache/beam/issues/26017

   ### What happened?
   
   Console log: https://ci-beam.apache.org/job/beam_PostCommit_Python311_PR/3/consoleFull
   
   ```
   Traceback (most recent call last):
   #25 3.754   File "/usr/local/bin/pip-licenses", line 8, in <module>
   #25 3.754     sys.exit(main())
   #25 3.754              ^^^^^^
   #25 3.754   File "/usr/local/lib/python3.11/site-packages/piplicenses.py", line 900, in main
   #25 3.755     output_string = create_output_string(args)
   #25 3.755                     ^^^^^^^^^^^^^^^^^^^^^^^^^^
   #25 3.755   File "/usr/local/lib/python3.11/site-packages/piplicenses.py", line 558, in create_output_string
   #25 3.755     table = create_licenses_table(args, output_fields)
   #25 3.755             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   #25 3.755   File "/usr/local/lib/python3.11/site-packages/piplicenses.py", line 303, in create_licenses_table
   #25 3.755     for pkg in get_packages(args):
   #25 3.755   File "/usr/local/lib/python3.11/site-packages/piplicenses.py", line 254, in get_packages
   #25 3.755     pkg_name = pkg.project_name
   #25 3.755                ^^^^^^^^^^^^^^^^
   #25 3.755 AttributeError: 'PathDistribution' object has no attribute 'project_name'
   #25 3.824 Traceback (most recent call last):
   #25 3.824   File "/tmp/license_scripts/pull_licenses_py.py", line 167, in <module>
   #25 3.824     dependencies = run_pip_licenses()
   #25 3.824                    ^^^^^^^^^^^^^^^^^^
   #25 3.824   File "/tmp/license_scripts/pull_licenses_py.py", line 49, in run_pip_licenses
   #25 3.824     dependencies = run_bash_command(command)
   #25 3.824                    ^^^^^^^^^^^^^^^^^^^^^^^^^
   #25 3.824   File "/tmp/license_scripts/pull_licenses_py.py", line 44, in run_bash_command
   #25 3.824     return subprocess.check_output(command.split()).decode('utf-8')
   #25 3.824            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   #25 3.824   File "/usr/local/lib/python3.11/subprocess.py", line 466, in check_output
   #25 3.824     return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
   #25 3.824            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   #25 3.824   File "/usr/local/lib/python3.11/subprocess.py", line 571, in run
   #25 3.825     raise CalledProcessError(retcode, process.args,
   #25 3.825 subprocess.CalledProcessError: Command '['pip-licenses', '--with-license-file', '--with-urls', '--from=mixed', '--ignore', 'apache-beam', '--format=json']' returned non-zero exit status 1.
   #25 ERROR: executor failed running [/bin/sh -c if [ "$pull_licenses" = "true" ] ; then       pip install 'pip-licenses<4.0.0' pyyaml tenacity &&       python /tmp/license_scripts/pull_licenses_py.py ;     fi]: exit code: 1
   ```
   
   Pull licenses fails with the above error.
   
   ### Issue Priority
   
   Priority: 2 (default / most bugs should be filed as P2)
   
   ### Issue Components
   
   - [X] Component: Python SDK
   - [ ] Component: Java SDK
   - [ ] Component: Go SDK
   - [ ] Component: Typescript SDK
   - [ ] Component: IO connector
   - [ ] Component: Beam examples
   - [ ] Component: Beam playground
   - [ ] Component: Beam katas
   - [ ] Component: Website
   - [ ] Component: Spark Runner
   - [ ] Component: Flink Runner
   - [ ] Component: Samza Runner
   - [ ] Component: Twister2 Runner
   - [ ] Component: Hazelcast Jet Runner
   - [ ] Component: Google Cloud Dataflow Runner


-- 
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: github-unsubscribe@beam.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] AnandInguva commented on issue #26017: [Bug]: Fix error in pull_licenses_py.py for Python 3.11

Posted by "AnandInguva (via GitHub)" <gi...@apache.org>.
AnandInguva commented on issue #26017:
URL: https://github.com/apache/beam/issues/26017#issuecomment-1487469846

   .take-issue


-- 
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: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] tvalentyn closed issue #26017: [Bug]: Fix error in pull_licenses_py.py for Python 3.11

Posted by "tvalentyn (via GitHub)" <gi...@apache.org>.
tvalentyn closed issue #26017: [Bug]: Fix error in pull_licenses_py.py for Python 3.11
URL: https://github.com/apache/beam/issues/26017


-- 
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: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org