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

Error on Windows #37

Open
jthermiz opened this issue Jul 1, 2021 · 1 comment
Open

Error on Windows #37

jthermiz opened this issue Jul 1, 2021 · 1 comment

Comments

@jthermiz
Copy link
Contributor

jthermiz commented Jul 1, 2021

I get syntax errors when I try to pip install on Windows 10. Has anyone tried to install this on Windows?

ERROR: Command errored out with exit status 1:
   command: 'C:\Users\JHermiz\miniconda3\envs\echip\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\JHermiz\\AppData\\Local\\Temp\\pip-install-0wpuo_6g\\isosplit5_daacd78b4b3d4530bd4ca31eedd510f3\\setup.py'"'"'; __file__='"'"'C:\\Users\\JHermiz\\AppData\\Local\\Temp\\pip-install-0wpuo_6g\\isosplit5_daacd78b4b3d4530bd4ca31eedd510f3\\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\JHermiz\AppData\Local\Temp\pip-wheel-a03g0uup'
       cwd: C:\Users\JHermiz\AppData\Local\Temp\pip-install-0wpuo_6g\isosplit5_daacd78b4b3d4530bd4ca31eedd510f3\
  Complete output (130 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.8
  creating build\lib.win-amd64-3.8\isosplit5
  copying isosplit5\__init__.py -> build\lib.win-amd64-3.8\isosplit5
  running build_ext
  building 'isosplit5_interface' extension
  creating build\temp.win-amd64-3.8
  creating build\temp.win-amd64-3.8\Release
  creating build\temp.win-amd64-3.8\Release\src
  C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30037\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\JHermiz\miniconda3\envs\echip\lib\site-packages\pybind11\include -IC:\Users\JHermiz\miniconda3\envs\echip\lib\site-packages\pybind11\include -IC:\Users\JHermiz\miniconda3\envs\echip\include -IC:\Users\JHermiz\miniconda3\envs\echip\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30037\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /EHsc /Tpsrc/isosplit5.cpp /Fobuild\temp.win-amd64-3.8\Release\src/isosplit5.obj /EHsc /DVERSION_INFO=\"0.1.3\"
  isosplit5.cpp
  C:\Users\JHermiz\AppData\Local\Temp\pip-install-0wpuo_6g\isosplit5_daacd78b4b3d4530bd4ca31eedd510f3\src\isocut5.h(21): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  C:\Users\JHermiz\AppData\Local\Temp\pip-install-0wpuo_6g\isosplit5_daacd78b4b3d4530bd4ca31eedd510f3\src\isocut5.h(21): error C2146: syntax error: missing ';' before identifier 'bigint'
  C:\Users\JHermiz\AppData\Local\Temp\pip-install-0wpuo_6g\isosplit5_daacd78b4b3d4530bd4ca31eedd510f3\src\isocut5.h(27): error C2061: syntax error: identifier 'bigint'
  C:\Users\JHermiz\AppData\Local\Temp\pip-install-0wpuo_6g\isosplit5_daacd78b4b3d4530bd4ca31eedd510f3\src\isosplit5.h(30): error C2061: syntax error: identifier 'bigint'
  C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30037\include\stdint.h(21): error C2371: 'int64_t': redefinition; different basic types
  C:\Users\JHermiz\AppData\Local\Temp\pip-install-0wpuo_6g\isosplit5_daacd78b4b3d4530bd4ca31eedd510f3\src\isocut5.h(21): note: see declaration of 'int64_t'
  src/isosplit5.cpp(23): error C2923: 'std::vector': 'bigint' is not a valid template type argument for parameter '_Ty'
  C:\Users\JHermiz\AppData\Local\Temp\pip-install-0wpuo_6g\isosplit5_daacd78b4b3d4530bd4ca31eedd510f3\src\isocut5.h(21): note: see declaration of 'bigint'
  src/isosplit5.cpp(23): error C2976: 'std::vector': too few template arguments
  C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30037\include\vector(443): note: see declaration of 'std::vector'
  src/isosplit5.cpp(23): error C3203: 'vector': unspecialized class template can't be used as a template argument for template parameter '_Ty', expected a real type
  src/isosplit5.cpp(24): error C2061: syntax error: identifier 'bigint'
  src/isosplit5.cpp(26): error C2065: 'N1': undeclared identifier
  src/isosplit5.cpp(27): error C2146: syntax error: missing ';' before identifier 'i'
  src/isosplit5.cpp(27): error C2143: syntax error: missing ';' before '='
  src/isosplit5.cpp(27): error C2143: syntax error: missing ')' before '='
  src/isosplit5.cpp(27): error C2059: syntax error: '='
  src/isosplit5.cpp(27): error C2065: 'i': undeclared identifier
  src/isosplit5.cpp(27): error C2065: 'N1': undeclared identifier
  src/isosplit5.cpp(27): error C2065: 'i': undeclared identifier
  src/isosplit5.cpp(27): error C2059: syntax error: ')'
  src/isosplit5.cpp(28): error C2065: 'i': undeclared identifier
  src/isosplit5.cpp(28): error C2065: 'N2': undeclared identifier
  src/isosplit5.cpp(28): error C2059: syntax error: ';'
  src/isosplit5.cpp(30): error C2059: syntax error: '}'
  src/isosplit5.cpp(30): error C2143: syntax error: missing ';' before '}'
  src/isosplit5.cpp(32): error C2143: syntax error: missing ';' before '{'
  src/isosplit5.cpp(32): error C2447: '{': missing function header (old-style formal list?)
  src/isosplit5.cpp(56): error C2146: syntax error: missing ';' before identifier 'i'
  src/isosplit5.cpp(56): error C2143: syntax error: missing ';' before '='
  src/isosplit5.cpp(56): error C2143: syntax error: missing ')' before '='
  src/isosplit5.cpp(56): error C2059: syntax error: '='
  src/isosplit5.cpp(56): error C2065: 'i': undeclared identifier
  src/isosplit5.cpp(56): error C2065: 'i': undeclared identifier
  src/isosplit5.cpp(56): error C2059: syntax error: ')'
  src/isosplit5.cpp(57): error C2146: syntax error: missing ';' before identifier 'Xf'
  src/isosplit5.cpp(57): error C2065: 'i': undeclared identifier
  src/isosplit5.cpp(57): error C2065: 'i': undeclared identifier
  src/isosplit5.cpp(60): error C2660: 'isosplit5': function does not take 5 arguments
  C:\Users\JHermiz\AppData\Local\Temp\pip-install-0wpuo_6g\isosplit5_daacd78b4b3d4530bd4ca31eedd510f3\src\isosplit5.h(30): note: see declaration of 'isosplit5'
  src/isosplit5.cpp(61): error C2146: syntax error: missing ';' before identifier 'i'
  src/isosplit5.cpp(61): error C2143: syntax error: missing ';' before '='
  src/isosplit5.cpp(61): error C2143: syntax error: missing ')' before '='
  src/isosplit5.cpp(61): error C2059: syntax error: '='
  src/isosplit5.cpp(61): error C2065: 'i': undeclared identifier
  src/isosplit5.cpp(61): error C2065: 'i': undeclared identifier
  src/isosplit5.cpp(61): error C2059: syntax error: ')'
  src/isosplit5.cpp(62): error C2146: syntax error: missing ';' before identifier 'labels_out'
  src/isosplit5.cpp(62): error C2065: 'i': undeclared identifier
  src/isosplit5.cpp(62): error C2065: 'i': undeclared identifier
  src/isosplit5.cpp(72): error C2923: 'std::vector': 'bigint' is not a valid template type argument for parameter '_Ty'
  C:\Users\JHermiz\AppData\Local\Temp\pip-install-0wpuo_6g\isosplit5_daacd78b4b3d4530bd4ca31eedd510f3\src\isocut5.h(21): note: see declaration of 'bigint'
  src/isosplit5.cpp(72): error C2976: 'std::vector': too few template arguments
  C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30037\include\vector(443): note: see declaration of 'std::vector'
  src/isosplit5.cpp(77): error C2146: syntax error: missing ')' before identifier 'M'
  src/isosplit5.cpp(78): error C2143: syntax error: missing ';' before '{'
  src/isosplit5.cpp(78): error C2447: '{': missing function header (old-style formal list?)
  src/isosplit5.cpp(88): error C2146: syntax error: missing ')' before identifier 'M'
  src/isosplit5.cpp(88): error C2923: 'std::vector': 'bigint' is not a valid template type argument for parameter '_Ty'
  C:\Users\JHermiz\AppData\Local\Temp\pip-install-0wpuo_6g\isosplit5_daacd78b4b3d4530bd4ca31eedd510f3\src\isocut5.h(21): note: see declaration of 'bigint'
  src/isosplit5.cpp(88): error C2976: 'std::vector': too few template arguments
  C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30037\include\vector(443): note: see declaration of 'std::vector'
  src/isosplit5.cpp(89): error C2143: syntax error: missing ';' before '{'
  src/isosplit5.cpp(89): error C2447: '{': missing function header (old-style formal list?)
  src/isosplit5.cpp(112): error C2061: syntax error: identifier 'bigint'
  src/isosplit5.cpp(115): error C2146: syntax error: missing ';' before identifier 'i'
  src/isosplit5.cpp(115): error C2143: syntax error: missing ';' before '='
  src/isosplit5.cpp(115): error C2143: syntax error: missing ')' before '='
  src/isosplit5.cpp(115): error C2059: syntax error: '='
  src/isosplit5.cpp(115): error C2065: 'i': undeclared identifier
  src/isosplit5.cpp(115): error C2146: syntax error: missing ';' before identifier 'indices'
  src/isosplit5.cpp(115): error C2065: 'indices': undeclared identifier
  src/isosplit5.cpp(115): error C2065: 'i': undeclared identifier
  src/isosplit5.cpp(115): error C2059: syntax error: ')'
  src/isosplit5.cpp(116): error C2062: type 'double' unexpected
  src/isosplit5.cpp(117): error C2146: syntax error: missing ';' before identifier 'm'
  src/isosplit5.cpp(117): error C2143: syntax error: missing ';' before '='
  src/isosplit5.cpp(117): error C2143: syntax error: missing ')' before '='
  src/isosplit5.cpp(117): error C2059: syntax error: '='
  src/isosplit5.cpp(117): error C2065: 'm': undeclared identifier
  src/isosplit5.cpp(117): error C2065: 'M': undeclared identifier
  src/isosplit5.cpp(117): error C2065: 'm': undeclared identifier
  src/isosplit5.cpp(117): error C2059: syntax error: ')'
  src/isosplit5.cpp(118): error C2062: type 'double' unexpected
  src/isosplit5.cpp(119): error C2065: 'dist': undeclared identifier
  src/isosplit5.cpp(119): error C2065: 'val': undeclared identifier
  src/isosplit5.cpp(119): error C2065: 'val': undeclared identifier
  src/isosplit5.cpp(121): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  src/isosplit5.cpp(121): warning C4244: 'initializing': conversion from 'double' to 'int', possible loss of data
  src/isosplit5.cpp(122): error C2059: syntax error: 'if'
  src/isosplit5.cpp(124): error C2059: syntax error: '}'
  src/isosplit5.cpp(124): error C2143: syntax error: missing ';' before '}'
  src/isosplit5.cpp(126): error C2059: syntax error: '}'
  src/isosplit5.cpp(126): error C2143: syntax error: missing ';' before '}'
  src/isosplit5.cpp(128): error C2923: 'std::vector': 'bigint' is not a valid template type argument for parameter '_Ty'
  C:\Users\JHermiz\AppData\Local\Temp\pip-install-0wpuo_6g\isosplit5_daacd78b4b3d4530bd4ca31eedd510f3\src\isocut5.h(21): note: see declaration of 'bigint'
  src/isosplit5.cpp(128): error C2976: 'std::vector': too few template arguments
  C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30037\include\vector(443): note: see declaration of 'std::vector'
  src/isosplit5.cpp(129): error C2143: syntax error: missing ';' before '{'
  src/isosplit5.cpp(129): error C2447: '{': missing function header (old-style formal list?)
  src/isosplit5.cpp(158): error C2061: syntax error: identifier 'bigint'
  src/isosplit5.cpp(162): error C2146: syntax error: missing ';' before identifier 'i'
  src/isosplit5.cpp(162): error C2143: syntax error: missing ';' before '='
  src/isosplit5.cpp(162): error C2143: syntax error: missing ')' before '='
  src/isosplit5.cpp(162): error C2059: syntax error: '='
  src/isosplit5.cpp(162): error C2065: 'i': undeclared identifier
  src/isosplit5.cpp(162): error C2065: 'N': undeclared identifier
  src/isosplit5.cpp(162): error C2065: 'i': undeclared identifier
  src/isosplit5.cpp(162): error C2059: syntax error: ')'
  src/isosplit5.cpp(163): error C2146: syntax error: missing ';' before identifier 'labels'
  src/isosplit5.cpp(163): error C2065: 'i': undeclared identifier
  src/isosplit5.cpp(166): error C2065: 'N': undeclared identifier
  src/isosplit5.cpp(167): error C2146: syntax error: missing ';' before identifier 'i'
  src/isosplit5.cpp(167): error C2143: syntax error: missing ';' before '='
  src/isosplit5.cpp(167): fatal error C1003: error count exceeds 100; stopping compilation
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30037\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
  ----------------------------------------
  ERROR: Failed building wheel for isosplit5
@cboulay
Copy link

cboulay commented Jul 1, 2021

I think you want to post the issue on isosplit5_python

But the answer is yes, I have installed on Windows:

magland/isosplit5_python#8

That was merged about 13 months ago, but the latest update to pypi was about 3 years ago. So you might want to ping @magland to make a new pypi release.

Until then you can do pip install git+https://github.com/magland/isosplit5_python.git

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