Python Forum
xvfb - Python Module - simpe_3dviz - wxpython - gui
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
xvfb - Python Module - simpe_3dviz - wxpython - gui
#2
It's only a conjecture but I find the way you start the Xvfb process a little strange. Why use shell=True? Why use stdout=PIPE? The problem with stdout=PIPE is that if the process attempts to print some output it will block because you didn't add code to read in the pipe.

I suggest that you try
xproc = subprocess.Popen(['sudo',  'Xvfb', ':1'])
You may also consider to terminate the subprocess at some point.
« We can solve any problem by introducing an extra level of indirection »
Reply


Messages In This Thread
RE: xvfb - Python Module - simpe_3dviz - wxpython - gui - by Gribouillis - Apr-11-2024, 11:09 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [WxPython] wxpython and python 3.6 on linux Barrowman 3 6,949 Mar-15-2018, 06:57 PM
Last Post: Larz60+
  wxPython install on raspberry pi3 and python 3.6.2. djdan_23 3 7,259 Sep-13-2017, 11:49 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020