marekpetrik / craam Goto Github PK
View Code? Open in Web Editor NEWC++ Robust And Approximate Markov decision processes
License: MIT License
C++ Robust And Approximate Markov decision processes
License: MIT License
I got this error while trying to install the python interface on windows. How can I fix it?
E:\XY\CRAAM\python>python setup.py install --user
running install
running bdist_egg
running egg_info
writing craam.egg-info\PKG-INFO
writing dependency_links to craam.egg-info\dependency_links.txt
writing top-level names to craam.egg-info\top_level.txt
reading manifest file 'craam.egg-info\SOURCES.txt'
writing manifest file 'craam.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
running build_ext
building 'craam.crobust' extension
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.1
5.26726\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\xi
nyu\AppData\Local\conda\conda\envs\tt\lib\site-packages\numpy\core\include -I. -
I../ -I../include -IC:\Users\xinyu\AppData\Local\conda\conda\envs\tt\include -IC
:\Users\xinyu\AppData\Local\conda\conda\envs\tt\include "-IC:\Program Files (x86
)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\include" "-IC
:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt" "-IC:\Program F
iles (x86)\Windows Kits\10\include\10.0.17134.0\shared" "-IC:\Program Files (x86
)\Windows Kits\10\include\10.0.17134.0\um" "-IC:\Program Files (x86)\Windows Kit
s\10\include\10.0.17134.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\inclu
de\10.0.17134.0\cppwinrt" /EHsc /Tpcraam/crobust.cpp /Fobuild\temp.win-amd64-3.6
\Release\craam/crobust.obj -std=c++14 -fopenmp -O3 -march=native
cl : Command line warning D9002 : ignoring unknown option '-std=c++14'
cl : Command line warning D9002 : ignoring unknown option '-fopenmp'
cl : Command line warning D9002 : ignoring unknown option '-O3'
cl : Command line warning D9002 : ignoring unknown option '-march=native'
crobust.cpp
c:\users\xinyu\appdata\local\conda\conda\envs\tt\lib\site-packages\numpy\core\in
clude\numpy\npy_1_7_deprecated_api.h(12) : Warning Msg: Using deprecated NumPy A
PI, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
e:\xy\craam\craam\config.hpp(7): warning C4005: 'NDEBUG': macro redefinition
craam/crobust.cpp: note: see previous definition of 'NDEBUG'
e:\xy\craam\craam\Action.hpp(187): warning C4267: 'argument': conversion from 's
ize_t' to 'long', possible loss of data
e:\xy\craam\craam\Action.hpp(218): warning C4267: 'argument': conversion from 's
ize_t' to 'long', possible loss of data
e:\xy\craam\craam\Action.hpp(464): warning C4267: 'argument': conversion from 's
ize_t' to 'long', possible loss of data
../craam/algorithms/values.hpp(103): warning C4267: 'argument': conversion from
'size_t' to 'long', possible loss of data
../craam/algorithms/values.hpp(125): warning C4267: 'argument': conversion from
'size_t' to 'long', possible loss of data
../craam/modeltools.hpp(221): warning C4267: 'argument': conversion from 'size_t
' to 'long', possible loss of data
../craam/modeltools.hpp(267): warning C4267: 'argument': conversion from 'size_t
' to 'long', possible loss of data
../craam/modeltools.hpp(431): warning C4267: 'argument': conversion from 'size_t
' to 'long', possible loss of data
../craam/modeltools.hpp(432): warning C4267: 'argument': conversion from 'size_t
' to 'long', possible loss of data
../craam/modeltools.hpp(435): warning C4267: 'argument': conversion from 'size_t
' to 'long', possible loss of data
../craam/modeltools.hpp(436): warning C4267: 'argument': conversion from 'size_t
' to 'long', possible loss of data
../craam/modeltools.hpp(439): warning C4267: 'argument': conversion from 'size_t
' to 'long', possible loss of data
../craam/modeltools.hpp(440): warning C4267: 'argument': conversion from 'size_t
' to 'long', possible loss of data
../craam/modeltools.hpp(449): warning C4267: 'argument': conversion from 'size_t
' to 'long', possible loss of data
../craam/modeltools.hpp(451): warning C4267: 'argument': conversion from 'size_t
' to 'long', possible loss of data
../craam/modeltools.hpp(459): warning C4267: 'argument': conversion from 'size_t
' to 'long', possible loss of data
../craam/Samples.hpp(554): warning C4267: 'argument': conversion from 'size_t' t
o 'long', possible loss of data
../craam/Samples.hpp(600): warning C4244: 'initializing': conversion from '_Ty'
to 'size_t', possible loss of data
with
[
_Ty=craam::prec_t
]
../craam/Samples.hpp(617): warning C4267: 'argument': conversion from 'size_t' t
o 'long', possible loss of data
../craam/Samples.hpp(621): warning C4267: 'argument': conversion from 'size_t' t
o 'long', possible loss of data
../craam/Samples.hpp(655): warning C4267: 'return': conversion from 'size_t' to
'long', possible loss of data
../craam/Simulation.hpp(545): warning C4267: 'initializing': conversion from 'si
ze_t' to 'craam::msen::ModelSimulator::State', possible loss of data
../craam/Simulation.hpp(545): warning C4267: 'initializing': conversion from 'si
ze_t' to 'const craam::msen::ModelSimulator::State', possible loss of data
../craam/ImMDP.hpp(86): warning C4267: 'argument': conversion from 'size_t' to '
long', possible loss of data
../craam/ImMDP.hpp(94): warning C4267: '=': conversion from 'size_t' to '_Ty', p
ossible loss of data
with
[
_Ty=long
]
../craam/algorithms/values.hpp(525): warning C4267: '=': conversion from 'size_t
' to 'long', possible loss of data
../craam/ImMDP.hpp(195): note: see reference to function template instantiation
'craam::algorithms::PlainBellman::solution_type craam::algorithms::mpi_jac<craam
::RegularState,craam::algorithms::PlainBellman>(const craam::GRMDP<craam::Regula
rState> &,craam::prec_t,const craam::numvec &,const ResponseType &,unsigned long
,craam::prec_t,unsigned long,craam::prec_t,bool)' being compiled
with
[
ResponseType=craam::algorithms::PlainBellman
]
../craam/ImMDP.hpp(413): warning C4267: 'argument': conversion from 'size_t' to
'long', possible loss of data
../craam/ImMDP.hpp(419): warning C4267: 'argument': conversion from 'size_t' to
'long', possible loss of data
../craam/ImMDP.hpp(421): warning C4267: 'argument': conversion from 'size_t' to
'long', possible loss of data
../craam/ImMDP.hpp(572): warning C4267: 'argument': conversion from 'size_t' to
'long', possible loss of data
craam/crobust.cpp(4354): warning C4267: '=': conversion from 'size_t' to 'long',
possible loss of data
craam/crobust.cpp(4507): warning C4267: '=': conversion from 'size_t' to 'long',
possible loss of data
craam/crobust.cpp(4679): warning C4267: '=': conversion from 'size_t' to 'long',
possible loss of data
craam/crobust.cpp(6728): warning C4267: '=': conversion from 'size_t' to 'long',
possible loss of data
craam/crobust.cpp(7407): warning C4244: '=': conversion from 'npy_intp' to 'long
', possible loss of data
craam/crobust.cpp(7416): warning C4244: '=': conversion from 'npy_intp' to 'long
', possible loss of data
craam/crobust.cpp(7960): warning C4267: '=': conversion from 'size_t' to 'long',
possible loss of data
../craam/algorithms/values.hpp(421): warning C4267: 'argument': conversion from
'size_t' to 'long', possible loss of data
../craam/algorithms/values.hpp(559): note: see reference to function template in
stantiation 'craam::algorithms::PlainBellman::solution_type craam::algorithms::v
i_gs<SType,craam::algorithms::PlainBellman>(const craam::GRMDP &,craam::p
rec_t,craam::numvec,const ResponseType &,unsigned long,craam::prec_t)' being com
piled
with
[
SType=craam::RegularState,
ResponseType=craam::algorithms::PlainBellman
]
craam/crobust.cpp(8787): note: see reference to function template instantiation
'auto craam::algorithms::solve_vicraam::RegularState(const craam::GRMDP<craam:
:RegularState> &,craam::prec_t,craam::numvec,const craam::indvec &,unsigned long
,craam::prec_t)' being compiled
../craam/algorithms/values.hpp(428): warning C4267: '=': conversion from 'size_t
' to 'long', possible loss of data
craam/crobust.cpp(12527): warning C4267: '=': conversion from 'size_t' to 'long'
, possible loss of data
craam/crobust.cpp(15035): warning C4244: 'argument': conversion from 'double' to
'long', possible loss of data
craam/crobust.cpp(17566): warning C4267: '=': conversion from 'size_t' to 'long'
, possible loss of data
craam/crobust.cpp(17719): warning C4267: '=': conversion from 'size_t' to 'long'
, possible loss of data
craam/crobust.cpp(17891): warning C4267: '=': conversion from 'size_t' to 'long'
, possible loss of data
craam/crobust.cpp(18110): warning C4267: '=': conversion from 'size_t' to 'long'
, possible loss of data
craam/crobust.cpp(21621): warning C4244: '=': conversion from 'Py_ssize_t' to 'l
ong', possible loss of data
craam/crobust.cpp(21630): warning C4244: '=': conversion from 'npy_intp' to 'lon
g', possible loss of data
craam/crobust.cpp(26068): warning C4267: 'argument': conversion from 'size_t' to
'long', possible loss of data
craam/crobust.cpp(26129): warning C4267: 'argument': conversion from 'size_t' to
'long', possible loss of data
../include\rm/range.hpp(35): error C3861: 'not': identifier not found
../include\rm/range.hpp(34): note: while compiling class template member functio
n 'bool util::lang::detail::range_iter_base::operator !=(const util::lang::de
tail::range_iter_base &) const'
with
[
T=long
]
../craam/ImMDP.hpp(176): note: see reference to function template instantiation
'bool util::lang::detail::range_iter_base::operator !=(const util::lang::deta
il::range_iter_base &) const' being compiled
with
[
T=long
]
../include\rm/range.hpp(46): note: see reference to class template instantiation
'util::lang::detail::range_iter_base' being compiled
with
[
T=long
]
../include\rm/range.hpp(105): note: see reference to class template instantiatio
n 'util::lang::range_proxy::iter' being compiled
../craam/ImMDP.hpp(176): note: see reference to class template instantiation 'ut
il::lang::range_proxy' being compiled
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Communit
y\VC\Tools\MSVC\14.15.26726\bin\HostX86\x64\cl.exe' failed with exit sta
tus 2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.