OpenTimelineIO: `pip install opentimelineio` causes CMake Error on Windows 10 x64

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 to pip install opentimelineio

The error I’m getting is:

CMake Error at CMakeLists.txt:7 (project):
      Generator

        NMake Makefiles

      does not support platform specification, but platform

        x64

      was specified.


    CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
    CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage

What are the appropriate settings and pre-requisites for including this package on a Windows box?

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 20 (2 by maintainers)

Most upvoted comments

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.

Well done @apetrynet and @meshula. We’re working!

Just a quick overview on how I got pip install opentimelineio to work in Windows as of today (2020/08/20) for anyone with the same issue.

  1. Installed VS2019 with C++ components installed.
  2. Made sure I wasn’t running Python version greater than 3.7.9.
  3. Ran pip install opentimelineio in a Developer Command Prompt for VS 2019.
  4. Created a new .py file called test.py:
import opentimelineio as openio
timeline = openio.adapters.read_from_file("path to/some.aaf")
for clip in timeline.each_clip():
  print(clip.name, clip.duration())
  1. Went to C:\Users\[USERNAME]\AppData\Local\Programs\Python\Python37\Lib\site-packages\opentimelineio\cxx-libs\bin and copied the two dlls in that folder (opentime.dll and opentimelineio.dll) to C:\Users\[USERNAME]\AppData\Local\Programs\Python\Python37\Lib\site-packages\opentimelineio.
  2. Ran py test-py.
  3. She’s alive!