[issue41754] Webbrowser Module Cannot Find xdg-settings on OSX

2021-02-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is it possible that your PATH contains a non-directory? Because it can give results a NotADirectoryError: >>> subprocess.check_output(['xdg-settings', 'get', 'default-web-browser'], >>> env={'PATH': '/etc/hosts'}) Traceback (most recent call last): File

[issue41754] Webbrowser Module Cannot Find xdg-settings on OSX

2020-11-08 Thread Ronald Oussoren
Ronald Oussoren added the comment: New changeset db087f6d9ef9a7c873cd883ee120126fc0ca0c72 by Miss Islington (bot) in branch '3.8': bpo-41754: Ignore NotADirectoryError in invocation of xdg-settings (GH-23075) (GH-23198)

[issue41754] Webbrowser Module Cannot Find xdg-settings on OSX

2020-11-08 Thread Ronald Oussoren
Change by Ronald Oussoren : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue41754] Webbrowser Module Cannot Find xdg-settings on OSX

2020-11-08 Thread miss-islington
miss-islington added the comment: New changeset 371c33567a0b6afb93ffde2fb4564fe57a41945b by Miss Islington (bot) in branch '3.9': bpo-41754: Ignore NotADirectoryError in invocation of xdg-settings (GH-23075) https://github.com/python/cpython/commit/371c33567a0b6afb93ffde2fb4564fe57a41945b

[issue41754] Webbrowser Module Cannot Find xdg-settings on OSX

2020-11-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +22098 pull_request: https://github.com/python/cpython/pull/23198 ___ Python tracker ___

[issue41754] Webbrowser Module Cannot Find xdg-settings on OSX

2020-11-08 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +22097 pull_request: https://github.com/python/cpython/pull/23197 ___ Python tracker

[issue41754] Webbrowser Module Cannot Find xdg-settings on OSX

2020-11-08 Thread Ronald Oussoren
Ronald Oussoren added the comment: New changeset 23831a7a90956e38b7d70304bb6afe30d37936de by Ronald Oussoren in branch 'master': bpo-41754: Ignore NotADirectoryError in invocation of xdg-settings (GH-23075) https://github.com/python/cpython/commit/23831a7a90956e38b7d70304bb6afe30d37936de

[issue41754] Webbrowser Module Cannot Find xdg-settings on OSX

2020-11-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've created a PR that ignores this exception. -- ___ Python tracker ___ ___ Python-bugs-list

[issue41754] Webbrowser Module Cannot Find xdg-settings on OSX

2020-11-01 Thread Ronald Oussoren
Change by Ronald Oussoren : -- keywords: +patch pull_requests: +21995 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/23075 ___ Python tracker

[issue41754] Webbrowser Module Cannot Find xdg-settings on OSX

2020-10-19 Thread Ned Deily
Change by Ned Deily : -- keywords: +newcomer friendly stage: -> needs patch type: crash -> behavior versions: -Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___

[issue41754] Webbrowser Module Cannot Find xdg-settings on OSX

2020-10-19 Thread Ned Deily
Ned Deily added the comment: That does seem very odd but the issue clearly has been seen by multiple users. Since it shouldn't cause any negative effects, I'm in favor of just adding NotADirectoryError to the try/except list as suggested in the workaround and make the problem go away.

[issue41754] Webbrowser Module Cannot Find xdg-settings on OSX

2020-10-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: It is far from clear what's going on here. In particular, it not clear to my why check_output(['xdg-settings', ...]) would ever raise NotADirectoryError. - What packages do you have installed through homebrew? - Is there an xdg-settings command installed

[issue41754] Webbrowser Module Cannot Find xdg-settings on OSX

2020-09-10 Thread Tony DiLoreto
New submission from Tony DiLoreto : The following code does not work on many OSX installations of Python via homebrew: >>> import webbrowser >>> webbrowser.open("http://www.google.com;) And throws the following error stack trace: File