Hi Jake,

I had a similar issue building via Vcpkg back in June. I'm not sure if you
are running into a similar issue persay, but this might help you out:

http://lists.openimageio.org/pipermail/oiio-dev-openimageio.org/2020-June/002091.html

Long story short, I had to move/copy my .pyd to the same DLL folder even
though I had specified the paths correctly in my Python environment setup.
Try that and see if your python instance can indeed import. Please note
though I have not completely tested enough yet to know if there are any
conflicts or missing link issues, but so far it has worked for my needs.
Hopefully this can be better documented/debugged by someone with more Vcpkg
experience than me.

Good luck!

Dave

On Tue, Aug 11, 2020 at 9:08 AM Jake Harrell <[email protected]> wrote:

> Hello oiio dev,
>
> I've had a problem with the python bindings for OpenImageIO when built on
> Windows, I was wondering if anyone here happens to know what I'm doing
> wrong..
>
> My issue is:
> When I do an "Import OpenImageIO" I get a DLL load error: "ImportError:
> DLL load failed while importing OpenImageIO: The specified module could not
> be found.".
>
> I've built oiio with vcpkg, running: vcpkg install
> openimageio[pybind11]:x64-windows
> I also adjusted the portfile.cmake to add "-DUSE_PYTHON=ON" as without it,
> I didn't seem to get the OpenImageIO.pyd.
>
> Also, I can see the docs say: "You must ensure that the environment
> variable PYTHONPATH includes the python subdirectory of the OpenImageIO
> installation."
> However, I didn't actually get a "python" subdirectory created, but I can
> find a OpenImageIO.pyd.
>
> So I think everything *seems* to build correctly, therefore I'm assuming
> this is more of an install issue possibly?
>
> I tried running Dependency Walker on the .pyd and it did come up with a
> lot of missing dependencies, OpenImageIO.dll itself didn't seem to be one
> of them, but itself had many.
>
> Has anyone had experience with building successfully on Windows with
> python working that could shed some light on my issue?
>
> Thanks in advance!
>
> Cheers,
> Jake
> _______________________________________________
> Oiio-dev mailing list
> [email protected]
> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
>
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to