This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2011年06月02日 09:14 by hirsh, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Messages (3) | |||
|---|---|---|---|
| msg137469 - (view) | Author: de (hirsh) | Date: 2011年06月02日 09:14 | |
hi all, I'm using win7, with Ff as default browser. i wont to open url in other browser installed on my PC. i tried: url = 'http://www.google.com' op = webbrowser.get('opera') op.open(url) and i get this error: Traceback (most recent call last): File "<pyshell#26>", line 1, in <module> op = webbrowser.get('opera') File "C:\Python27\lib\webbrowser.py", line 52, in get raise Error("could not locate runnable browser") Error: could not locate runnable browser can anyone help? |
|||
| msg137527 - (view) | Author: Éric Araujo (eric.araujo) * (Python committer) | Date: 2011年06月03日 15:39 | |
Hello. This tracker is used to report bugs and file feature requests for Python itself, not request help (mailing list such as http://mail.python.org/pipermail/python-list/ are appropriate venues to ask for for help). I’m changing your question to a bug report about missing documentation. |
|||
| msg137613 - (view) | Author: Terry J. Reedy (terry.reedy) * (Python committer) | Date: 2011年06月04日 00:12 | |
The intended method of using a non-default browser is well documented and the OP did exactly the right thing. However, even if Opera is present, the 'right thing' does not work because nothing but iexplorer gets registered (and that not completely usefully), even if present on the system, because the registration code is buggy, as discussed in #10799. Hirch, if you had clicked Search and entered 'webbrowser' in the 'All text' box, you could have found that report. If you add a note to #10799 as to the exact default location of Opera (within Program Files, I presume), it might eventually help. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:18 | admin | set | github: 56446 |
| 2011年06月04日 00:12:54 | terry.reedy | set | status: open -> closed superseder: Improve webbrowser (.open) doc and behavior type: behavior components: + Library (Lib) nosy: + terry.reedy, georg.brandl messages: + msg137613 resolution: duplicate |
| 2011年06月03日 15:39:17 | eric.araujo | set | assignee: docs@python components: + Documentation title: how to open non defult browser? -> Document how to open non-default webbrowser nosy: + docs@python, eric.araujo versions: + Python 2.7, Python 3.2, Python 3.3 messages: + msg137527 stage: needs patch |
| 2011年06月02日 09:14:01 | hirsh | create | |