DmitryUlyanov/Multicore-TSNE

Build Fails on ubuntu 18.04

tariqdaouda opened this issue ยท 8 comments

Hello,

Both through the pip and git clone install I get this:

` ERROR: running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/MulticoreTSNE
copying MulticoreTSNE/init.py -> build/lib.linux-x86_64-3.7/MulticoreTSNE
creating build/lib.linux-x86_64-3.7/MulticoreTSNE/tests
copying MulticoreTSNE/tests/init.py -> build/lib.linux-x86_64-3.7/MulticoreTSNE/tests
copying MulticoreTSNE/tests/test_base.py -> build/lib.linux-x86_64-3.7/MulticoreTSNE/tests
running egg_info
creating MulticoreTSNE.egg-info
writing MulticoreTSNE.egg-info/PKG-INFO
writing dependency_links to MulticoreTSNE.egg-info/dependency_links.txt
writing requirements to MulticoreTSNE.egg-info/requires.txt
writing top-level names to MulticoreTSNE.egg-info/top_level.txt
writing manifest file 'MulticoreTSNE.egg-info/SOURCES.txt'
reading manifest file 'MulticoreTSNE.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'MulticoreTSNE.egg-info/SOURCES.txt'
running build_ext
cmake version 3.14.4

CMake suite maintained and supported by Kitware (kitware.com/cmake).
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:1 (PROJECT):
No CMAKE_CXX_COMPILER could be found.

Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.

-- Configuring incomplete, errors occurred!
See also "/tmp/pip-req-build-ztrw2075/build/temp.linux-x86_64-3.7/CMakeFiles/CMakeOutput.log".
See also "/tmp/pip-req-build-ztrw2075/build/temp.linux-x86_64-3.7/CMakeFiles/CMakeError.log".

ERROR: Cannot generate Makefile. See above errors`

Yea. I'm having a same error on my windows 10 system

Installing cmake first with

pip install cmake

fixed it for met.

apt-get install gcc g++ cmake

worked for me in a container I just built..

Would it be possible that you (@DmitryUlyanov) add cmake to requirements.txt (like cmake>=3.17.0 )? This would be great for automatic dependency solving and package builds and avoids issues as described above.

Thanks in advance!

Would it be possible that you (@DmitryUlyanov) add cmake to requirements.txt (like cmake>=3.17.0 )? This would be great for automatic dependency solving and package builds and avoids issues as described above.

Thanks in advance!

Added!

Would it be possible that you (@DmitryUlyanov) add cmake to requirements.txt (like cmake>=3.17.0 )? This would be great for automatic dependency solving and package builds and avoids issues as described above.
Thanks in advance!

Added!

Thanks a lot!

Installing cmake first with

pip install cmake

fixed it for met.

This doesn't fix the issue for me. I also followed instructions by @deepchatterjeevns from
#47

I have windows 10, python 3.7.0

Can someone provide any insight?

`(base) C:\Users\sruth>pip install --user MulticoreTSNE
Collecting MulticoreTSNE
Using cached MulticoreTSNE-0.1.tar.gz (20 kB)
Requirement already satisfied: numpy in c:\users\sruth\appdata\local\continuum\anaconda3\lib\site-packages (from MulticoreTSNE) (1.18.1)
Requirement already satisfied: cffi in c:\users\sruth\appdata\local\continuum\anaconda3\lib\site-packages (from MulticoreTSNE) (1.11.5)
Requirement already satisfied: pycparser in c:\users\sruth\appdata\local\continuum\anaconda3\lib\site-packages (from cffi->MulticoreTSNE) (2.18)
Building wheels for collected packages: MulticoreTSNE
Building wheel for MulticoreTSNE (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\sruth\appdata\local\continuum\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\sruth\AppData\Local\Temp\pip-install-hr0pqbio\multicoretsne\setup.py'"'"'; file='"'"'C:\Users\sruth\AppData\Local\Temp\pip-install-hr0pqbio\multicoretsne\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\sruth\AppData\Local\Temp\pip-wheel-hw97cm0g'
cwd: C:\Users\sruth\AppData\Local\Temp\pip-install-hr0pqbio\multicoretsne
Complete output (46 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.7
creating build\lib.win-amd64-3.7\MulticoreTSNE
copying MulticoreTSNE_init_.py -> build\lib.win-amd64-3.7\MulticoreTSNE
creating build\lib.win-amd64-3.7\MulticoreTSNE\tests
copying MulticoreTSNE\tests\test_base.py -> build\lib.win-amd64-3.7\MulticoreTSNE\tests
copying MulticoreTSNE\tests_init_.py -> build\lib.win-amd64-3.7\MulticoreTSNE\tests
running egg_info
writing MulticoreTSNE.egg-info\PKG-INFO
writing dependency_links to MulticoreTSNE.egg-info\dependency_links.txt
writing requirements to MulticoreTSNE.egg-info\requires.txt
writing top-level names to MulticoreTSNE.egg-info\top_level.txt
reading manifest file 'MulticoreTSNE.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'MulticoreTSNE.egg-info\SOURCES.txt'
running build_ext
cmake version 3.18.4

CMake suite maintained and supported by Kitware (kitware.com/cmake).
-- Building for: NMake Makefiles
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:1 (PROJECT):
The CMAKE_CXX_COMPILER:

  cl

is not a full path and was not found in the PATH.

To use the NMake generator with Visual C++, cmake must be run from a shell
that can use the compiler cl from the command line.  This environment is
unable to invoke the cl compiler.  To fix this problem, run cmake from the
Visual Studio Command Prompt (vcvarsall.bat).

Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.

-- Configuring incomplete, errors occurred!
See also "C:/Users/sruth/AppData/Local/Temp/pip-install-hr0pqbio/multicoretsne/build/temp.win-amd64-3.7/Release/CMakeFiles/CMakeOutput.log".
See also "C:/Users/sruth/AppData/Local/Temp/pip-install-hr0pqbio/multicoretsne/build/temp.win-amd64-3.7/Release/CMakeFiles/CMakeError.log".

ERROR: Cannot generate Makefile. See above errors.

ERROR: Failed building wheel for MulticoreTSNE
Running setup.py clean for MulticoreTSNE
Failed to build MulticoreTSNE
Installing collected packages: MulticoreTSNE
Running setup.py install for MulticoreTSNE ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\sruth\appdata\local\continuum\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\sruth\AppData\Local\Temp\pip-install-hr0pqbio\multicoretsne\setup.py'"'"'; file='"'"'C:\Users\sruth\AppData\Local\Temp\pip-install-hr0pqbio\multicoretsne\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\sruth\AppData\Local\Temp\pip-record-c9ab2iz1\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\sruth\AppData\Roaming\Python\Python37\Include\MulticoreTSNE'
cwd: C:\Users\sruth\AppData\Local\Temp\pip-install-hr0pqbio\multicoretsne
Complete output (46 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.7
creating build\lib.win-amd64-3.7\MulticoreTSNE
copying MulticoreTSNE_init_.py -> build\lib.win-amd64-3.7\MulticoreTSNE
creating build\lib.win-amd64-3.7\MulticoreTSNE\tests
copying MulticoreTSNE\tests\test_base.py -> build\lib.win-amd64-3.7\MulticoreTSNE\tests
copying MulticoreTSNE\tests_init_.py -> build\lib.win-amd64-3.7\MulticoreTSNE\tests
running egg_info
writing MulticoreTSNE.egg-info\PKG-INFO
writing dependency_links to MulticoreTSNE.egg-info\dependency_links.txt
writing requirements to MulticoreTSNE.egg-info\requires.txt
writing top-level names to MulticoreTSNE.egg-info\top_level.txt
reading manifest file 'MulticoreTSNE.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'MulticoreTSNE.egg-info\SOURCES.txt'
running build_ext
cmake version 3.18.4

CMake suite maintained and supported by Kitware (kitware.com/cmake).
-- Building for: NMake Makefiles
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:1 (PROJECT):
  The CMAKE_CXX_COMPILER:

    cl

  is not a full path and was not found in the PATH.

  To use the NMake generator with Visual C++, cmake must be run from a shell
  that can use the compiler cl from the command line.  This environment is
  unable to invoke the cl compiler.  To fix this problem, run cmake from the
  Visual Studio Command Prompt (vcvarsall.bat).

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.


-- Configuring incomplete, errors occurred!
See also "C:/Users/sruth/AppData/Local/Temp/pip-install-hr0pqbio/multicoretsne/build/temp.win-amd64-3.7/Release/CMakeFiles/CMakeOutput.log".
See also "C:/Users/sruth/AppData/Local/Temp/pip-install-hr0pqbio/multicoretsne/build/temp.win-amd64-3.7/Release/CMakeFiles/CMakeError.log".

ERROR: Cannot generate Makefile. See above errors.
----------------------------------------

ERROR: Command errored out with exit status 1: 'c:\users\sruth\appdata\local\continuum\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\sruth\AppData\Local\Temp\pip-install-hr0pqbio\multicoretsne\setup.py'"'"'; file='"'"'C:\Users\sruth\AppData\Local\Temp\pip-install-hr0pqbio\multicoretsne\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\sruth\AppData\Local\Temp\pip-record-c9ab2iz1\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\sruth\AppData\Roaming\Python\Python37\Include\MulticoreTSNE' Check the logs for full command output.
WARNING: You are using pip version 20.2.4; however, version 20.3.3 is available.
You should consider upgrading via the 'c:\users\sruth\appdata\local\continuum\anaconda3\python.exe -m pip install --upgrade pip' command.
`

I have same issue