2017-10-04 36 views
1

我试图在Windows上安装CatBoost R包,但没有成功。我已经通过了所有的指示和stackoverflow的帖子。在Windows上安装CatBoost R包时出错

我到目前为止管理的是安装python以及VC++组件。

我可以编译软件包,但是在安装时出现错误“TypeError:resolve_system_cxx()需要正好4个参数(给出3)”。我正在通过CatBoost存储库进行搜索,但无法识别该函数的源文件。你能进一步帮助我吗?

下面是完整的日志

R version 3.3.3 (2017-03-06) -- "Another Canoe" 
Copyright (C) 2017 The R Foundation for Statistical Computing 
Platform: x86_64-w64-mingw32/x64 (64-bit) 

R ist freie Software und kommt OHNE JEGLICHE GARANTIE. 
Sie sind eingeladen, es unter bestimmten Bedingungen weiter zu verbreiten. 
Tippen Sie 'license()' or 'licence()' für Details dazu. 

R ist ein Gemeinschaftsprojekt mit vielen Beitragenden. 
Tippen Sie 'contributors()' für mehr Information und 'citation()', 
um zu erfahren, wie R oder R packages in Publikationen zitiert werden können. 

Tippen Sie 'demo()' für einige Demos, 'help()' für on-line Hilfe, oder 
'help.start()' für eine HTML Browserschnittstelle zur Hilfe. 
Tippen Sie 'q()', um R zu verlassen. 

Microsoft R Open 3.3.3 
The enhanced R distribution from Microsoft 
Microsoft packages Copyright (C) 2017 Microsoft Corporation 

Using the Intel MKL for parallel mathematical computing(using 2 cores). 

Default CRAN mirror snapshot taken on 2017-03-15. 
See: https://mran.microsoft.com/. 

> setwd("xxx/catboost/catboost/R-package") 
> getwd() 
[1] "xxx/catboost/catboost/R-package" 
> library(devtools) 
> devtools::build() 
"xxx/x64/R" --no-site-file --no-environ --no-save --no-restore \ 
    --quiet CMD build "xxx\catboost\catboost\R-package" \ 
    --no-resave-data --no-manual 

* checking for file 'xxx\catboost\catboost\R-package/DESC 
RIPTION' ... OK 
* preparing 'catboost': 
* checking DESCRIPTION meta-information ... OK 
* cleaning src 
Warnung: xxx/AppData/Local/Temp/RtmpoNbm7g/Rbuild2b547ba45252/catb 
oost/man/catboost.train.Rd:63: unknown macro '\t' 
Warnung: xxx/Local/Temp/RtmpoNbm7g/Rbuild2b547ba45252/catb 
oost/man/catboost.train.Rd:63: unknown macro '\t' 
Warnung: xxx/Local/Temp/RtmpoNbm7g/Rbuild2b547ba45252/catb 
oost/man/catboost.train.Rd:63: unknown macro '\t' 
Warnung: xxx/Local/Temp/RtmpoNbm7g/Rbuild2b547ba45252/catb 
oost/man/catboost.train.Rd:63: unknown macro '\t' 
* checking for LF line-endings in source and make files 
* checking for empty or unneeded directories 
* building 'catboost_0.2.3.tar.gz' 

[1] "xxx/catboost/catboost/catboost_0.2.3.tar.gz" 
> devtools::install() 
Installing catboost 
"xxx/x64/R" --no-site-file --no-environ --no-save --no-restore \ 
    --quiet CMD INSTALL \ 
    "xxx/catboost/catboost/R-package" \ 
    --library="xxx/library" --install-tests 

* installing *source* package 'catboost' ... 
** libs 
    running 'src/Makefile.win' ... 
/cygdrive/xxx/catboost/catboost/R-package/src/../../../ya. 
bat make -r -o ../../.. 
Traceback (most recent call last): 
    File "devtools/ya/entry/entry.py", line 157, in exit_interceptor 
    func() 
    File "devtools/ya/entry/entry.py", line 56, in <lambda> 
    return lambda: wrapper(f) 
    File "devtools/ya/entry/entry.py", line 121, in f 
    res = func() 
    File "devtools/ya/entry/entry.py", line 250, in <lambda> 
    run_main = lambda: do_main(args) 
    File "devtools/ya/entry/entry.py", line 49, in do_main 
    res = handler.handle(handler, args, prefix=['ya']) 
    File "devtools/ya/core/handler.py", line 157, in handle 
    return handler.handle(self, args[1:], prefix + [name]) 
    File "devtools/ya/core/dispatch.py", line 37, in handle 
    return self.command().handle(root_handler, args, prefix) 
    File "devtools/ya/core/handler.py", line 337, in handle 
    return self._action(params) 
    File "devtools/ya/app.py", line 66, in helper 
    return action(ctx.params) 
    File "devtools/ya/build/build_handler.py", line 11, in do_ya_make 
    return YaMake(params, app_ctx).go() 
    File "devtools/ya/build/ya_make.py", line 523, in __init__ 
    self.ctx = Context(self.opts, app_ctx=app_ctx, graph=graph, tests=tests, con 
figure_errors=configure_errors, make_files=make_files) 
    File "devtools/ya/build/ya_make.py", line 352, in __init__ 
    self.graph, self.tests, self.configure_errors, self.make_files = _build_grap 
h_and_tests(self.opts, app_ctx) 
    File "devtools/ya/build/ya_make.py", line 244, in _build_graph_and_tests 
    graph, tests, gh, make_files = lg.build_graph_and_tests(opts, check=True, ev 
_listener=ev_listener) 
    File "devtools/ya/build/graph.py", line 1343, in build_graph_and_tests 
    host_tc = bg.gen_tc(host) 
    File "devtools/ya/build/genconf.py", line 103, in gen_tc 
    return _resolve_cxx(platform_name, platform_name) 
    File "devtools/ya/build/genconf.py", line 73, in _resolve_cxx 
    return resolve_system_cxx("cl.exe", host, target) 
    File "devtools/ya/exts/func.py", line 60, in wrapper 
    return get(args) 
    File "devtools/ya/exts/func.py", line 54, in get 
    memory[args] = func(*args) 
TypeError: resolve_system_cxx() takes exactly 4 arguments (3 given) 
make: *** [all] Error 1 
Warnung: Ausführung von Kommando 'make --no-print-directory -f "Makefile.win"' e 
rgab Status 2 
ERROR: compilation failed for package 'catboost' 
* removing 'xxx/library/catboost' 
Fehler: Command failed (1) 
> 

我使用Windows 7和python(3.6),和R的微软分布(3.3),和R工具3.4的64个版本建立包。

干杯 安德烈

+0

刚刚尝试安装在干净的机器上,Windows 7 64位,所有最新的R和Python,MS VC++ 2017和2015(如文档的安装部分中所述)都得到相同的错误。 –

回答

0

从0.6.1版本开始,我们发布R c一起二进制文件的发布,所以现在应该很容易安装R包。如果您仍然有任何问题,请告诉我们 - 在github上创建问题。