OpenTimelineIO: Can't install with pip (on windows, in blender)

This is the error report(cmake is already installed):

C:\Users\user\Documents\build_windows_x64_vc16_Release\bin\Release\2.83\python\bin>python -m pip install opentimelineio
Collecting opentimelineio
  Using cached OpenTimelineIO-0.12.0.tar.gz (2.0 MB)
Requirement already satisfied: pyaaf2==1.2.0 in c:\users\user\documents\build_windows_x64_vc16_release\bin\release\2.83\python\lib\site-packages (from opentimelineio) (1.2.0)
Installing collected packages: opentimelineio
    Running setup.py install for opentimelineio ... error
    ERROR: Command errored out with exit status 1:
     command: 'C:\Users\user\Documents\build_windows_x64_vc16_Release\bin\Release\2.83\python\bin\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-w6q_74kv\\opentimelineio\\setup.py'"'"'; __file__='"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-w6q_74kv\\opentimelineio\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\user\AppData\Local\Temp\pip-record-qe4za2pc\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\user\Documents\build_windows_x64_vc16_Release\bin\Release\2.83\python\Include\opentimelineio'
         cwd: C:\Users\user\AppData\Local\Temp\pip-install-w6q_74kv\opentimelineio\
    Complete output (184 lines):
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.7
    creating build\lib.win-amd64-3.7\opentimelineio
    copying src\py-opentimelineio\opentimelineio\exceptions.py -> build\lib.win-amd64-3.7\opentimelineio
    copying src\py-opentimelineio\opentimelineio\hooks.py -> build\lib.win-amd64-3.7\opentimelineio
    copying src\py-opentimelineio\opentimelineio\media_linker.py -> build\lib.win-amd64-3.7\opentimelineio
    copying src\py-opentimelineio\opentimelineio\opentime.py -> build\lib.win-amd64-3.7\opentimelineio
    copying src\py-opentimelineio\opentimelineio\test_utils.py -> build\lib.win-amd64-3.7\opentimelineio
    copying src\py-opentimelineio\opentimelineio\__init__.py -> build\lib.win-amd64-3.7\opentimelineio
    creating build\lib.win-amd64-3.7\opentimelineio\adapters
    copying src\py-opentimelineio\opentimelineio\adapters\adapter.py -> build\lib.win-amd64-3.7\opentimelineio\adapters
    copying src\py-opentimelineio\opentimelineio\adapters\cmx_3600.py -> build\lib.win-amd64-3.7\opentimelineio\adapters
    copying src\py-opentimelineio\opentimelineio\adapters\fcp_xml.py -> build\lib.win-amd64-3.7\opentimelineio\adapters
    copying src\py-opentimelineio\opentimelineio\adapters\otio_json.py -> build\lib.win-amd64-3.7\opentimelineio\adapters
    copying src\py-opentimelineio\opentimelineio\adapters\__init__.py -> build\lib.win-amd64-3.7\opentimelineio\adapters
    creating build\lib.win-amd64-3.7\opentimelineio\algorithms
    copying src\py-opentimelineio\opentimelineio\algorithms\filter.py -> build\lib.win-amd64-3.7\opentimelineio\algorithms
    copying src\py-opentimelineio\opentimelineio\algorithms\stack_algo.py -> build\lib.win-amd64-3.7\opentimelineio\algorithms
    copying src\py-opentimelineio\opentimelineio\algorithms\timeline_algo.py -> build\lib.win-amd64-3.7\opentimelineio\algorithms
    copying src\py-opentimelineio\opentimelineio\algorithms\track_algo.py -> build\lib.win-amd64-3.7\opentimelineio\algorithms
    copying src\py-opentimelineio\opentimelineio\algorithms\__init__.py -> build\lib.win-amd64-3.7\opentimelineio\algorithms
    creating build\lib.win-amd64-3.7\opentimelineio\console
    copying src\py-opentimelineio\opentimelineio\console\autogen_plugin_documentation.py -> build\lib.win-amd64-3.7\opentimelineio\console
    copying src\py-opentimelineio\opentimelineio\console\autogen_serialized_datamodel.py -> build\lib.win-amd64-3.7\opentimelineio\console
    copying src\py-opentimelineio\opentimelineio\console\console_utils.py -> build\lib.win-amd64-3.7\opentimelineio\console
    copying src\py-opentimelineio\opentimelineio\console\otiocat.py -> build\lib.win-amd64-3.7\opentimelineio\console
    copying src\py-opentimelineio\opentimelineio\console\otioconvert.py -> build\lib.win-amd64-3.7\opentimelineio\console
    copying src\py-opentimelineio\opentimelineio\console\otiopluginfo.py -> build\lib.win-amd64-3.7\opentimelineio\console
    copying src\py-opentimelineio\opentimelineio\console\otiostat.py -> build\lib.win-amd64-3.7\opentimelineio\console
    copying src\py-opentimelineio\opentimelineio\console\__init__.py -> build\lib.win-amd64-3.7\opentimelineio\console
    creating build\lib.win-amd64-3.7\opentimelineio\core
    copying src\py-opentimelineio\opentimelineio\core\composable.py -> build\lib.win-amd64-3.7\opentimelineio\core
    copying src\py-opentimelineio\opentimelineio\core\composition.py -> build\lib.win-amd64-3.7\opentimelineio\core
    copying src\py-opentimelineio\opentimelineio\core\item.py -> build\lib.win-amd64-3.7\opentimelineio\core
    copying src\py-opentimelineio\opentimelineio\core\mediaReference.py -> build\lib.win-amd64-3.7\opentimelineio\core
    copying src\py-opentimelineio\opentimelineio\core\_core_utils.py -> build\lib.win-amd64-3.7\opentimelineio\core
    copying src\py-opentimelineio\opentimelineio\core\__init__.py -> build\lib.win-amd64-3.7\opentimelineio\core
    creating build\lib.win-amd64-3.7\opentimelineio\plugins
    copying src\py-opentimelineio\opentimelineio\plugins\manifest.py -> build\lib.win-amd64-3.7\opentimelineio\plugins
    copying src\py-opentimelineio\opentimelineio\plugins\python_plugin.py -> build\lib.win-amd64-3.7\opentimelineio\plugins
    copying src\py-opentimelineio\opentimelineio\plugins\__init__.py -> build\lib.win-amd64-3.7\opentimelineio\plugins
    creating build\lib.win-amd64-3.7\opentimelineio\schema
    copying src\py-opentimelineio\opentimelineio\schema\clip.py -> build\lib.win-amd64-3.7\opentimelineio\schema
    copying src\py-opentimelineio\opentimelineio\schema\effect.py -> build\lib.win-amd64-3.7\opentimelineio\schema
    copying src\py-opentimelineio\opentimelineio\schema\external_reference.py -> build\lib.win-amd64-3.7\opentimelineio\schema
    copying src\py-opentimelineio\opentimelineio\schema\foo.py -> build\lib.win-amd64-3.7\opentimelineio\schema
    copying src\py-opentimelineio\opentimelineio\schema\generator_reference.py -> build\lib.win-amd64-3.7\opentimelineio\schema
    copying src\py-opentimelineio\opentimelineio\schema\marker.py -> build\lib.win-amd64-3.7\opentimelineio\schema
    copying src\py-opentimelineio\opentimelineio\schema\schemadef.py -> build\lib.win-amd64-3.7\opentimelineio\schema
    copying src\py-opentimelineio\opentimelineio\schema\serializable_collection.py -> build\lib.win-amd64-3.7\opentimelineio\schema
    copying src\py-opentimelineio\opentimelineio\schema\stack.py -> build\lib.win-amd64-3.7\opentimelineio\schema
    copying src\py-opentimelineio\opentimelineio\schema\timeline.py -> build\lib.win-amd64-3.7\opentimelineio\schema
    copying src\py-opentimelineio\opentimelineio\schema\track.py -> build\lib.win-amd64-3.7\opentimelineio\schema
    copying src\py-opentimelineio\opentimelineio\schema\transition.py -> build\lib.win-amd64-3.7\opentimelineio\schema
    copying src\py-opentimelineio\opentimelineio\schema\__init__.py -> build\lib.win-amd64-3.7\opentimelineio\schema
    creating build\lib.win-amd64-3.7\opentimelineio\schemadef
    copying src\py-opentimelineio\opentimelineio\schemadef\__init__.py -> build\lib.win-amd64-3.7\opentimelineio\schemadef
    creating build\lib.win-amd64-3.7\opentimelineview
    copying src\opentimelineview\console.py -> build\lib.win-amd64-3.7\opentimelineview
    copying src\opentimelineview\details_widget.py -> build\lib.win-amd64-3.7\opentimelineview
    copying src\opentimelineview\ruler_widget.py -> build\lib.win-amd64-3.7\opentimelineview
    copying src\opentimelineview\settings.py -> build\lib.win-amd64-3.7\opentimelineview
    copying src\opentimelineview\timeline_widget.py -> build\lib.win-amd64-3.7\opentimelineview
    copying src\opentimelineview\track_widgets.py -> build\lib.win-amd64-3.7\opentimelineview
    copying src\opentimelineview\__init__.py -> build\lib.win-amd64-3.7\opentimelineview
    creating build\lib.win-amd64-3.7\opentimelineio_contrib
    copying contrib\opentimelineio_contrib\__init__.py -> build\lib.win-amd64-3.7\opentimelineio_contrib
    creating build\lib.win-amd64-3.7\opentimelineio_contrib\adapters
    copying contrib\opentimelineio_contrib\adapters\advanced_authoring_format.py -> build\lib.win-amd64-3.7\opentimelineio_contrib\adapters
    copying contrib\opentimelineio_contrib\adapters\ale.py -> build\lib.win-amd64-3.7\opentimelineio_contrib\adapters
    copying contrib\opentimelineio_contrib\adapters\burnins.py -> build\lib.win-amd64-3.7\opentimelineio_contrib\adapters
    copying contrib\opentimelineio_contrib\adapters\extern_maya_sequencer.py -> build\lib.win-amd64-3.7\opentimelineio_contrib\adapters
    copying contrib\opentimelineio_contrib\adapters\extern_rv.py -> build\lib.win-amd64-3.7\opentimelineio_contrib\adapters
    copying contrib\opentimelineio_contrib\adapters\fcpx_xml.py -> build\lib.win-amd64-3.7\opentimelineio_contrib\adapters
    copying contrib\opentimelineio_contrib\adapters\ffmpeg_burnins.py -> build\lib.win-amd64-3.7\opentimelineio_contrib\adapters
    copying contrib\opentimelineio_contrib\adapters\hls_playlist.py -> build\lib.win-amd64-3.7\opentimelineio_contrib\adapters
    copying contrib\opentimelineio_contrib\adapters\kdenlive.py -> build\lib.win-amd64-3.7\opentimelineio_contrib\adapters
    copying contrib\opentimelineio_contrib\adapters\maya_sequencer.py -> build\lib.win-amd64-3.7\opentimelineio_contrib\adapters
    copying contrib\opentimelineio_contrib\adapters\rv.py -> build\lib.win-amd64-3.7\opentimelineio_contrib\adapters
    copying contrib\opentimelineio_contrib\adapters\xges.py -> build\lib.win-amd64-3.7\opentimelineio_contrib\adapters
    copying contrib\opentimelineio_contrib\adapters\__init__.py -> build\lib.win-amd64-3.7\opentimelineio_contrib\adapters
    creating build\lib.win-amd64-3.7\opentimelineio_contrib\adapters\aaf_adapter
    copying contrib\opentimelineio_contrib\adapters\aaf_adapter\aaf_writer.py -> build\lib.win-amd64-3.7\opentimelineio_contrib\adapters\aaf_adapter
    copying contrib\opentimelineio_contrib\adapters\aaf_adapter\__init__.py -> build\lib.win-amd64-3.7\opentimelineio_contrib\adapters\aaf_adapter
    running egg_info
    writing OpenTimelineIO.egg-info\PKG-INFO
    writing dependency_links to OpenTimelineIO.egg-info\dependency_links.txt
    writing entry points to OpenTimelineIO.egg-info\entry_points.txt
    writing requirements to OpenTimelineIO.egg-info\requires.txt
    writing top-level names to OpenTimelineIO.egg-info\top_level.txt
    reading manifest file 'OpenTimelineIO.egg-info\SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no files found matching 'CHANGELOG.md'
    no previously-included directories found matching 'docs'
    warning: no previously-included files found matching '.gitmodules'
    warning: no previously-included files matching '*.git' found under directory 'src'
    warning: no previously-included files found matching '.readthedocs.yml'
    warning: no previously-included files found matching 'readthedocs-conda.yml'
    warning: no previously-included files found matching '.codecov.yml'
    warning: no previously-included files found matching '.gitlab-ci.yml'
    warning: no previously-included files found matching '.travis.yml'
    warning: no previously-included files found matching '*.pdf'
    warning: no previously-included files found matching 'CODE_OF_CONDUCT.md'
    warning: no previously-included files found matching 'CONTRIBUTING.md'
    warning: no previously-included files found matching 'contrib\opentimelineio_contrib\adapters\Makefile'
    warning: no previously-included files found matching 'Makefile'
    no previously-included directories found matching 'contrib\opentimelineio_contrib\adapters\tests'
    no previously-included directories found matching 'tests'
    no previously-included directories found matching 'src\deps\pybind11\tools\clang'
    no previously-included directories found matching 'src\deps\rapidjson\thirdparty'
    writing manifest file 'OpenTimelineIO.egg-info\SOURCES.txt'
    copying src\py-opentimelineio\opentimelineio\adapters\builtin_adapters.plugin_manifest.json -> build\lib.win-amd64-3.7\opentimelineio\adapters
    creating build\lib.win-amd64-3.7\opentimelineio_contrib\application_plugins
    creating build\lib.win-amd64-3.7\opentimelineio_contrib\application_plugins\rv
    creating build\lib.win-amd64-3.7\opentimelineio_contrib\application_plugins\rv\example_otio_reader
    copying contrib\opentimelineio_contrib\application_plugins\rv\example_otio_reader\PACKAGE -> build\lib.win-amd64-3.7\opentimelineio_contrib\application_plugins\rv\example_otio_reader
    copying contrib\opentimelineio_contrib\application_plugins\rv\example_otio_reader\example_otio_reader_plugin.py -> build\lib.win-amd64-3.7\opentimelineio_contrib\application_plugins\rv\example_otio_reader
    copying contrib\opentimelineio_contrib\application_plugins\rv\example_otio_reader\otio_reader.py -> build\lib.win-amd64-3.7\opentimelineio_contrib\application_plugins\rv\example_otio_reader
    copying contrib\opentimelineio_contrib\adapters\contrib_adapters.plugin_manifest.json -> build\lib.win-amd64-3.7\opentimelineio_contrib\adapters
    running build_ext
    -- Building for: Visual Studio 16 2019
    -- The C compiler identification is MSVC 19.23.28106.4
    -- The CXX compiler identification is MSVC 19.23.28106.4
    -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/x64/cl.exe
    -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/x64/cl.exe -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/x64/cl.exe
    -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/x64/cl.exe -- works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    fatal: not a git repository (or any of the parent directories): .git
    -- Found PythonInterp: C:/Users/user/Documents/build_windows_x64_vc16_Release/bin/Release/2.83/python/bin/python.exe (found version "3.7.4")
    CMake Error at src/deps/pybind11/tools/FindPythonLibsNew.cmake:158 (message):
      Python libraries not found
    Call Stack (most recent call first):
      src/deps/pybind11/tools/pybind11Tools.cmake:16 (find_package)
      src/deps/pybind11/CMakeLists.txt:33 (include)


    -- Configuring incomplete, errors occurred!
    See also "C:/Users/user/AppData/Local/Temp/pip-install-w6q_74kv/opentimelineio/build/temp.win-amd64-3.7/Release/CMakeFiles/CMakeOutput.log".
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\user\AppData\Local\Temp\pip-install-w6q_74kv\opentimelineio\setup.py", line 466, in <module>
        **PROJECT_METADATA
      File "C:\Users\user\Documents\build_windows_x64_vc16_Release\bin\Release\2.83\python\lib\site-packages\setuptools\__init__.py", line 145, in setup
        return distutils.core.setup(**attrs)
      File "C:\Users\user\Documents\build_windows_x64_vc16_Release\bin\Release\2.83\python\lib\distutils\core.py", line 148, in setup
        dist.run_commands()
      File "C:\Users\user\Documents\build_windows_x64_vc16_Release\bin\Release\2.83\python\lib\distutils\dist.py", line 966, in run_commands
        self.run_command(cmd)
      File "C:\Users\user\Documents\build_windows_x64_vc16_Release\bin\Release\2.83\python\lib\distutils\dist.py", line 985, in run_command
        cmd_obj.run()
      File "C:\Users\user\AppData\Local\Temp\pip-install-w6q_74kv\opentimelineio\setup.py", line 140, in run
        install.run(self)
      File "C:\Users\user\Documents\build_windows_x64_vc16_Release\bin\Release\2.83\python\lib\site-packages\setuptools\command\install.py", line 61, in run
        return orig.install.run(self)
      File "C:\Users\user\Documents\build_windows_x64_vc16_Release\bin\Release\2.83\python\lib\distutils\command\install.py", line 545, in run
        self.run_command('build')
      File "C:\Users\user\Documents\build_windows_x64_vc16_Release\bin\Release\2.83\python\lib\distutils\cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "C:\Users\user\Documents\build_windows_x64_vc16_Release\bin\Release\2.83\python\lib\distutils\dist.py", line 985, in run_command
        cmd_obj.run()
      File "C:\Users\user\Documents\build_windows_x64_vc16_Release\bin\Release\2.83\python\lib\distutils\command\build.py", line 135, in run
        self.run_command(cmd_name)
      File "C:\Users\user\Documents\build_windows_x64_vc16_Release\bin\Release\2.83\python\lib\distutils\cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "C:\Users\user\Documents\build_windows_x64_vc16_Release\bin\Release\2.83\python\lib\distutils\dist.py", line 985, in run_command
        cmd_obj.run()
      File "C:\Users\user\AppData\Local\Temp\pip-install-w6q_74kv\opentimelineio\setup.py", line 185, in run
        self.build()
      File "C:\Users\user\AppData\Local\Temp\pip-install-w6q_74kv\opentimelineio\setup.py", line 216, in build
        env=env
      File "C:\Users\user\Documents\build_windows_x64_vc16_Release\bin\Release\2.83\python\lib\subprocess.py", line 347, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['cmake', 'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-w6q_74kv\\opentimelineio', '-DPYTHON_EXECUTABLE=C:\\Users\\user\\Documents\\build_windows_x64_vc16_Release\\bin\\Release\\2.83\\python\\bin\\python.exe', '-DOTIO_PYTHON_INSTALL:BOOL=ON', '-DOTIO_PYTHON_OTIO_DIR=C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-w6q_74kv\\opentimelineio\\build\\lib.win-amd64-3.7\\opentimelineio\\', '-DCMAKE_INSTALL_PREFIX=C:\\Users\\user\\Documents\\build_windows_x64_vc16_Release\\bin\\Release\\2.83\\python\\Lib\\site-packages\\opentimelineio\\cxx-libs', '-DOTIO_CXX_NOINSTALL:BOOL=ON', '-A', 'x64']' returned non-zero exit status 1.
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\user\Documents\build_windows_x64_vc16_Release\bin\Release\2.83\python\bin\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-w6q_74kv\\opentimelineio\\setup.py'"'"'; __file__='"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-w6q_74kv\\opentimelineio\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\user\AppData\Local\Temp\pip-record-qe4za2pc\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\user\Documents\build_windows_x64_vc16_Release\bin\Release\2.83\python\Include\opentimelineio' Check the logs for full command output.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 1
  • Comments: 38 (6 by maintainers)

Most upvoted comments

@tin2tin, @JerryKon, @Tilix4, @lgmventura, @darkvertex, @Celeborn2BeAlive, @stijncalis OTIO 0.14.0 is now available and instalable with pip as of today.

Wheels are available for Python 2.7, 3.7, 3.8 and 3.9 for all platforms (Linux, Windows and macOS). So this basically means you will be able to install OTIO on Windows and get it to work in Blender 😃

Next steps are (if I’m not mistaken):

I’ll take a note to notify this issue when we have wheels in PyPI.

@lgmventura Good to hear! This is how our official builds in pypi will be set up for 0.14.0 when we release.

@reinecke it works! Thank you so much.

@lgmventura Would you mind trying this command to install our new test wheels (from issue #1015): pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple opentimelineio==0.14.0dev1

We’ve been working to improve the availability of pre-built wheels which addresses build issues for a lot of users. Please let us know if this works for you.

The conversation is underway in the PR meant to fix these issues: https://github.com/PixarAnimationStudios/OpenTimelineIO/pull/957

@tin2tin You are not installing the wheel here, you are installing opentimelineio directly and pip is trying to build a wheel out of the source distribution, since no wheel is provided for windows on pypi (https://pypi.org/project/OpenTimelineIO/#files).

Try with this pre-built wheel (otio v0.13.0): https://drive.google.com/file/d/1W74dDldQ1Y3SsdrWeWa2s6BNipKT4nSu/view?usp=sharing

Once downloaded in C:\\Users\\45239\\Downloads\\ use:

C:\Windows\system32>C:\\Users\\45239\\Downloads\\blender-2.92.0-7bab87c119f4-windows64\\2.92\\python\\bin\\python.EXE -m pip install C:\\Users\\45239\\Downloads\\OpenTimelineIO-0.13.0-cp37-cp37m-win_amd64.whl --user