svedese
08-02-11, 21:06
Ciao a tutti e complimenti per l'interessantissimo forum!
Mi sto occupando di mettere su una piccola render farm che effettui i calcoli per un mio amico che modella (lui ci mette l'arte, io la forza bruta ;-)).
Per vari motivi la scelta è caduta su Linux come sistema operativo e DrQueue come rendering manager. L'installazione è filata liscia ed ora ho 5 macchine virtuali di test con DrQueue installato e funzionante (1 master + 4 slave).
Il problema inizia quando invio i jobs: lo script generator non prevede linux+wine come sistema per i slave ed io conosco ben poco di python.
Ho cercato di copiare quanto previsto per lo script di Cinema 4D, inserendo le seguenti righe nel file lightwave_sg.py:
if DRQUEUE_OS == "LINUX":
# we use wine on linux (this is a hack, but works)
# there is a tightvnc server running on display :1
# see wine bug #8069
# the user running DrQueue slave process needs to have wine and Cinema4D installed
# convert to windows path with drive letter
SCENE=subprocess.Popen(['winepath', '-w ' + SCENE], stdout=subprocess.PIPE).communicate()[0]
PROJECTDIR=subprocess.Popen(["winepath", "-w "+PROJECTDIR], stdout=subprocess.PIPE).communicate()[0]
CONFIGDIR = subprocess.Popen(["winepath", "-w "+CONFIGDIR], stdout=subprocess.PIPE).communicate()[0]
WORKDIR="/var/drqueue/render/Lightwave/Programs"
ENGINE_PATH="wine lwsn.exe"
# change into workdir, better for wine startup
os.chdir(WORKDIR)
# set env variable, so wine can access the xserver even though we are rendering headless
#os.environ["DISPLAY"]=":1"Purtroppo il rendering non parte, sembra che lwsn.exe non riceva i parametri. Nei file log ho infatti trovato i seguenti errori:
Log started at Tue Feb 8 00:13:24 2011
Computer: VirtualBox-1
Log filename: /var/drqueue/logs/000.teiere005/teiere005.0001
winepath: invalid option '- '
Try 'winepath --help' for help
winepath: invalid option '- '
Try 'winepath --help' for help
winepath: invalid option '- '
Try 'winepath --help' for help
wine lwsn.exe -3 -c -d 1 1 1
wine: cannot find L"D:\\Lightwave\\Programs\\lwsn.exe"
Requeueing frame...
Tue Feb 8 00:13:26 2011 (PID:17785) : | Info | Computer: name:'VirtualBox-1' id:'0' : Task: Jobid:'0' Jobname:'teiere005' Frame:'1' Taskid:'0' Compid:'0' : -> MSG: Task signaled
Log started at Tue Feb 8 00:13:26 2011
Computer: VirtualBox-1
Log filename: /var/drqueue/logs/000.teiere005/teiere005.0001
winepath: invalid option '- '
Try 'winepath --help' for help
winepath: invalid option '- '
Try 'winepath --help' for help
winepath: invalid option '- '
Try 'winepath --help' for help
wine lwsn.exe -3 -c -d 1 1 1
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
err:systray:initialize_systray Could not create tray window
err:wgl:process_attach X11DRV or GDI32 not loaded. Cannot create default context.
err:module:attach_process_dlls "opengl32.dll" failed to initialize, aborting
err:module:LdrInitializeThunk Main exe initialization for L"D:\\Lightwave\\Programs\\lwsn.exe" failed, status c0000142
Requeueing frame...
Tue Feb 8 00:13:28 2011 (PID:17832) : | Info | Computer: name:'VirtualBox-1' id:'0' : Task: Jobid:'0' Jobname:'teiere005' Frame:'1' Taskid:'0' Compid:'0' : -> MSG: Task signaled
Log started at Tue Feb 8 00:13:28 2011
Computer: VirtualBox-1
Log filename: /var/drqueue/logs/000.teiere005/teiere005.0001
...e così via.
Mi manca solo questo ultimo passaggio e poi metto tutto in un tutorial. Qualcuno è in grado di aiutarmi?
Grazie!!
Mi sto occupando di mettere su una piccola render farm che effettui i calcoli per un mio amico che modella (lui ci mette l'arte, io la forza bruta ;-)).
Per vari motivi la scelta è caduta su Linux come sistema operativo e DrQueue come rendering manager. L'installazione è filata liscia ed ora ho 5 macchine virtuali di test con DrQueue installato e funzionante (1 master + 4 slave).
Il problema inizia quando invio i jobs: lo script generator non prevede linux+wine come sistema per i slave ed io conosco ben poco di python.
Ho cercato di copiare quanto previsto per lo script di Cinema 4D, inserendo le seguenti righe nel file lightwave_sg.py:
if DRQUEUE_OS == "LINUX":
# we use wine on linux (this is a hack, but works)
# there is a tightvnc server running on display :1
# see wine bug #8069
# the user running DrQueue slave process needs to have wine and Cinema4D installed
# convert to windows path with drive letter
SCENE=subprocess.Popen(['winepath', '-w ' + SCENE], stdout=subprocess.PIPE).communicate()[0]
PROJECTDIR=subprocess.Popen(["winepath", "-w "+PROJECTDIR], stdout=subprocess.PIPE).communicate()[0]
CONFIGDIR = subprocess.Popen(["winepath", "-w "+CONFIGDIR], stdout=subprocess.PIPE).communicate()[0]
WORKDIR="/var/drqueue/render/Lightwave/Programs"
ENGINE_PATH="wine lwsn.exe"
# change into workdir, better for wine startup
os.chdir(WORKDIR)
# set env variable, so wine can access the xserver even though we are rendering headless
#os.environ["DISPLAY"]=":1"Purtroppo il rendering non parte, sembra che lwsn.exe non riceva i parametri. Nei file log ho infatti trovato i seguenti errori:
Log started at Tue Feb 8 00:13:24 2011
Computer: VirtualBox-1
Log filename: /var/drqueue/logs/000.teiere005/teiere005.0001
winepath: invalid option '- '
Try 'winepath --help' for help
winepath: invalid option '- '
Try 'winepath --help' for help
winepath: invalid option '- '
Try 'winepath --help' for help
wine lwsn.exe -3 -c -d 1 1 1
wine: cannot find L"D:\\Lightwave\\Programs\\lwsn.exe"
Requeueing frame...
Tue Feb 8 00:13:26 2011 (PID:17785) : | Info | Computer: name:'VirtualBox-1' id:'0' : Task: Jobid:'0' Jobname:'teiere005' Frame:'1' Taskid:'0' Compid:'0' : -> MSG: Task signaled
Log started at Tue Feb 8 00:13:26 2011
Computer: VirtualBox-1
Log filename: /var/drqueue/logs/000.teiere005/teiere005.0001
winepath: invalid option '- '
Try 'winepath --help' for help
winepath: invalid option '- '
Try 'winepath --help' for help
winepath: invalid option '- '
Try 'winepath --help' for help
wine lwsn.exe -3 -c -d 1 1 1
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
err:systray:initialize_systray Could not create tray window
err:wgl:process_attach X11DRV or GDI32 not loaded. Cannot create default context.
err:module:attach_process_dlls "opengl32.dll" failed to initialize, aborting
err:module:LdrInitializeThunk Main exe initialization for L"D:\\Lightwave\\Programs\\lwsn.exe" failed, status c0000142
Requeueing frame...
Tue Feb 8 00:13:28 2011 (PID:17832) : | Info | Computer: name:'VirtualBox-1' id:'0' : Task: Jobid:'0' Jobname:'teiere005' Frame:'1' Taskid:'0' Compid:'0' : -> MSG: Task signaled
Log started at Tue Feb 8 00:13:28 2011
Computer: VirtualBox-1
Log filename: /var/drqueue/logs/000.teiere005/teiere005.0001
...e così via.
Mi manca solo questo ultimo passaggio e poi metto tutto in un tutorial. Qualcuno è in grado di aiutarmi?
Grazie!!