On 24. 10. 19 13:30, Peter Robinson wrote:
On Thu, Oct 24, 2019 at 11:48 AM Miro Hrončok <mhroncok@xxxxxxxxxx
<mailto:mhroncok@xxxxxxxxxx>> wrote:
How do I find our why is Python 2 in the critical path?
Does running scripts/get-critpath from the releng repo give any insight?
No luck so far:
$ python get-critpath
Traceback (most recent call last):
File "get-critpath", line 13, in <module>
import pdc_client
ModuleNotFoundError: No module named 'pdc_client'
$ sudo dnf install python3-pdc-client
...
python3-pdc-client-1.8.0-12.fc30.noarch
python3-beanbag-1.9.2-12.fc30.noarch
...
$ python get-critpath
usage:
get-critpath <branch>
get-critpath: error: the following arguments are required: branch
$ python3 get-critpath f31
Traceback (most recent call last):
File "get-critpath", line 52, in <module>
main()
File "get-critpath", line 29, in main
pdc = pdc_client.PDCClient('fedora')
File "/usr/lib/python3.7/site-packages/pdc_client/__init__.py", line 238, in
__init__
token = self.obtain_token()
File "/usr/lib/python3.7/site-packages/pdc_client/__init__.py", line 252, in
obtain_token
return self.auth[end_point]._(page_size=None)['token']
File "/usr/lib/python3.7/site-packages/pdc_client/__init__.py", line 347, in
__call__
return self.client(*args, **kwargs)
File "/usr/lib/python3.7/site-packages/beanbag/namespace.py", line 136, in fn
*args, **kwargs)
File "/usr/lib/python3.7/site-packages/beanbag/url_v1.py", line 102, in call
return self.make_request(path, verb, kwargs, body)
File "/usr/lib/python3.7/site-packages/beanbag/url_v1.py", line 151, in
make_request
r = self.session.request(verb, path, params=params, data=ebody)
File "/usr/lib/python3.7/site-packages/requests/sessions.py", line 519, in
request
prep = self.prepare_request(req)
File "/usr/lib/python3.7/site-packages/requests/sessions.py", line 462, in
prepare_request
hooks=merge_hooks(request.hooks, self.hooks),
File "/usr/lib/python3.7/site-packages/requests/models.py", line 313, in prepare
self.prepare_url(url, params)
File "/usr/lib/python3.7/site-packages/requests/models.py", line 387, in
prepare_url
raise MissingSchema(error)
requests.exceptions.MissingSchema: Invalid URL 'fedora/auth/token/obtain/': No
schema supplied. Perhaps you meant http://fedora/auth/token/obtain/?
$ sudo dnf install pdc-client
...
pdc-client-1.8.0-12.fc30.noarch
...
$ python get-critpath f31
Traceback (most recent call last):
File "get-critpath", line 52, in <module>
main()
File "get-critpath", line 29, in main
pdc = pdc_client.PDCClient('fedora')
File "/usr/lib/python3.7/site-packages/pdc_client/__init__.py", line 238, in
__init__
token = self.obtain_token()
File "/usr/lib/python3.7/site-packages/pdc_client/__init__.py", line 252, in
obtain_token
return self.auth[end_point]._(page_size=None)['token']
File "/usr/lib/python3.7/site-packages/pdc_client/__init__.py", line 347, in
__call__
return self.client(*args, **kwargs)
File "/usr/lib/python3.7/site-packages/beanbag/namespace.py", line 136, in fn
*args, **kwargs)
File "/usr/lib/python3.7/site-packages/beanbag/url_v1.py", line 102, in call
return self.make_request(path, verb, kwargs, body)
File "/usr/lib/python3.7/site-packages/beanbag/url_v1.py", line 155, in
make_request
"Bad response code: %d" % (r.status_code,))
beanbag.bbexcept.BeanBagException: Bad response code: 401
--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx