LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-18-2009, 04:49 PM   #1
Neruocomp
Member
 
Registered: Oct 2004
Distribution: Slackware, CentOS
Posts: 135

Rep: Reputation: 15
python: webbrowser module causes my program to stick


I'm building this program in python and figure using webbrowser would be a good cross-platform way of launching the browser. Well when my script gets to webbroswer.open(url), it opens the browser but my program then hangs. From the terminal where I ran my script I have to press control-c to get my program to respond again. I get this output:

Traceback (most recent call last):
File "main.py", line 102, in openDavid
webbrowser.open_new_tab(url)
File "/usr/lib64/python2.6/webbrowser.py", line 69, in open_new_tab
return open(url, 2)
File "/usr/lib64/python2.6/webbrowser.py", line 61, in open
if browser.open(url, new, autoraise):
File "/usr/lib64/python2.6/webbrowser.py", line 365, in open
p.wait()
File "/usr/lib64/python2.6/subprocess.py", line 1137, in wait
pid, sts = os.waitpid(self.pid, 0)
KeyboardInterrupt

Think its a bug? How could I get around this? I figured trying to use os.system ('firefox') wouldnt work on both linux and windows.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Python: How to use the re module? donnied Programming 2 01-19-2009 12:26 PM
python update - Unable to load GTK2 Python bindings: No module named gtk itpedersen Linux - Software 2 10-03-2008 03:44 AM
Error in basic button response program in Python 2.4 with the Tkinter module jojotx0 Programming 1 05-23-2006 07:43 PM
program or python module to get video demensions shanenin Programming 2 08-01-2005 12:35 PM
Memory Stick Problems, can't detect module sg? GT_Onizuka Linux - Hardware 3 02-04-2004 07:41 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration