Page 1 of 2

pysideluxcoredemo.py problem

Posted: Mon Mar 11, 2019 6:23 pm
by nigec
I've been playing with the pysideluxcoredemo.py script, and I seem to have a problem

Code: Select all

Traceback (most recent call last):
  File "c:/Users/nige/Desktop/Batchzipper/pysideluxcoredemo.py", line 484, in timerEvent
    pyluxcore.ConvertFilmChannelOutput_3xFloat_To_4xUChar(self.filmWidth, self.filmHeight, self.imageBufferFloat, self.imageBufferUChar,
AttributeError: module 'pyluxcore' has no attribute 'ConvertFilmChannelOutput_3xFloat_To_4xUChar'
I'm using Python 3.5.4, Its the public sdk without opencl
Windows 10
I'm actually using guizero but I wanted to take a look at the pyside script to see how it worked

I had hellish problems getting it working with PySide2.. originally I had Python 3.5.2 and Pyside threw shiboken2 errors
when I upgraded python it worked but I had to change Pyside2's import structure in the script

Code: Select all

try:
    from PySide.QtGui import *
    from PySide.QtCore import *
    from shiboken import wrapInstance
    PYSIDE2 = False
except:
    from PySide2.QtCore import *
    from PySide2.QtGui import *
    from PySide2.QtWidgets import *
    from PySide2.QtUiTools import *
    from shiboken2 import wrapInstance
    PYSIDE2 = True

Re: pysideluxcoredemo.py problem

Posted: Mon Mar 11, 2019 7:27 pm
by B.Y.O.B.
See this post: viewtopic.php?f=4&t=371&p=4098&hilit=Co ... tput#p4098
You could try to do the conversion in numpy instead.

Re: pysideluxcoredemo.py problem

Posted: Mon Mar 11, 2019 7:55 pm
by nigec
that's beyond me, I'm hopeless with python
I already have a saved image which will do, but it would of been nice to go one step further :)
I was hoping to do something like I assume the script does

Re: pysideluxcoredemo.py problem

Posted: Mon Mar 11, 2019 8:52 pm
by nigec
luxcorerender-v2.0alpha0-sdk works
its a shame the script no longer works "out of the box" I'd imagine its the first place people would look

Re: pysideluxcoredemo.py problem

Posted: Mon Mar 11, 2019 10:54 pm
by Dade
nigec wrote: Mon Mar 11, 2019 8:52 pm luxcorerender-v2.0alpha0-sdk works
its a shame the script no longer works "out of the box" I'd imagine its the first place people would look
ConvertFilmChannelOutput_3xFloat_To_4xUChar() has been removed, I will add it again tomorrow (to the latest sources).

Re: pysideluxcoredemo.py problem

Posted: Tue Mar 12, 2019 7:29 am
by nigec
that would be great, thank you :)

Re: pysideluxcoredemo.py problem

Posted: Tue Mar 12, 2019 9:45 am
by Dade
nigec wrote: Tue Mar 12, 2019 7:29 am that would be great, thank you :)
Done: https://github.com/LuxCoreRender/LuxCor ... d5dbb065d3

Re: pysideluxcoredemo.py problem

Posted: Tue Mar 12, 2019 2:40 pm
by nigec
Thanks, sadly I don't have enough ram to build from source .. it was trying for 2 hours but everything went black.. my wife will be happy I go the house work done while I was waiting lol
I have a i7 3770k with 8gb ram.. is there any way to force it to use less ram?

Re: pysideluxcoredemo.py problem

Posted: Tue Mar 12, 2019 2:44 pm
by alpistinho
nigec wrote: Tue Mar 12, 2019 2:40 pm Thanks, sadly I don't have enough ram to build from source .. it was trying for 2 hours but everything went black.. my wife will be happy I go the house work done while I was waiting lol
I have a i7 3770k with 8gb ram.. is there any way to force it to use less ram?
I never had any problem on my computer, but you do have 4 times more threads than I do. If you use just 4 jobs it should work

Re: pysideluxcoredemo.py problem

Posted: Tue Mar 12, 2019 3:09 pm
by Dade
nigec wrote: Tue Mar 12, 2019 2:40 pm Thanks, sadly I don't have enough ram to build from source .. it was trying for 2 hours but everything went black.. my wife will be happy I go the house work done while I was waiting lol
I have a i7 3770k with 8gb ram.. is there any way to force it to use less ram?
You can use an automatic build too: viewtopic.php?f=9&t=736