Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6157925
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:52:06+00:00 2026-05-23T20:52:06+00:00

Overview: I have an application that sometimes must make something with celery- and if

  • 0

Overview:

I have an application that sometimes must make something with celery- and if it is simple task such as count something- everything is ok.

I’ ve got one task which must convert existing file to another file using MS Windows program. So- I installed WINE, then installed application and added folowing task to my tasks.py:

def convert_file( fil, to_format = 'pdf', save_to = '/tmp', callback = None ):
    devnull = open( '/dev/null', 'w' )
    commands = "xvfb-run -a wine '[ABSOLUTE_PATH_TO_WINDOWS_APP]' /r /f 104 %s" % fil
    p = subprocess.Popen( commands, shell=True, cwd='/home/test', env=os.environ, stdout = devnull, stderr = subprocess.STDOUT )
    p.wait()
    devnull.close()
    if callback:
        subtask( callback ).delay( )
    else:
        return outfile

Problem:

The command isn’t called or is called but nothing is happening(there isn’t new file anywhere in filesystem)- but if I’ll call this command from bash or from interactive python shell, everything is ok.

Edit:
When I’m calling the command from command line I get this:

test@ubuntu:~$ xvfb-run -a /home/test/.wine/....exe /r /f 104 /home/test/fs/...
err:winediag:X11DRV_WineGL_InitOpenglInfo The Mesa OpenGL driver is using software rendering, most likely your OpenGL drivers haven't been installed correctly
test@ubuntu:~$ XIO:  fatal IO error 11 (Zasoby chwilowo niedostępne) on X server ":99"
      after 1262 requests (1226 known processed) with 0 events remaining.
[Here i must press enter]
test@ubuntu:~$ 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T20:52:06+00:00Added an answer on May 23, 2026 at 8:52 pm

    Use

    p = subprocess.Popen( commands, shell=True, cwd='/home/test', env=os.environ, stdout = subprocess.PIPE, stderr = subprocess.PIPE)
    

    for your Popen command, then

    print p.communicate()
    p.wait()
    print p.communicate()
    

    To see what it prints to stdout and stderr and figure out what you’re doing wrong.

    Edit: Xvfb is a fake framebuffer; it doesn’t have hardware acceleration. Try changing your wine settings not to require hardware acceleration / not to use OpenGL / to do software rendering with winecfg.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Overview: I have an array of 20 byte strings that needs to be stored
I have a document that is an overview document within a folder, there are
Overview: I'm designing a restaurant management application, and I have an entity called Order
I have a solution that is deployed using ClickOnce. It consists of an application,
I have a working application that establishes an SSL connection to a server. The
I have an application that shows a presentModalViewController upon launch. - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary
I have an application that presents a sort of catalog of items in a
I have a VSTO application that browses a directory and lists subfolders and files
Overview I’m building a simple web application consisting of a canvas and elements on
I have a JSF 2.0 application that I would like to start adding validators

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.