AdrianAntico / AutoQuant

R package for automation of machine learning, forecasting, model evaluation, and model interpretation
GNU Affero General Public License v3.0
236 stars 43 forks source link

Invalid uid value and malformed maintainer field upon install dependency Catboost #62

Closed lejarx closed 4 years ago

lejarx commented 4 years ago

Hi @AdrianAntico

I'm trying to install the latest version of RemixAutoML package but faced the following errors. I'm still on R3.6 if that helps. Does your package requires certain version of R?

remotes::install_github('catboost/catboost', subdir = 'catboost/R-package') Downloading GitHub repo catboost/catboost@master 
✓  checking for file ‘/tmp/Rtmpse3O8p/remotesca3839e02421/catboost-catboost-4aed7fe/catboost/R-package/DESCRIPTION’ (496ms) 
─  preparing ‘catboost’: E  checking DESCRIPTION meta-information ...    
Malformed maintainer field.        
See section 'The DESCRIPTION file' in the 'Writing R Extensions'    manual.     
Error: Failed to install 'catboost' from GitHub:   System command 'R' failed, exit status: 1, stdout + stderr: E> * checking for file ‘/tmp/Rtmpse3O8p/remotesca3839e02421/catboost-catboost-4aed7fe/catboost/R-package/DESCRIPTION’ ... OK E> * preparing ‘catboost’: E> * checking DESCRIPTION meta-information ... ERROR E> Malformed maintainer field. E>  E> See section 'The DESCRIPTION file' in the 'Writing R Extensions' E> manual. E>  

remotes::install_github('AdrianAntico/RemixAutoML', upgrade = FALSE, dependencies = FALSE, force = TRUE) 
Downloading GitHub repo AdrianAntico/RemixAutoML@master ✓  checking for file ‘/tmp/Rtmpse3O8p/remotesca387ebc3f88/AdrianAntico-RemixAutoML-c7e8030/DESCRIPTION’ (493ms) ─  preparing ‘RemixAutoML’: 
✓  checking DESCRIPTION meta-information ... 
─  checking for LF line-endings in source and make files and shell scripts 
─  checking for empty or unneeded directories 
─  building ‘RemixAutoML_0.2.3.tar.gz’    
Warning: invalid uid value replaced by that for user 'nobody'     
Installing package into ‘/datascience/R/x86_64-redhat-linux-gnu-library/3.6’ (as ‘lib’ is unspecified) ERROR: dependency ‘catboost’ is not available for package ‘RemixAutoML’ * removing ‘/datascience/R/x86_64-redhat-linux-gnu-library/3.6/RemixAutoML’ Error: Failed to install 'RemixAutoML' from GitHub:   (converted from warning) installation of package ‘/tmp/Rtmpse3O8p/fileca3870f854a8/RemixAutoML_0.2.3.tar.gz’ had non-zero exit status
AdrianAntico commented 4 years ago

@lejarx You'll definitely need catboost installed before my package can be installed. There are a few different methods for installing it. If you go to the catboost documentation homepage you can find the various ways on there. https://catboost.ai/docs/concepts/r-installation.html I think you'll want to try out this page: https://catboost.ai/docs/installation/r-installation-binary-installation.html#r-installation-binary-installation

Also want to add, I just installed RemixAutoML on my computer. However, I already have catboost installed so that is likely the reason. The below worked for me in the past. If the most recent version isn't installing, try a previous release, which can be seen here: https://github.com/catboost/catboost/releases

Be sure to use the version you want versus what is listed below options(devtools.install.args = c("--no-multiarch", "--no-test-load")) install.packages("https://github.com/catboost/catboost/releases/download/v0.17.3/catboost-R-Windows-0.17.3.tgz", repos = NULL, type = "source", INSTALL_opts = c("--no-multiarch", "--no-test-load"))

lejarx commented 4 years ago

Thanks @AdrianAntico ,

Installing the released version solves the issue

Below the solution I've used

install.packages('devtools')
devtools::install_url('https://github.com/catboost/catboost/releases/download/v0.23.2/catboost-R-Linux-0.23.2.tgz', INSTALL_opts = c("--no-multiarch"))
Installing package into ‘/datascience/R/x86_64-redhat-linux-gnu-library/3.6’
(as ‘lib’ is unspecified)
* installing *source* package ‘RemixAutoML’ ...
** using staged installation
** R
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
  converting help for package ‘RemixAutoML’
    finding HTML links ... done
    AutoBanditNNet                          html  
    AutoBanditSarima                        html  
    AutoCARMA_QA                            html  
    AutoCatBoostCARMA                       html  
    AutoCatBoostChainLadder                 html  
    AutoCatBoostClassifier                  html  
    AutoCatBoostFreqSizeScoring             html  
    AutoCatBoostHurdleModel                 html  
    AutoCatBoostMultiClass                  html  
    AutoCatBoostRegression                  html  
    AutoCatBoostScoring                     html  
    AutoCatBoostSizeFreqDist                html  
    AutoDataDictionaries                    html  
    AutoDataPartition                       html  
    AutoFourierFeatures                     html  
    AutoH2OMLScoring                        html  
    AutoH2OModeler                          html  
    AutoH2OScoring                          html  
    AutoH2OTextPrepScoring                  html  
    AutoH2oDRFCARMA                         html  
    AutoH2oDRFClassifier                    html  
    AutoH2oDRFHurdleModel                   html  
    AutoH2oDRFMultiClass                    html  
    AutoH2oDRFRegression                    html  
    AutoH2oGBMCARMA                         html  
    AutoH2oGBMClassifier                    html  
    AutoH2oGBMFreqSizeScoring               html  
    AutoH2oGBMHurdleModel                   html  
    AutoH2oGBMMultiClass                    html  
    AutoH2oGBMRegression                    html  
    AutoH2oGBMSizeFreqDist                  html  
    AutoH2oGLMCARMA                         html  
    AutoH2oGLMClassifier                    html  
    AutoH2oGLMMultiClass                    html  
    AutoH2oGLMRegression                    html  
    AutoH2oMLCARMA                          html  
    AutoH2oMLClassifier                     html  
    AutoH2oMLMultiClass                     html  
    AutoH2oMLRegression                     html  
    AutoHierarchicalFourier                 html  
    AutoHurdleScoring                       html  
    AutoKMeans                              html  
    AutoLagRollStats                        html  
    AutoLagRollStatsScoring                 html  
    AutoLimeAid                             html  
    AutoMarketBasketModel                   html  
    AutoNLS                                 html  
    AutoRecomDataCreate                     html  
    AutoRecommender                         html  
    AutoRecommenderScoring                  html  
    AutoTBATS                               html  
    AutoTS                                  html  
    AutoTransformationCreate                html  
    AutoTransformationScore                 html  
    AutoWord2VecModeler                     html  
    AutoWordFreq                            html  
    AutoXGBoostCARMA                        html  
    AutoXGBoostClassifier                   html  
    AutoXGBoostHurdleModel                  html  
    AutoXGBoostMultiClass                   html  
    AutoXGBoostRegression                   html  
    AutoXGBoostScoring                      html  
    CARMA_Define_Args                       html  
    CARMA_Get_IndepentVariablesPass         html  
    CarmaCatBoostKeepVarsGDL                html  
    CarmaH2OKeepVarsGDL                     html  
    CarmaHoldoutMetrics                     html  
    CarmaXGBoostKeepVarsGDL                 html  
    CatBoostParameterGrids                  html  
    ChartTheme                              html  
    ClassificationMetrics                   html  
    ColumnSubsetDataTable                   html  
    ContinuousTimeDataGenerator             html  
    CreateCalendarVariables                 html  
    CreateHolidayVariables                  html  
    CreateProjectFolders                    html  
    DT_BinaryConfusionMatrix                html  
    DT_GDL_Feature_Engineering              html  
    DataDisplayMeta                         html  
    DifferenceData                          html  
    DifferenceDataReverse                   html  
    DummifyDT                               html  
    EvalPlot                                html  
    FakeDataGenerator                       html  
    FinalBuildArfima                        html  
    FinalBuildArima                         html  
    FinalBuildETS                           html  
    FinalBuildNNET                          html  
    FinalBuildTBATS                         html  
    FinalBuildTSLM                          html  
    FullFactorialCatFeatures                html  
    GenTSAnomVars                           html  
    GenerateParameterGrids                  html  
    H2oAutoencoder                          html  
    H2oIsolationForest                      html  
    IntermittentDemandScoringDataGenerator
                                            html  
    LimeModel                               html  
    ModelDataPrep                           html  
    OptimizeArfima                          html  
    OptimizeArima                           html  
    OptimizeETS                             html  
    OptimizeNNET                            html  
    OptimizeTBATS                           html  
    OptimizeTSLM                            html  
    ParDepCalPlots                          html  
    ParallelAutoARIMA                       html  
    ParallelAutoArfima                      html  
    ParallelAutoETS                         html  
    ParallelAutoNNET                        html  
    ParallelAutoTBATS                       html  
    ParallelAutoTSLM                        html  
    Partial_DT_GDL_Feature_Engineering      html  
    PathNormalizer                          html  
    PrintObjectsSize                        html  
    ProblematicFeatures                     html  
    QA_WALMARTDATAGENERATOR                 html  
    RL_Initialize                           html  
    RL_ML_Update                            html  
    RL_Performance                          html  
    RL_Update                               html  
    RPM_Binomial_Bandit                     html  
    RedYellowGreen                          html  
    Regular_Performance                     html  
    RemixAutoML-package                     html  
    RemixClassificationMetrics              html  
    RemixTheme                              html  
    ResidualOutliers                        html  
    SQL_Server_DBConnection                 html  
    SimpleCap                               html  
    StackedTimeSeriesEnsembleForecast       html  
    TimeSeriesDataPrepare                   html  
    TimeSeriesFill                          html  
    TimeSeriesMelt                          html  
    TimeSeriesPlotter                       html  
    WideTimeSeriesEnsembleForecast          html  
    XGBoostParameterGrids                   html  
    multiplot                               html  
    percRank                                html  
    tempDatesFun                            html  
    threshOptim                             html  
    tokenizeH2O                             html  
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (RemixAutoML)
AdrianAntico commented 4 years ago

@lejarx Thanks for following up!

AdrianAntico commented 4 years ago

@lejarx FYI - I ran into the same problem and they got it fixed, in case you want to install the original way that you tried.

https://github.com/catboost/catboost/issues/1350