Skip to content
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

Lintel Installation error_Windows 10_Anaconda #37

Open
SyedFaisalGardezi opened this issue Oct 15, 2019 · 3 comments
Open

Lintel Installation error_Windows 10_Anaconda #37

SyedFaisalGardezi opened this issue Oct 15, 2019 · 3 comments

Comments

@SyedFaisalGardezi
Copy link

Hello gyus,
I am trying to install lintel using following command:
pip3 install --editable . --user
but some error, I have installed the pre-req for this as well. I have reinstalled VS Studio, checked the setuptools as guided on some forum but still not being able to resolve the issue.
Can someone help me to solve this issue. Thanks.
(base) PS C:\Users\user_name> pip3 install --editable . --user
Obtaining file:///C:/Users/user_name
Requirement already satisfied: Click in c:\users\user_name\appdata\roaming\python\python37\site-packages (from Lintel==1.0) (7.0)
Requirement already satisfied: numpy in k:\anaconda3_new\lib\site-packages (from Lintel==1.0) (1.16.5)
Installing collected packages: Lintel
Running setup.py develop for Lintel
ERROR: Command errored out with exit status 1:
command: 'k:\anaconda3_new\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\user_name\setup.py'"'"'; file='"'"'C:\Users\user_name\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' develop --no-deps --user --prefix=
cwd: C:\Users\user_name
Complete output (16 lines):
running develop
running egg_info
writing Lintel.egg-info\PKG-INFO
writing dependency_links to Lintel.egg-info\dependency_links.txt
writing entry points to Lintel.egg-info\entry_points.txt
writing requirements to Lintel.egg-info\requires.txt
writing top-level names to Lintel.egg-info\top_level.txt
reading manifest file 'Lintel.egg-info\SOURCES.txt'
writing manifest file 'Lintel.egg-info\SOURCES.txt'
running build_ext
building '_lintel' extension
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DMAJOR_VERSION=1 -DMINOR_VERSION=0 -UNDEBUG -I/usr/include/ffmpeg -Ilintel -Ik:\anaconda3_new\include -Ik:\anaconda3_new\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include" "-IK:\Windows Kits\10\include\10.0.17763.0\ucrt" "-IK:\Windows Kits\10\include\10.0.17763.0\shared" "-IK:\Windows Kits\10\include\10.0.17763.0\um" "-IK:\Windows Kits\10\include\10.0.17763.0\winrt" "-IK:\Windows Kits\10\include\10.0.17763.0\cppwinrt" /Tclintel/py_ext/lintelmodule.c /Fobuild\temp.win-amd64-3.7\Release\lintel/py_ext/lintelmodule.obj
cl : Command line warning D9025 : overriding '/DNDEBUG' with '/UNDEBUG'
lintelmodule.c
lintel\core/video_decode.h(26): fatal error C1083: Cannot open include file: 'libavformat/avformat.h': No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'k:\anaconda3_new\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\user_name\setup.py'"'"'; file='"'"'C:\Users\user_name\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' develop --no-deps --user --prefix= Check the logs for full command

@SyedFaisalGardezi
Copy link
Author

image
ffmpeg version installed ...

@LittleBear666666
Copy link

Hello, I have encountered the same problem as you, but my problem has been solved. The solution is to copy the source code in ffmpeg to an “include“ folder in vs, but I have encountered a series of new problems. I don't know if you have successfully installed it, and I need help.my
email 2842410839@qq.com

@JoshuaQYH
Copy link

JoshuaQYH commented Mar 13, 2020

sudo apt-get install libavformat-dev

This command can solve this problem.
Maybe you will encounter another similiar problem. You can run the similiar command, like

sudo apt-get install libswscale-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants