You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/03/19 03:26:00 UTC

[jira] [Work logged] (BEAM-14122) Python portable precommit broken: 'get_installed_distributions'

     [ https://issues.apache.org/jira/browse/BEAM-14122?focusedWorklogId=744572&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-744572 ]

ASF GitHub Bot logged work on BEAM-14122:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 19/Mar/22 03:25
            Start Date: 19/Mar/22 03:25
    Worklog Time Spent: 10m 
      Work Description: aaltay commented on pull request #17132:
URL: https://github.com/apache/beam/pull/17132#issuecomment-1072929138


   Failing test "Collect And Deploy Playground Examples / Deploy examples (pull_request) " is unrelated. (Seems like a perma-red test, discussion on dev.)


-- 
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


Issue Time Tracking
-------------------

            Worklog Id:     (was: 744572)
    Remaining Estimate: 0h
            Time Spent: 10m

> Python portable precommit broken: 'get_installed_distributions'
> ---------------------------------------------------------------
>
>                 Key: BEAM-14122
>                 URL: https://issues.apache.org/jira/browse/BEAM-14122
>             Project: Beam
>          Issue Type: Bug
>          Components: test-failures
>            Reporter: Kyle Weaver
>            Priority: P1
>              Labels: currently-failing
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Successfully installed PTable-0.9.2 pip-licenses-2.3.0
> WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
> Traceback (most recent call last):
>   File "/usr/local/lib/python3.9/site-packages/piplicenses.py", line 40, in <module>
>     from pip._internal.utils.misc import get_installed_distributions
> ImportError: cannot import name 'get_installed_distributions' from 'pip._internal.utils.misc' (/usr/local/lib/python3.9/site-packages/pip/_internal/utils/misc.py)
> During handling of the above exception, another exception occurred:
> Traceback (most recent call last):
>   File "/usr/local/bin/pip-licenses", line 5, in <module>
>     from piplicenses import main
>   File "/usr/local/lib/python3.9/site-packages/piplicenses.py", line 42, in <module>
>     from pip import get_installed_distributions
> ImportError: cannot import name 'get_installed_distributions' from 'pip' (/usr/local/lib/python3.9/site-packages/pip/__init__.py)
> Traceback (most recent call last):
>   File "/tmp/license_scripts/pull_licenses_py.py", line 166, in <module>
>     dependencies = run_pip_licenses()
>   File "/tmp/license_scripts/pull_licenses_py.py", line 49, in run_pip_licenses
>     dependencies = run_bash_command(command)
>   File "/tmp/license_scripts/pull_licenses_py.py", line 44, in run_bash_command
>     return subprocess.check_output(command.split()).decode('utf-8')
>   File "/usr/local/lib/python3.9/subprocess.py", line 424, in check_output
>     return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
>   File "/usr/local/lib/python3.9/subprocess.py", line 528, in run
>     raise CalledProcessError(retcode, process.args,
> subprocess.CalledProcessError: Command '['pip-licenses', '--with-license-file', '--with-urls', '--from=mixed', '--ignore', 'apache-beam', '--format=json']' returned non-zero exit status 1.
> The command '/bin/sh -c if [ "$pull_licenses" = "true" ] ; then       pip install 'pip-licenses<3.0.0' pyyaml tenacity &&       python /tmp/license_scripts/pull_licenses_py.py ;     fi' returned a non-zero code: 1
> > Task :sdks:python:container:py39:docker FAILED
> https://ci-beam.apache.org/job/beam_PreCommit_Portable_Python_Cron/4748



--
This message was sent by Atlassian Jira
(v8.20.1#820001)