AIF360
AIF360 copied to clipboard
Error running install_aif360() on Windows 8.1
After I install en load aif360
from Github on my Windows machine, I get an error:
Error: Installing Python packages into a virtualenv is not supported on Windows
When I install from CRAN, I get the same error.
@FrieseWoudloper please provide more details. @gdequeiroz ^^^
Information about my configuration. Which additional information do you need?
R.Version()
$platform
[1] "x86_64-w64-mingw32"
$arch
[1] "x86_64"
$os
[1] "mingw32"
$system
[1] "x86_64, mingw32"
$status
[1] ""
$major
[1] "3"
$minor
[1] "6.3"
$year
[1] "2020"
$month
[1] "02"
$day
[1] "29"
$svn rev
[1] "77875"
$language
[1] "R"
$version.string
[1] "R version 3.6.3 (2020-02-29)"
$nickname
[1] "Holding the Windsock"
packageVersion("aif360") [1] ‘0.1.0’
Because I ran the install on a Windows 8.1 laptop with R version 3.6.3, I thought I'd give it a try on a Windows 10 laptop with the latest stable R version. I also decided to run R with administrative privileges. I executed the following code:
install.packages('aif360')
library(aif360)
install_aif360()
When the system asked me to install Miniconda, I said 'Yes'.
I didn't get an error this time, only a warning telling me that I should add %USERPROFILE%\AppData\Local\R-MINI~1\envs\R-RETI~1\Scripts
to my PATH
variable, so I did.
Subsequently I executed load_aif360()
. This also generated an error:
2020-09-25 12:57:11.356581: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cudart64_100.dll'; dlerror: cudart64_100.dll not found
2020-09-25 12:57:11.357097: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
WARNING:root:No module named 'numba.decorators': LFR will be unavailable. To install, run:
pip install 'aif360[LFR]'
I ignored the warning and executed this line of code:
ad <- adult_dataset()
An error was returned:
Error in py_call_impl(callable, dots$args, dots$keywords) : SystemExit: 1
3.
stop(structure(list(message = "SystemExit: 1", call = py_call_impl(callable,
dots$args, dots$keywords), cppstack = NULL), class = c("Rcpp::exception",
"C++Error", "error", "condition")))
2.
datasets$AdultDataset()
1.
adult_dataset()
Please inform me on any addition information you need or solutions I should try.
Executing R.Version()
gave me some interesting information
$platform
[1] "x86_64-w64-mingw32"
$arch
[1] "x86_64"
$os
[1] "mingw32"
$system
[1] "x86_64, mingw32"
$status
[1] ""
$major
[1] "4"
$minor
[1] "0.2"
$year
[1] "2020"
$month
[1] "06"
$day
[1] "22"
$`svn rev`
[1] "78730"
$language
[1] "R"
$version.string
[1] "R version 4.0.2 (2020-06-22)"
$nickname
[1] "Taking Off Again"
IOError: [Errno 2] No such file or directory: '%USERPROFILE%\\AppData\\Local\\r-miniconda\\envs\\r-reticulate\\lib\\site-packages\\aif360\\datasets\\..\\data\\raw\\adult\\adult.data'
To use this class, please download the following files:
https://archive.ics.uci.edu/ml/machine-learning-databases/adult/adult.data
https://archive.ics.uci.edu/ml/machine-learning-databases/adult/adult.test
https://archive.ics.uci.edu/ml/machine-learning-databases/adult/adult.names
and place them, as-is, in the folder:
%USERPROFILE%\AppData\Local\r-miniconda\envs\r-reticulate\lib\site-packages\aif360\data\raw\adult
I downloaded the adult.*
files and put them in the directory mentioned above. I executed the code again:
ad <- adult_dataset()
This time I only got this warning:
WARNING:root:Missing Data: 3620 rows removed from AdultDataset.
So I guess it is working fine now. Could you confirm that?
Upgrading R on my Windows 7 laptop, and installing + running R with administrative privileges didn't solve the problem on my Windows 8.1 laptop. When I execute the following code:
library(aif360)
install_aif360()
I still get this error:
Error: Installing Python packages into a virtualenv is not supported on Windows
So maybe I should just accept that it is not going to work on my old laptop?