master-of-zen / Av1an

Cross-platform command-line AV1 / VP9 / HEVC / H264 encoding framework with per scene quality encoding
GNU General Public License v3.0
1.51k stars 155 forks source link

Error compiling Av1an #276

Closed ahmadrr closed 3 years ago

ahmadrr commented 3 years ago

Windows 10; Python 3.9; latest pip, rust, MSVC++ 2019 I compiled Av1an about a month ago, it was quick and easy, didn't require these additional things

d:\Video\av1>python setup.py install running install running bdist_egg running egg_info writing Av1an.egg-info\PKG-INFO writing dependency_links to Av1an.egg-info\dependency_links.txt writing entry points to Av1an.egg-info\entry_points.txt writing requirements to Av1an.egg-info\requires.txt writing top-level names to Av1an.egg-info\top_level.txt adding license file 'LICENSE.md' (matched pattern 'LICEN[CS]E') reading manifest file 'Av1an.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching 'pyproject.toml' warning: no files found matching '' under directory 'src' writing manifest file 'Av1an.egg-info\SOURCES.txt' installing library code to build\bdist.win-amd64\egg running install_lib running build_py running build_ext running build_rust cargo rustc --lib --manifest-path Cargo.toml --features pyo3/extension-module --target x86_64-pc-windows-msvc --release --verbose -- --crate-type cdylib error: manifest path d:\Video\av1\Cargo.toml is a virtual manifest, but this command requires running against an actual package in this workspace error: cargo failed with code: 101

master-of-zen commented 3 years ago

Currently there is 2 options, use stable build from pip pip install av1an or build current master https://gist.github.com/master-of-zen/0833bec1e7df72ed165083cd44e9187b

ahmadrr commented 3 years ago

Thank you, didn't realize it currently uses rust. Now I get these errors, it says SDK is not installed. Seems to be looking for VapourSynth with max version 51? I have it installed though, version 53.

d:\Video\av1>virtualenv env created virtual environment CPython3.9.5.final.0-64 in 864ms creator CPython3Windows(dest=D:\Video\av1\env, clear=False, no_vcs_ignore=False, global=False) seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=C:\Users\Ahmad\AppData\Local\pypa\virtualenv) added seed packages: pip==21.1.1, pip==21.1.2, setuptools==56.0.0, setuptools==57.0.0, wheel==0.36.2 activators BashActivator,BatchActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator

d:\Video\av1>env\scripts\activate

(env) d:\Video\av1>maturin develop --release -m av1an-pyo3/Cargo.toml 🔗 Found pyo3 bindings 🐍 Found CPython 3.9 at python.exe Collecting numpy Downloading numpy-1.20.3-cp39-cp39-win_amd64.whl (13.7 MB) |████████████████████████████████| 13.7 MB 2.2 MB/s Collecting scenedetect[opencv] Using cached scenedetect-0.5.5-py2.py3-none-any.whl (107 kB) Collecting opencv-python Downloading opencv_python-4.5.2.54-cp39-cp39-win_amd64.whl (34.7 MB) |████████████████████████████████| 34.7 MB 2.2 MB/s Collecting tqdm Downloading tqdm-4.61.0-py2.py3-none-any.whl (75 kB) |████████████████████████████████| 75 kB 1.8 MB/s Collecting psutil Downloading psutil-5.8.0-cp39-cp39-win_amd64.whl (246 kB) |████████████████████████████████| 246 kB 1.6 MB/s Collecting scipy Downloading scipy-1.6.3-cp39-cp39-win_amd64.whl (32.7 MB) |████████████████████████████████| 32.7 MB 598 kB/s Collecting matplotlib Downloading matplotlib-3.4.2-cp39-cp39-win_amd64.whl (7.1 MB) |████████████████████████████████| 7.1 MB 930 kB/s Collecting vapoursynth Downloading VapourSynth-51.zip (426 kB) |████████████████████████████████| 426 kB 1.3 MB/s ERROR: Command errored out with exit status 1: command: 'D:\Video\av1\env\Scripts\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_d6b6ffe74b634eaab23bfddf9c8b5564\setup.py'"'"'; file='"'"'C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_d6b6ffe74b634eaab23bfddf9c8b5564\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Ahmad\AppData\Local\Temp\pip-pip-egg-info-wix3ng' cwd: C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_d6b6ffe74b634eaab23bfddf9c8b5564\ Complete output (5 lines): Traceback (most recent call last): File "", line 1, in File "C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_d6b6ffe74b634eaab23bfddf9c8b5564\setup.py", line 68, in raise OSError("It appears you don't have the sdk installed. Please make sure you installed the sdk before running setup.py") OSError: It appears you don't have the sdk installed. Please make sure you installed the sdk before running setup.py

WARNING: Discarding https://files.pythonhosted.org/packages/41/a6/75c8e6c37e26641f73cd967f4c365655b206f279ddd52461f4a1b9bd1621/VapourSynth-51.zip#sha256=8e1839a51058f609b902c43b4c958ecf29335e3d1a8baa4c11ddd6bd515bba1a (from https://pypi.org/simple/vapoursynth/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. Downloading VapourSynth-50.zip (390 kB) |████████████████████████████████| 390 kB 726 kB/s ERROR: Command errored out with exit status 1: command: 'D:\Video\av1\env\Scripts\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_186850112e6646ab97e6f6426c3ff0ce\setup.py'"'"'; file='"'"'C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_186850112e6646ab97e6f6426c3ff0ce\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Ahmad\AppData\Local\Temp\pip-pip-egg-info-lsavl6f1' cwd: C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_186850112e6646ab97e6f6426c3ff0ce\ Complete output (5 lines): Traceback (most recent call last): File "", line 1, in File "C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_186850112e6646ab97e6f6426c3ff0ce\setup.py", line 68, in raise OSError("It appears you don't have the sdk installed. Please make sure you installed the sdk before running setup.py") OSError: It appears you don't have the sdk installed. Please make sure you installed the sdk before running setup.py

WARNING: Discarding https://files.pythonhosted.org/packages/ce/f1/b8125b155f2893ac1a52017203c1c382df8425b5f5a7fd4ebfacaf8b9d9c/VapourSynth-50.zip#sha256=1c5275a43611b305f4fd2d86f035f1bb99fc282a5dc309943e8536a7153a6c82 (from https://pypi.org/simple/vapoursynth/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. Downloading VapourSynth-49.zip (388 kB) |████████████████████████████████| 388 kB 3.3 MB/s ERROR: Command errored out with exit status 1: command: 'D:\Video\av1\env\Scripts\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_628998101f1b4663a4f25671dc72c7c9\setup.py'"'"'; file='"'"'C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_628998101f1b4663a4f25671dc72c7c9\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Ahmad\AppData\Local\Temp\pip-pip-egg-info-m95ir3o9' cwd: C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_628998101f1b4663a4f25671dc72c7c9\ Complete output (5 lines): Traceback (most recent call last): File "", line 1, in File "C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_628998101f1b4663a4f25671dc72c7c9\setup.py", line 68, in raise OSError("It appears you don't have the sdk installed. Please make sure you installed the sdk before running setup.py") OSError: It appears you don't have the sdk installed. Please make sure you installed the sdk before running setup.py

WARNING: Discarding https://files.pythonhosted.org/packages/09/ca/c8f8c9d4042ffd664928fa5a2cb5a52b8cc7ff15357b88f80d68c5be8a34/VapourSynth-49.zip#sha256=b5e5b7206591f7cc57a434036778b005e242795fb353691285a5b55bfb01db97 (from https://pypi.org/simple/vapoursynth/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. Downloading VapourSynth-48.zip (47 kB) |████████████████████████████████| 47 kB 1.7 MB/s ERROR: Command errored out with exit status 1: command: 'D:\Video\av1\env\Scripts\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_a0ac22be673348f89035280b48f6e5c4\setup.py'"'"'; file='"'"'C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_a0ac22be673348f89035280b48f6e5c4\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Ahmad\AppData\Local\Temp\pip-pip-egg-info-8oomjw' cwd: C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_a0ac22be673348f89035280b48f6e5c4\ Complete output (5 lines): Traceback (most recent call last): File "", line 1, in File "C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_a0ac22be673348f89035280b48f6e5c4\setup.py", line 68, in raise OSError("It appears you don't have the sdk installed. Please make sure you installed the sdk before running setup.py") OSError: It appears you don't have the sdk installed. Please make sure you installed the sdk before running setup.py

WARNING: Discarding https://files.pythonhosted.org/packages/c1/ac/8266a25bd2e4116a34e50caf2fd1bbeedb8f22e496ca1904333464d34352/VapourSynth-48.zip#sha256=5253b7b604f12b461480f1ac9aa3481161f8c5dfa27c764cc81444ddc4e8db9f (from https://pypi.org/simple/vapoursynth/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. Downloading VapourSynth-47.2.zip (388 kB) |████████████████████████████████| 388 kB 1.3 MB/s ERROR: Command errored out with exit status 1: command: 'D:\Video\av1\env\Scripts\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_bee96abcd510423384b2300c4649446e\setup.py'"'"'; file='"'"'C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_bee96abcd510423384b2300c4649446e\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Ahmad\AppData\Local\Temp\pip-pip-egg-info-5_khc2ld' cwd: C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_bee96abcd510423384b2300c4649446e\ Complete output (5 lines): Traceback (most recent call last): File "", line 1, in File "C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_bee96abcd510423384b2300c4649446e\setup.py", line 68, in raise OSError("It appears you don't have the sdk installed. Please make sure you installed the sdk before running setup.py") OSError: It appears you don't have the sdk installed. Please make sure you installed the sdk before running setup.py

WARNING: Discarding https://files.pythonhosted.org/packages/00/29/0483e46201975f9c9c9738a151215153fa60a7a558fddbfc6dd9bab0632d/VapourSynth-47.2.zip#sha256=ac1dd9e66623939c2ffc7b70284b15eadadd654fb76243dd187fb3eb9a81b3c2 (from https://pypi.org/simple/vapoursynth/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. Downloading VapourSynth-47.1.zip (388 kB) |████████████████████████████████| 388 kB 187 kB/s ERROR: Command errored out with exit status 1: command: 'D:\Video\av1\env\Scripts\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_1d3c7688970c4a44b2f5b7a6190df245\setup.py'"'"'; file='"'"'C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_1d3c7688970c4a44b2f5b7a6190df245\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Ahmad\AppData\Local\Temp\pip-pip-egg-info-m64p1tmc' cwd: C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_1d3c7688970c4a44b2f5b7a6190df245\ Complete output (5 lines): Traceback (most recent call last): File "", line 1, in File "C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_1d3c7688970c4a44b2f5b7a6190df245\setup.py", line 68, in raise OSError("It appears you don't have the sdk installed. Please make sure you installed the sdk before running setup.py") OSError: It appears you don't have the sdk installed. Please make sure you installed the sdk before running setup.py

WARNING: Discarding https://files.pythonhosted.org/packages/30/d2/3ec8e0a41866a34660b5b96fe23401f0b1a0ec3ac547f8da7e955ca307be/VapourSynth-47.1.zip#sha256=fcb9105629968f0cf19e496d5c70365e47089d0632a8170204d6ca190c7e64ab (from https://pypi.org/simple/vapoursynth/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. Downloading VapourSynth-47.zip (388 kB) |████████████████████████████████| 388 kB 2.2 MB/s ERROR: Command errored out with exit status 1: command: 'D:\Video\av1\env\Scripts\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_50952e223772456689f1ec2bdf0b7c8b\setup.py'"'"'; file='"'"'C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_50952e223772456689f1ec2bdf0b7c8b\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egginfo --egg-base 'C:\Users\Ahmad\AppData\Local\Temp\pip-pip-egg-info-opam91b' cwd: C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_50952e223772456689f1ec2bdf0b7c8b\ Complete output (5 lines): Traceback (most recent call last): File "", line 1, in File "C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_50952e223772456689f1ec2bdf0b7c8b\setup.py", line 68, in raise OSError("It appears you don't have the sdk installed. Please make sure you installed the sdk before running setup.py") OSError: It appears you don't have the sdk installed. Please make sure you installed the sdk before running setup.py

WARNING: Discarding https://files.pythonhosted.org/packages/93/ea/95366a252ee572df4eabf41987662e1653d2f0b2accb1dc9525c50db6a65/VapourSynth-47.zip#sha256=7cbd38425af17a9b9b890bc7f4074dde57610f3b5defebde7e1f85e9ca55ca4c (from https://pypi.org/simple/vapoursynth/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. Downloading VapourSynth-46.zip (60 kB) |████████████████████████████████| 60 kB 1.8 MB/s ERROR: Command errored out with exit status 1: command: 'D:\Video\av1\env\Scripts\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_21e7c0bb113f4fe4a5d44157fca8b7ca\setup.py'"'"'; file='"'"'C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_21e7c0bb113f4fe4a5d44157fca8b7ca\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Ahmad\AppData\Local\Temp\pip-pip-egg-info-1xt5zuea' cwd: C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_21e7c0bb113f4fe4a5d44157fca8b7ca\ Complete output (5 lines): Traceback (most recent call last): File "", line 1, in File "C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_21e7c0bb113f4fe4a5d44157fca8b7ca\setup.py", line 68, in raise OSError("It appears you don't have the sdk installed. Please make sure you installed the sdk before running setup.py") OSError: It appears you don't have the sdk installed. Please make sure you installed the sdk before running setup.py

WARNING: Discarding https://files.pythonhosted.org/packages/f4/c9/1c9fce7eb1b1731384cddf58f8d17c571307b6181bdb94d65a9b5b2a3db9/VapourSynth-46.zip#sha256=2bae5c8dff1ea1d29584c167e96e184fbfc33b2d9d2d6ab30b1815d1dcae623d (from https://pypi.org/simple/vapoursynth/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. Downloading VapourSynth-45.tar.gz (378 kB) |████████████████████████████████| 378 kB 2.2 MB/s ERROR: Command errored out with exit status 1: command: 'D:\Video\av1\env\Scripts\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_463cdcc2a5dd4914ad4ee8b4f40f0afd\setup.py'"'"'; file='"'"'C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_463cdcc2a5dd4914ad4ee8b4f40f0afd\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Ahmad\AppData\Local\Temp\pip-pip-egg-info-6vogh883' cwd: C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_463cdcc2a5dd4914ad4ee8b4f40f0afd\ Complete output (5 lines): Traceback (most recent call last): File "", line 1, in File "C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_463cdcc2a5dd4914ad4ee8b4f40f0afd\setup.py", line 68, in raise OSError("It appears you don't have the sdk installed. Please make sure you installed the sdk before running setup.py") OSError: It appears you don't have the sdk installed. Please make sure you installed the sdk before running setup.py

WARNING: Discarding https://files.pythonhosted.org/packages/13/6a/990c6544e6fca02a917a045f8387bda500937dc7cdf2582b580499db3a4f/VapourSynth-45.tar.gz#sha256=2802f8f00518bbc24525c40df9d6bbb167349f9828566a1ed555494e52ac3e7f (from https://pypi.org/simple/vapoursynth/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. Downloading VapourSynth-44.zip (58 kB) |████████████████████████████████| 58 kB 2.0 MB/s ERROR: Command errored out with exit status 1: command: 'D:\Video\av1\env\Scripts\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_c703204b4e524a3293092903b355c0a4\setup.py'"'"'; file='"'"'C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_c703204b4e524a3293092903b355c0a4\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Ahmad\AppData\Local\Temp\pip-pip-egg-info-odde8gir' cwd: C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_c703204b4e524a3293092903b355c0a4\ Complete output (5 lines): Traceback (most recent call last): File "", line 1, in File "C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_c703204b4e524a3293092903b355c0a4\setup.py", line 68, in raise OSError("It appears you don't have the sdk installed. Please make sure you installed the sdk before running setup.py") OSError: It appears you don't have the sdk installed. Please make sure you installed the sdk before running setup.py

WARNING: Discarding https://files.pythonhosted.org/packages/8d/93/c826fb7b908534a381a6c96fc364048fc3a6e60bf30a0dd1255bca51d626/VapourSynth-44.zip#sha256=1cf605be5270ac644e4ae4278359f70b46fdcd6d02117b8dbcf8f99b9da0b31e (from https://pypi.org/simple/vapoursynth/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. Downloading VapourSynth-43.zip (371 kB) |████████████████████████████████| 371 kB 1.7 MB/s ERROR: Command errored out with exit status 1: command: 'D:\Video\av1\env\Scripts\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_8d5e43e23a6e43ce9ff11d78a5c6e281\setup.py'"'"'; file='"'"'C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_8d5e43e23a6e43ce9ff11d78a5c6e281\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Ahmad\AppData\Local\Temp\pip-pip-egg-info-dydpcjjz' cwd: C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_8d5e43e23a6e43ce9ff11d78a5c6e281\ Complete output (5 lines): Traceback (most recent call last): File "", line 1, in File "C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_8d5e43e23a6e43ce9ff11d78a5c6e281\setup.py", line 68, in raise OSError("It appears you don't have the sdk installed. Please make sure you installed the sdk before running setup.py") OSError: It appears you don't have the sdk installed. Please make sure you installed the sdk before running setup.py

WARNING: Discarding https://files.pythonhosted.org/packages/b1/39/fa4c3c6fb0937b20137456954afbc2c55e86a3ec6b7806223dba7a00e4d8/VapourSynth-43.zip#sha256=1b5a1541562151fdf1f48aabf9f271e99106492b100a9c4fac86457bd86d132c (from https://pypi.org/simple/vapoursynth/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. Downloading VapourSynth-42.zip (371 kB) |████████████████████████████████| 371 kB 6.8 MB/s ERROR: Command errored out with exit status 1: command: 'D:\Video\av1\env\Scripts\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_8038118df3ca49c4b248003641d71d57\setup.py'"'"'; file='"'"'C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_8038118df3ca49c4b248003641d71d57\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Ahmad\AppData\Local\Temp\pip-pip-egg-info-7s_fbpvc' cwd: C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_8038118df3ca49c4b248003641d71d57\ Complete output (5 lines): Traceback (most recent call last): File "", line 1, in File "C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_8038118df3ca49c4b248003641d71d57\setup.py", line 68, in raise OSError("It appears you don't have the sdk installed. Please make sure you installed the sdk before running setup.py") OSError: It appears you don't have the sdk installed. Please make sure you installed the sdk before running setup.py

WARNING: Discarding https://files.pythonhosted.org/packages/21/60/c5f442b0ca765c992255d311322885d6f3dccba682b82c6e44a4e2d00d28/VapourSynth-42.zip#sha256=eb9517701b2d356a5c1097eff808f2654fc0670587d6a20b47a1e3e8f5e40161 (from https://pypi.org/simple/vapoursynth/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. Downloading VapourSynth-41.zip (369 kB) |████████████████████████████████| 369 kB 504 kB/s ERROR: Command errored out with exit status 1: command: 'D:\Video\av1\env\Scripts\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_4358a026ebeb4ff286189a458ab85d3f\setup.py'"'"'; file='"'"'C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_4358a026ebeb4ff286189a458ab85d3f\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Ahmad\AppData\Local\Temp\pip-pip-egg-info-ordd4kok' cwd: C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_4358a026ebeb4ff286189a458ab85d3f\ Complete output (5 lines): Traceback (most recent call last): File "", line 1, in File "C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_4358a026ebeb4ff286189a458ab85d3f\setup.py", line 68, in raise OSError("It appears you don't have the sdk installed. Please make sure you installed the sdk before running setup.py") OSError: It appears you don't have the sdk installed. Please make sure you installed the sdk before running setup.py

WARNING: Discarding https://files.pythonhosted.org/packages/8b/77/7e53aa49597bdf5c210ace16cbe6aeda4c7fb7ac3046bee4e398bb6bd0e9/VapourSynth-41.zip#sha256=7c2776f93b41c2c5439084e5f5c80959ccf00f88b750b2ad26785b43b8babe7d (from https://pypi.org/simple/vapoursynth/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. Downloading VapourSynth-40.zip (391 kB) |████████████████████████████████| 391 kB 1.6 MB/s ERROR: Command errored out with exit status 1: command: 'D:\Video\av1\env\Scripts\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_61c6cd2ac7454986ae6b7d65f04b6ad5\setup.py'"'"'; file='"'"'C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_61c6cd2ac7454986ae6b7d65f04b6ad5\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Ahmad\AppData\Local\Temp\pip-pip-egg-info-m99fv4z6' cwd: C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_61c6cd2ac7454986ae6b7d65f04b6ad5\ Complete output (5 lines): Traceback (most recent call last): File "", line 1, in File "C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_61c6cd2ac7454986ae6b7d65f04b6ad5\setup.py", line 68, in raise OSError("It appears you don't have the sdk installed. Please make sure you installed the sdk before running setup.py") OSError: It appears you don't have the sdk installed. Please make sure you installed the sdk before running setup.py

WARNING: Discarding https://files.pythonhosted.org/packages/f1/f1/2052204a3d4ec1b790382e7bd113009fc7e3e6df5c5a6a0f48cb5adc933f/VapourSynth-40.zip#sha256=bd5e987c88e50809a21a30e6c1b4f84369cbcd1329d71c5e22335369c38f06dd (from https://pypi.org/simple/vapoursynth/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. Downloading VapourSynth-39.tar.gz (49 kB) |████████████████████████████████| 49 kB 1.5 MB/s ERROR: Command errored out with exit status 1: command: 'D:\Video\av1\env\Scripts\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_6796f01f17b54529ba90217ffaba2fc1\setup.py'"'"'; file='"'"'C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_6796f01f17b54529ba90217ffaba2fc1\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egginfo --egg-base 'C:\Users\Ahmad\AppData\Local\Temp\pip-pip-egg-info-zlqz755' cwd: C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_6796f01f17b54529ba90217ffaba2fc1\ Complete output (5 lines): Traceback (most recent call last): File "", line 1, in File "C:\Users\Ahmad\AppData\Local\Temp\pip-install-108as8um\vapoursynth_6796f01f17b54529ba90217ffaba2fc1\setup.py", line 68, in raise OSError("It appears you don't have the sdk installed. Please make sure you installed the sdk before running setup.py") OSError: It appears you don't have the sdk installed. Please make sure you installed the sdk before running setup.py

WARNING: Discarding https://files.pythonhosted.org/packages/79/62/9949f4251a3090f0ec41d124739526ff0f957bbe0bf998e665f595085aed/VapourSynth-39.tar.gz#sha256=12f212c2ea6e978a32c059e134135aceb5e97476226439e79dd6797d9f52f535 (from https://pypi.org/simple/vapoursynth/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. ERROR: Could not find a version that satisfies the requirement vapoursynth (from versions: 39, 40, 41, 42, 43, 44, 45, 46, 47, 47.1, 47.2, 48, 49, 50, 51) ERROR: No matching distribution found for vapoursynth 💥 maturin failed Caused by: pip install finished with "exit code: 1"

master-of-zen commented 3 years ago

In current state av1an can't bee installed, and require compilation of libraries with maturin develop, (look up in install gist) and usage from venv like ./av1an.py ... Sorry for inconvenience, it's currently in state of total rewrite. I would recommend to just use current stable pip version pip install av1an

ahmadrr commented 3 years ago

I think I have successfully compiled it, but I got these errors when I ran av1an.py. Are there files that I should copy-paste to somewhere? Thanks

"c:\program files\python38\python" d:\video\av1\av1an.py Traceback (most recent call last): File "d:\video\av1\av1an.py", line 4, in from cli.main import main File "d:\video\av1\cli__main__.py", line 2, in from av1an.arg_parse import Args File "d:\video\av1\av1an__init__.py", line 3, in from av1an_pyo3 import * ModuleNotFoundError: No module named 'av1an_pyo3'

Below is the compilation output from cmd

(env) d:\Video\av1>maturin develop --release -m av1an-pyo3/Cargo.toml 🔗 Found pyo3 bindings 🐍 Found CPython 3.8 at python.exe Requirement already satisfied: numpy in d:\video\av1\env\lib\site-packages (1.20.3) Requirement already satisfied: scenedetect[opencv] in d:\video\av1\env\lib\site-packages (0.5.5) Requirement already satisfied: opencv-python in d:\video\av1\env\lib\site-packages (4.5.2.54) Requirement already satisfied: tqdm in d:\video\av1\env\lib\site-packages (4.61.0) Requirement already satisfied: psutil in d:\video\av1\env\lib\site-packages (5.8.0) Requirement already satisfied: scipy in d:\video\av1\env\lib\site-packages (1.6.3) Requirement already satisfied: matplotlib in d:\video\av1\env\lib\site-packages (3.4.2) Requirement already satisfied: vapoursynth in d:\video\av1\env\lib\site-packages (51) Requirement already satisfied: pillow>=6.2.0 in d:\video\av1\env\lib\site-packages (from matplotlib) (8.2.0) Requirement already satisfied: kiwisolver>=1.0.1 in d:\video\av1\env\lib\site-packages (from matplotlib) (1.3.1) Requirement already satisfied: python-dateutil>=2.7 in d:\video\av1\env\lib\site-packages (from matplotlib) (2.8.1) Requirement already satisfied: pyparsing>=2.2.1 in d:\video\av1\env\lib\site-packages (from matplotlib) (2.4.7) Requirement already satisfied: cycler>=0.10 in d:\video\av1\env\lib\site-packages (from matplotlib) (0.10.0) Requirement already satisfied: six in d:\video\av1\env\lib\site-packages (from cycler>=0.10->matplotlib) (1.16.0) Requirement already satisfied: Click in d:\video\av1\env\lib\site-packages (from scenedetect[opencv]) (8.0.1) Requirement already satisfied: colorama in d:\video\av1\env\lib\site-packages (from Click->scenedetect[opencv]) (0.4.4) Compiling av1an-pyo3 v0.1.2 (D:\Video\av1\av1an-pyo3) Finished release [optimized] target(s) in 2.82s

luigi311 commented 3 years ago

Were you in the env when you ran av1an? You need to have the env active when you use av1an as that is where av1a-pyo3 lives

ahmadrr commented 3 years ago

Yes I tried running in env and it was still looking for av1an_pyo3.dll in "av1an_pyo3" folder, not "av1an-pyo3" folder. So I created one and pasted the module there. I don't see where frame_probe_vspipe is though.

D:\Video\av1>env\scripts\activate

(env) D:\Video\av1>av1an Traceback (most recent call last): File "D:\Video\av1\av1an.py", line 4, in from cli.main import main File "D:\Video\av1\cli__main.py", line 2, in from av1an.arg_parse import Args File "D:\Video\av1\av1an\arg_parse.py", line 5, in from .project import Project File "D:\Video\av1\av1an\project\init__.py", line 1, in from .Project import Project File "D:\Video\av1\av1an\project\Project.py", line 7, in from av1an.utils import frame_probe_fast File "D:\Video\av1\av1an\utils.py", line 9, in from av1an_pyo3 import frame_probe_vspipe, ffmpeg_get_frame_count ImportError: cannot import name 'frame_probe_vspipe' from 'av1an_pyo3' (unknown location)

ahmadrr commented 3 years ago

This is pip version

pip install --upgrade av1an Requirement already satisfied: av1an in c:\program files\python38\lib\site-packages\av1an-7.0.0-py3.8.egg (7.0.0) Requirement already satisfied: numpy in c:\program files\python38\lib\site-packages (from av1an) (1.19.4) Requirement already satisfied: vapoursynth in c:\program files\python38\lib\site-packages (from av1an) (51) Requirement already satisfied: scenedetect[opencv] in c:\program files\python38\lib\site-packages (from av1an) (0.5.4.1) Requirement already satisfied: opencv-python in c:\program files\python38\lib\site-packages (from av1an) (4.4.0.46) Requirement already satisfied: tqdm in c:\program files\python38\lib\site-packages (from av1an) (4.60.0) Requirement already satisfied: psutil in c:\program files\python38\lib\site-packages\psutil-5.8.0-py3.8-win-amd64.egg (from av1an) (5.8.0) Requirement already satisfied: scipy in c:\program files\python38\lib\site-packages\scipy-1.6.0-py3.8-win-amd64.egg (from av1an) (1.6.0) Requirement already satisfied: matplotlib in c:\program files\python38\lib\site-packages\matplotlib-3.3.4-py3.8-win-amd64.egg (from av1an) (3.3.4) Requirement already satisfied: maturin in d:\video\av1.eggs\maturin-0.10.6-py3.8-win-amd64.egg (from av1an) (0.10.6) Requirement already satisfied: setuptools_rust in c:\program files\python38\lib\site-packages (from av1an) (0.12.1) Requirement already satisfied: cycler>=0.10 in c:\program files\python38\lib\site-packages\cycler-0.10.0-py3.8.egg (from matplotlib->av1an) (0.10.0) Requirement already satisfied: kiwisolver>=1.0.1 in c:\program files\python38\lib\site-packages\kiwisolver-1.3.1-py3.8-win-amd64.egg (from matplotlib->av1an) (1.3.1) Requirement already satisfied: pillow>=6.2.0 in c:\program files\python38\lib\site-packages\pillow-8.1.0-py3.8-win-amd64.egg (from matplotlib->av1an) (8.1.0) Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3 in c:\program files\python38\lib\site-packages\pyparsing-3.0.0b2-py3.8.egg (from matplotlib->av1an) (3.0.0b2) Requirement already satisfied: python-dateutil>=2.1 in c:\program files\python38\lib\site-packages\python_dateutil-2.8.1-py3.8.egg (from matplotlib->av1an) (2.8.1) Requirement already satisfied: six in c:\program files\python38\lib\site-packages\six-1.15.0-py3.8.egg (from cycler>=0.10->matplotlib->av1an) (1.15.0) Requirement already satisfied: toml~=0.10.2 in c:\program files\python38\lib\site-packages (from maturin->av1an) (0.10.2) Requirement already satisfied: Click in c:\program files\python38\lib\site-packages (from scenedetect[opencv]->av1an) (7.1.2) Requirement already satisfied: setuptools>=46.1 in c:\program files\python38\lib\site-packages (from setuptools_rust->av1an) (56.0.0) Requirement already satisfied: semantic-version>=2.6.0 in c:\program files\python38\lib\site-packages (from setuptools_rust->av1an) (2.8.5)

C:\WINDOWS\system32>av1an Traceback (most recent call last): File "C:\Program Files\Python38\Scripts\av1an-script.py", line 33, in sys.exit(load_entry_point('Av1an==7.0.0', 'console_scripts', 'av1an')()) File "C:\Program Files\Python38\Scripts\av1an-script.py", line 25, in importlib_load_entry_point return next(matches).load() File "C:\Program Files\Python38\lib\importlib\metadata.py", line 77, in load module = import_module(match.group('module')) File "C:\Program Files\Python38\lib\importlib__init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1014, in _gcd_import File "", line 991, in _find_and_load File "", line 961, in _find_and_load_unlocked File "", line 219, in _call_with_frames_removed File "", line 1014, in _gcd_import File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "", line 848, in exec_module File "", line 219, in _call_with_frames_removed File "C:\Program Files\Python38\lib\site-packages\av1an-7.0.0-py3.8.egg\av1an\init__.py", line 3, in from av1an_pyo3 import * ModuleNotFoundError: No module named 'av1an_pyo3'

luigi311 commented 3 years ago

I would say pip uninstall av1an all together and then reinstall it. It looks like it didnt actually do anything when you told it to install the pip version.

ahmadrr commented 3 years ago

I would say pip uninstall av1an all together and then reinstall it. It looks like it didnt actually do anything when you told it to install the pip version.

This solved the problem, thank you. I'll wait for the rewrite to finish.

Felixkruemel commented 3 years ago

I'll wait for the rewrite to finish. This is what you should do right now. The rewrite will probably take quite some time still

ahmadrr commented 3 years ago

I sucessfully compiled av1an rust just now. Thanks for the rewrite.