Valentyn Tymofieiev created BEAM-10757:
------------------------------------------
Summary: 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
```
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)