Argument Error
MAY4VFX opened this issue · 4 comments
what is my problem?
File "D:\Spout\Examples\spout_sender_example.py", line 121, in main
spoutSender.SendTexture(senderTextureID, GL_TEXTURE_2D, spoutSenderWidth, spoutSenderHeight, True, 0)
Boost.Python.ArgumentError: Python argument types in
SpoutSender.SendTexture(SpoutSender, numpy.uint32, IntConstant, int, int, bool, int)
did not match C++ signature:
SendTexture(class SpoutSender {lvalue}, unsigned int, unsigned int, unsigned int, unsigned int, bool, unsigned int)
I have encountered the same problem,
Convert numpy.uint32 to python data type
(https://stackoverflow.com/questions/9452775/converting-numpy-dtypes-to-native-python-types)
After that it was solved.
Have the same problem. But when checking the type of GL_TEXTURE_2D, its show as OpenGL.constants.IntConstant rather then numpy.uint32
How do you use this np.uint32(0).item() when it isn`t numpy?
I think you should check the senderTextureID
instead of GL_TEXTURE_2D
, SpoutSender
should be it self
.
Thank you. That works.