Closed Celeborn2BeAlive closed 2 years ago
@Celeborn2BeAlive is this similar to this issue? #667 i think that was also in regards to blender.
@ssteinbach Yes it is ! Didn't notice it was related to Blender (I only have read the post mentionning the dll issue). They also discuss the fact that otio can be installed from a wheel in Blender, so I guess the only thing missing for it to work out of the box with "pip install" is for someone having the rights to upload the wheel on pipy. It could also help people that don't have a C/C++ build env on their computer but still want to use otio from python on Windows.
I think that thread has some instructions for how to make it work... I'm going to close this issue as a duplicate unless there is something else I missed in this one! Thanks!
But do you plan to upload the wheel to pipy at some point ?
Starting with v0.14, OTIO will have wheels for mac/win/linux, but we do not plan to go back and upload wheels for all platforms for older versions.
At our studio we need to install opentimelineio in Blender's python distribution on Windows. However it fails using:
because some build steps seems necessary (see at the end of the issue for the full error log). We don't want to provide some special python that would be able to do that because all of this is for an addon that should be easy to distribute to any Blender user.
Now I managed to build a wheel for opentimelineio with a my full python 3.7 and installing it in Blender's python distribution seems to work (I add to include the move of dlls described in #667 however). So I suppose all that's needed now for the first command to work in Blender for Win64 would be to upload the wheel to pypi (I've never done it so I can only assume that's the way it is done).
Here is the script I use to build the wheel if you want to reproduce for different versions of python: https://gist.github.com/Celeborn2BeAlive/f6a475e863726d767a6a0669c692e90e
It builds the wheel in a dist/ folder next to the script.
For now we will distribute the wheel with our addon but it would be great if you could distribute that wheel on pipy.
Thanks.
Here is the error log when we try to install from pypi directly in Blender's python, but I'm not sure there is anything to do with that (a non developper Blender user would not have the build environment installed anyway and a pre-built version should be distributed to him):