spiraltechnica / Spout-for-Python

A modified Spout library using Boost::Python to enable Spout texture sharing using Python.
111 stars 34 forks source link

How import SpoutSDK in python? #3

Open isdzaurov opened 6 years ago

isdzaurov commented 6 years ago

Hi guys when i run hello.py i get error "import SpoutSDK. How can i import it in python?

yuan7407 commented 6 years ago

The same issue on python3.7, numpy+opencv+pygame installed, win 10.

yuan7407 commented 6 years ago

C:\Users\D2C\Downloads\Spout-for-Python-master\Examples>python hello.py Traceback (most recent call last): File "hello.py", line 5, in import SpoutSDK ImportError: DLL load failed: %1

Makio64 commented 6 years ago

Same error, any lead on it ?

Makio64 commented 6 years ago

Solved by building boost and then SpoutSDK, the python version have to match else python ignore the .pyd like it doesnt exist..

PS : if you are on visualstudio2017 when you build boost you need to change --toolset=msvc-14.0 to --toolset=msvc-14.1

yuan7407 commented 6 years ago

@Makio64 thanks for the solution, I switched to python3.5 and reinstalled everything then it works

masllsam commented 5 years ago

I have the same issue, downgraded to python 3.5.2 but it didn't work, then I dowgraded to 3.5 but it is still not resolved.. do you have some other suggestions?

Hantoo commented 5 years ago

I'm having issues with this. Is it possible to create .pyd files for the common versions? I'm having issues trying to compile the .dll for my machine.

david-sullivan commented 4 years ago

I've had issues updating this to python 3.7. Now VS2017 is looking for python27.lib (???).... IF anybody has managed to build it for python 3.7, the pyd would be great, or a breakdown of the changes they made in the project. Having spout available in python would be very useful.

eps696 commented 4 years ago

@david-sullivan @Hantoo don't remember where i got it, but here it is http://eps.here.ru/work/SpoutSDK37.zip

mirabellej commented 4 years ago

For anyone who is still having trouble getting this to work, try this: https://rusin.work/vjing/tools/spout-for-python/