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

Issue while installing lap and other bib related to VS #2

Open
Sarouch opened this issue Nov 7, 2022 · 5 comments
Open

Issue while installing lap and other bib related to VS #2

Sarouch opened this issue Nov 7, 2022 · 5 comments

Comments

@Sarouch
Copy link

Sarouch commented Nov 7, 2022

Hello,
Thank you for this amazing work!
I have some installation issues, I have this error while installing asone, or even doing it separately (for example here for pip install lap)

`INFO:

  ########### EXT COMPILER OPTIMIZATION ###########
  INFO: Platform      :
    Architecture: x64
    Compiler    : msvc

  CPU baseline  :
    Requested   : 'min'
    Enabled     : none
    Flags       : none
    Extra checks: none

  CPU dispatch  :
    Requested   : 'max -xop -fma4'
    Enabled     : none
    Generated   : none
  INFO: CCompilerOpt.cache_flush[825] : write cache to path -> C:\Users\AppData\Local\Temp\pip-install-etdq5zeh\lap_45220a53799847869a905004fb7a2314\build\temp.win-amd64-cpython-38\Release\ccompiler_opt_cache_ext.py

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for lap
Running setup.py clean for lap
Failed to build lap
Installing collected packages: lap
Running setup.py install for lap ... error
error: subprocess-exited-with-error

× Running setup.py install for lap did not run successfully.
│ exit code: 1
╰─> [107 lines of output]
Partial import of lap during the build process.
Generating cython files
running install
C:\Users\anaconda3\envs\py38_GPU_pyqt\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running config_cc
INFO: unifing config_cc, config, build_clib, build_ext, build commands --compiler options
running config_fc
INFO: unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
running build_src
INFO: build_src
INFO: building extension "lap.lapjv" sources
INFO: building data_files sources
INFO: build_src: building npy-pkg config files
running build_py
creating build
creating build\lib.win-amd64-cpython-38
creating build\lib.win-amd64-cpython-38\lap
copying lap\lapmod.py -> build\lib.win-amd64-cpython-38\lap
copying lap_init
.py -> build\lib.win-amd64-cpython-38\lap
running build_ext
INFO: No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
INFO: customize MSVCCompiler
INFO: customize MSVCCompiler using build_ext
INFO: CCompilerOpt.cc_test_flags[1029] : testing flags (/O2)
creating C:\Users\CHOUCH1\AppData\Local\Temp\tmphagtbu1r\Users
creating C:\Users\CHOUCH
1\AppData\Local\Temp\tmphagtbu1r\Users\chouchen2-admin
creating C:\Users\CHOUCH1\AppData\Local\Temp\tmphagtbu1r\Users\chouchen2-admin\anaconda3
creating C:\Users\CHOUCH
1\AppData\Local\Temp\tmphagtbu1r\Users\chouchen2-admin\anaconda3\envs
creating C:\Users\CHOUCH1\AppData\Local\Temp\tmphagtbu1r\Users\chouchen2-admin\anaconda3\envs\py38_GPU_pyqt
creating C:\Users\CHOUCH
1\AppData\Local\Temp\tmphagtbu1r\Users\chouchen2-admin\anaconda3\envs\py38_GPU_pyqt\Lib
creating C:\Users\CHOUCH1\AppData\Local\Temp\tmphagtbu1r\Users\chouchen2-admin\anaconda3\envs\py38_GPU_pyqt\Lib\site-packages
creating C:\Users\CHOUCH
1\AppData\Local\Temp\tmphagtbu1r\Users\chouchen2-admin\anaconda3\envs\py38_GPU_pyqt\Lib\site-packages\numpy
creating C:\Users\CHOUCH1\AppData\Local\Temp\tmphagtbu1r\Users\chouchen2-admin\anaconda3\envs\py38_GPU_pyqt\Lib\site-packages\numpy\distutils
creating C:\Users\CHOUCH
1\AppData\Local\Temp\tmphagtbu1r\User\anaconda3\envs\py38_GPU_pyqt\Lib\site-packages\numpy\distutils\checks
INFO: CCompilerOpt.cc_test_flags[1029] : testing flags (/WX)
WARN: CCompilerOpt.init[1175] : feature 'AVX512_KNL' is disabled, MSVC compiler doesn't support it
WARN: CCompilerOpt.init[1175] : feature 'AVX512_KNM' is disabled, MSVC compiler doesn't support it
INFO: CCompilerOpt.init[1717] : check requested baseline
INFO: CCompilerOpt.feature_test[1482] : testing feature 'SSE' with flags ()
WARN: CCompilerOpt.dist_test[598] : CCompilerOpt._dist_test_spawn[732] : Command (C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\bin\HostX86\x64\cl.exe /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\anaconda3\envs\py38_GPU_pyqt\include -IC:\Users\chouchen2-admin\anaconda3\envs\py38_GPU_pyqt\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\include /TcC:\Users\chouchen2-admin\anaconda3\envs\py38_GPU_pyqt\Lib\site-packages\numpy\distutils\checks\cpu_sse.c /FoC:\Users\CHOUCH~1\AppData\Local\Temp\tmphagtbu1r\Users\anaconda3\envs\py38_GPU_pyqt\Lib\site-packages\numpy\distutils\checks\cpu_sse.obj /WX) failed with exit status 2 output

`

So, could you tell me if it is related to the Virtual Studio version? Thanks

@MNMaqsood
Copy link
Collaborator

It looks like an issue Virtual Studio version, which version are you using?

@Sarouch
Copy link
Author

Sarouch commented Nov 8, 2022

It looks like an issue Virtual Studio version, which version are you using?

@MNMaqsood I have VS 2019 version

@MNMaqsood
Copy link
Collaborator

Are you using anaconda enviroment for this project? If so can you deactivate that and install it in vanilla virtual enviroment?
Also remember to install numpy and cython before installing asone per our instruction.

@Sarouch
Copy link
Author

Sarouch commented Nov 8, 2022

Are you using anaconda enviroment for this project? If so can you deactivate that and install it in vanilla virtual enviroment? Also remember to install numpy and cython before installing asone per our instruction.

@MNMaqsood I have already tried without conda, I think the problem happens while installing " pip install -e git+https://github.com/samson-wang/cython_bbox.git#egg=cython-bbox"
I have this error:

(.env)` PS C:\Users\Documents\Turbuelnce_IA\AS-One> pip install -e git+https://github.com/samson-wang/cython_bbox.git#egg=cython-bbox

WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Obtaining cython-bbox from git+https://github.com/samson-wang/cython_bbox.git#egg=cython-bbox
Updating c:\users\turbuelnce_ia\as-one\src\cython-bbox clone
Requirement already satisfied: Cython in c:\users\anaconda3\lib\site-packages (from cython-bbox) (0.29.21)
Requirement already satisfied: numpy in c:\users\anaconda3\lib\site-packages (from cython-bbox) (1.17.0)
Installing collected packages: cython-bbox
Running setup.py develop for cython-bbox
ERROR: Command errored out with exit status 1:
command: 'C:\Users\anaconda3\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Documents\Turbuelnce_IA\AS-One\src\cython-bbox\setup.py'"'"'; file='"'"'C:\Users\\Documents\Turbuelnce_IA\AS-One\src\cython-bbox\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
cwd: C:\Users\Turbuelnce_IA\AS-One\src\cython-bbox
Complete output (18 lines):
running develop
running egg_info
writing cython_bbox.egg-info\PKG-INFO
writing dependency_links to cython_bbox.egg-info\dependency_links.txt
writing requirements to cython_bbox.egg-info\requires.txt
writing top-level names to cython_bbox.egg-info\top_level.txt
reading manifest file 'cython_bbox.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'cython_bbox.egg-info\SOURCES.txt'
running build_ext
skipping 'src\cython_bbox.c' Cython extension (up-to-date)
building 'cython_bbox' extension
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\anaconda3\lib\site-packages\numpy\core\include -IC:\Users\anaconda3\include -IC:\Users\anaconda3\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\include" /Tcsrc\cython_bbox.c /Fobuild\temp.win-amd64-3.7\Release\src\cython_bbox.obj gcc
clÿ: Ligne de commande warning D9024ÿ: type de fichier source non reconnu 'gcc', fichier objet pris par d‚faut
clÿ: Ligne de commande warning D9027ÿ: fichier source 'gcc' ignor‚
cython_bbox.c
C:\Users\chouchen2-admin\anaconda3\include\pyconfig.h(59): fatal error C1083: Impossible d'ouvrir le fichier includeÿ: 'io.h'ÿ: No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\bin\HostX86\x64\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\anaconda3\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\\Documents\Turbuelnce_IA\AS-One\src\cython-bbox\setup.py'"'"'; file='"'"'C:\Users\\Turbuelnce_IA\AS-One\src\cython-bbox\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 Check the logs for full command

output.``

@MNMaqsood
Copy link
Collaborator

This issue is related to cython-bbox installation and not to asone library. You can see this issue in cython-bbox repo.

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

2 participants