pysideluxcoredemo.py problem
Posted: Mon Mar 11, 2019 6:23 pm
I've been playing with the pysideluxcoredemo.py script, and I seem to have a problem
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
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'
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