-
Notifications
You must be signed in to change notification settings - Fork 289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pip install opentimelineio
causes CMake Error on Windows 10 x64
#770
Comments
You mention a clean machine, and the error reports not finding a toolchain. If you haven't already, I'd install VS2019 and try again. If you have done that, we'll need to dig deeper. |
Hi @meshula , Well, the machine is clean-ish. VS2019 (Community) is installed as is Python (v3.8.5). I've also installed:
I haven't installed the Desktop Development with C++ components in VS2019 though. Is this a prerequisite? |
I've now uninstalled CMake (installed from the official distribution) and I've installed the C++ components for VS2019 which should include CMAKE. Now when I open a Visual Studio Command Prompt (so CMAKE is in the path and should be setup for the correct compilers) and type
Any help much appreciated. |
I have a hunch that the cmake portions of the build are still configured from before you installed the C++ components. Could you try renaming, or deleting your existing OTIO directory, cloning it from scratch, and then running pip again from within the Visual Studio Command Prompt please? |
Thanks. I'm not actually doing this by cloning the project, so I don't have the OTIO directory on my computer. I was just trying to consume it as a library in python as per the QuickStart. I was actually surprised it wanted to build anything in CMake at all, and wondered if there might be a bug in the package. I'll try building it from source though and see what happens. |
Hi, So, I've made some progress. Some combination of the following got rid of the original error:
It's definitely made some progress as it's now doing some compilation when I The compilation is still failing though, now with the following error:
|
Hi! Glad to hear you've made some progress. |
You cracked it! Here's what's working for me as a pre-requisite for
Thanks for your help everyone. Is it sensible to amend the |
Argh. Famous last words! Not quite there. Tried running a .py file with the following content
The failure is:
Any help? |
Thanks, Will take a look |
I have a work in progress fix that puts the dlls in a place that's convenient for python to find them. I don't recommend working from this branch as I still have a couple of small issues to iron out, but I'm noting it here so we can track the issue. In the meantime copying the dlls as @apetrynet suggested will get you going. |
Thanks. Will take a look and confirm. |
Well done @apetrynet and @meshula. We're working! Just a quick overview on how I got
|
The solution by @maptz worked for me too in an identical set of circumstances. I just ran pip install opentimelineio from the command line and it worked after I installed VS with the C++ option. I also had the issue with the two missing libraries. |
Thanks for the really useful info, I'm very close to getting this working but failing at the last hurdle. I followed @maptz 's guide and (eventually) got python and pip installed (thank you!), but then the fun started.... KDEnlive complained it couldn't find "python3" executable when I tried to export a timeline - after a bit of digging I renamed the freshly installed python.exe (3.7.9) to 'python3' and things moved forward....... Then the error message was that KDENlive didn't have permission to write the temp file... I tried unticking the 'Read Only' permission on the 'Temp' folder, which seemed to complete... but still the error (and the permission on the Temp folder seems to revert back)....... So I eventually came up with the idea to run KDEnlive with Administrator privileges... no error messages, tried to save a file is FCPXML.... message saying "Project conversion complete"......... but no file anywhere! Is there anything else I need to do to export an XML file...... do I need to install or enable any Adapters - I think I read that some are enabled by default, including XML ??? Any thoughts greatly appreciated, regards neil |
With the heavy caveat that I'm not familiar with KDEnlive, and haven't tried the guide referenced above:
should list OTIO. Then, from python, check:
Finally, check to see that FCPXML is in the list of adapters:
(should return |
@ssteinbach I'm noticing the following in my Windows install. Is this indicative of an error in the generated manifest? With regards Neil's situation, I do see that the 'xml' adapter is indeed in the list of adapters, so overall the install looks good. [Edit] ---- this is not a problem. I started python in my opentimelineio source directory, and that's why the path to my source code was in the sys.path. Python 3.8.5 (default, Sep 3 2020, 21:29:08) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import opentimelineio
C:\bin\miniconda3\envs\dev\lib\site-packages\opentimelineio\plugins\manifest.py:33: UserWarning: Module opentimelineio was already imported from C:\bin\miniconda3\envs\dev\lib\site-packages\opentimelineio\__init__.py, but c:\projects\pixar\opentimelineio is being added to sys.path
import pkg_resources |
me saying mpatz's 'guide' is probably a bit misleading - its the instructions two post above mine:-
Just so we're on the same page - this is for a Windows 10 install:- I'm presuming GREP is Linux only ??? thanks for the help, neil |
@maptz Yes, the Quickstart documentation is very poor and incomplete. I used different steps as your commands results in linker errors:
(Maybe too much will be installed)
Can someone update the Quickstart documentation? |
Hi,
I'm trying to install OpenTimelineIO on a clean windows box by using the
pip install
command. I've installed the latest CMAKE package for x64 which has suppressed some errors, but I'm still not able topip install opentimelineio
The error I'm getting is:
What are the appropriate settings and pre-requisites for including this package on a Windows box?
The text was updated successfully, but these errors were encountered: