You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am having an issue with the compiling steps and the building of the gnome package.
I have installed and properly created the gnome conda environment, and downloaded Visual Studio Build Tools 2022, along with the C++ optional installations and MSVC v143 VS 2022.
My problem is with the python setup.py install command.
I activate the environment in the Developer Command Prompt and navigate to the correct directory to run it, but get these warning and errors:
SetuptoolsDeprecationWarning: setup.py install is deprecated.
EasyInstallDeprecationWarning: easy_install command is deprecated.
"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\bin\HostX86\x86\cl.exe"
..\lib_gnome\CATSMover_c.cpp(398): warning C4244: 'argument': conversion from 'double' to 'long', possible loss of data
..\lib_gnome\CATSMover_c.cpp(441): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
..\lib_gnome\CATSMover_c.cpp(582): warning C4244: 'argument': conversion from 'double' to 'long', possible loss of data
..\lib_gnome\CATSMover_c.cpp(582): warning C4244: 'argument': conversion from 'double' to 'long', possible loss of data
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\include\xlocnum(1027): error C2065: 'PTRDIFF_MAX': undeclared identifier
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\include\xlocnum(1027): note: the template instantiation context (the oldest one first) is
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\include\xlocnum(1655): note: see reference to class template instantiation 'std::num_get<wchar_t,std::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>>' being compiled
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\include\xlocnum(588): note: while compiling class template member function '_InIt std::num_get<wchar_t,_InIt>::do_get(_InIt,_InIt,std::ios_base &,std::ios_base::iostate &,double &) const'
with
[
_InIt=std::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>
]
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\include\xlocnum(622): note: see the first reference to 'std::num_get<wchar_t,std::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>>::do_get' in 'std::num_get<wchar_t,std::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>>::do_get'
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\include\xlocnum(593): note: see reference to function template instantiation 'std::_Num_get_parse_result std::num_get<wchar_t,std::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>>::_Parse_fp_with_locale<0>(char *const ,const int,_InIt &,_InIt &,const std::locale &)' being compiled
with
[
_InIt=std::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>
]
First: setup.py is depreciated, but that is a warning, it should still work (and does for us) -- we are working on a new build system -- hopefully that will be released soon.
In the meantime, if you can install an older VS version, that might help -- I htink we are still using 2019 in our workflows.
It should work with 2022, but we are subject to security restrictions on our machines, so hav been unable to test and debug newer VS versions :-(
Hi, I am having an issue with the compiling steps and the building of the gnome package.
I have installed and properly created the gnome conda environment, and downloaded Visual Studio Build Tools 2022, along with the C++ optional installations and MSVC v143 VS 2022.
My problem is with the python setup.py install command.
I activate the environment in the Developer Command Prompt and navigate to the correct directory to run it, but get these warning and errors:
SetuptoolsDeprecationWarning: setup.py install is deprecated.
EasyInstallDeprecationWarning: easy_install command is deprecated.
After this lines in the prompt I get this error:
creating build\temp.win32-cpython-310\Release\gnome\cy_gnome
"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\bin\HostX86\x86\cl.exe"
..\lib_gnome\CATSMover_c.cpp(398): warning C4244: 'argument': conversion from 'double' to 'long', possible loss of data
..\lib_gnome\CATSMover_c.cpp(441): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
..\lib_gnome\CATSMover_c.cpp(582): warning C4244: 'argument': conversion from 'double' to 'long', possible loss of data
..\lib_gnome\CATSMover_c.cpp(582): warning C4244: 'argument': conversion from 'double' to 'long', possible loss of data
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\include\xlocnum(1027): error C2065: 'PTRDIFF_MAX': undeclared identifier
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\include\xlocnum(1027): note: the template instantiation context (the oldest one first) is
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\include\xlocnum(1655): note: see reference to class template instantiation 'std::num_get<wchar_t,std::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>>' being compiled
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\include\xlocnum(588): note: while compiling class template member function '_InIt std::num_get<wchar_t,_InIt>::do_get(_InIt,_InIt,std::ios_base &,std::ios_base::iostate &,double &) const'
with
[
_InIt=std::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>
]
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\include\xlocnum(622): note: see the first reference to 'std::num_get<wchar_t,std::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>>::do_get' in 'std::num_get<wchar_t,std::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>>::do_get'
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\include\xlocnum(593): note: see reference to function template instantiation 'std::_Num_get_parse_result std::num_get<wchar_t,std::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>>::_Parse_fp_with_locale<0>(char *const ,const int,_InIt &,_InIt &,const std::locale &)' being compiled
with
[
_InIt=std::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>
]
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\include\xlocnum(1028): error C2065: 'PTRDIFF_MAX': undeclared identifier
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\include\xlocnum(1029): error C2065: 'PTRDIFF_MAX': undeclared identifier
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\include\xlocnum(1032): error C2065: 'PTRDIFF_MAX': undeclared identifier
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\bin\HostX86\x86\cl.exe' failed with exit code 2
Hope somebody here has had this problem before and can help out!
And sorry for the massive error messages, I wasn't sure how to show the issues with the building.
Thanks for your time,
Declan
The text was updated successfully, but these errors were encountered: