You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Beam JIRA Bot (Jira)" <ji...@apache.org> on 2020/09/18 17:08:01 UTC

[jira] [Commented] (BEAM-10757) Python license check precommit broken for enum34

    [ https://issues.apache.org/jira/browse/BEAM-10757?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17198445#comment-17198445 ] 

Beam JIRA Bot commented on BEAM-10757:
--------------------------------------

This issue is assigned but has not received an update in 30 days so it has been labeled "stale-assigned". If you are still working on the issue, please give an update and remove the label. If you are no longer working on the issue, please unassign so someone else may work on it. In 7 days the issue will be automatically unassigned.

> Python license check precommit broken for enum34
> ------------------------------------------------
>
>                 Key: BEAM-10757
>                 URL: https://issues.apache.org/jira/browse/BEAM-10757
>             Project: Beam
>          Issue Type: Bug
>          Components: test-failures
>            Reporter: Valentyn Tymofieiev
>            Assignee: Eugene Kirpichov
>            Priority: P0
>              Labels: stale-assigned
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> ```
> ERROR:root:Error occurred when pull license for enum34 from {'license': 'https://bitbucket.org/stoneleaf/enum34/raw/c208549a93b71b948ff7bbdfd29dce8f85527916/enum/LICENSE'}.
> 16:06:02 Traceback (most recent call last):
> 16:06:02   File "/tmp/license_scripts/pull_licenses_py.py", line 94, in pull_from_url
> 16:06:02     url_read = urlopen(config['license'])
> 16:06:02   File "/usr/local/lib/python2.7/urllib2.py", line 154, in urlopen
> 16:06:02 �[0m�[91m    return opener.open(url, data, timeout)
> 16:06:02   File "/usr/local/lib/python2.7/urllib2.py", line 435, in open
> 16:06:02     response = meth(req, response)
> 16:06:02   File "/usr/local/lib/python2.7/urllib2.py", line 548, in http_response
> 16:06:02     'http', request, response, code, msg, hdrs)
> 16:06:02   File "/usr/local/lib/python2.7/urllib2.py", line 473, in error
> 16:06:02     return self._call_chain(*args)
> 16:06:02 �[0m�[91m  File "/usr/local/lib/python2.7/urllib2.py", line 407, in _call_chain
> 16:06:02     result = func(*args)
> 16:06:02   File "/usr/local/lib/python2.7/urllib2.py", line 556, in http_error_default
> ```
> I am not sure where is the source of truth for the license now. We can retrieve the license from a released container, check it in Beam repo and reference it as a manual license, see, for example: https://github.com/apache/beam/blob/0d362dd4d2d660b4cdf40f6b87b3fa10965098e1/sdks/python/container/license_scripts/dep_urls_py.yaml#L108.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)