-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't successfully install CAM package #34
Comments
It's possible that the problem is due to some missing dependencies that can occur when running on a linux based system. You can try and see if the fix mentioned here solves the issue, i.e., running: sudo apt install build-essential libcurl4-gnutls-dev libxml2-dev libssl-dev Also, you can try set the mirror used for accessing the packages (see here) by adding a line to utils.chooseCRANmirror(ind=1) |
I have implemented as you said, but still report an error, the result of the error is the same as above @shaido987 |
@cczhangy You can try to install CAM using the RStudio IDE instead of using rpy2.
You can now use python to check so rpy2 can access the installed packages: import rpy2.robjects.packages as rpackages
utils = rpackages.importr('utils')
if rpackages.isinstalled('CAM') and rpackages.isinstalled('mboost'):
print('R packages CAM and mboost have been installed.')
else:
print('Packages not installed correctly.') |
@shaido987 I have executed as you said and got the following two errors when running AttributeError:module 'typing' has no attribute '_SpecialForm' |
@cczhangy It looks like you have some python versioning issue unrelated to the CAM package installation. I don't know what is wrong but the answers here: https://stackoverflow.com/questions/54274630/can-not-import-protocol-from-typing, suggest installing/upgrading the typing_extensions package or upgrading the python version. |
Ok,thank you very much! |
I download the CAM_1.0.tar.gz and run the setup_CAM.py, but when check if CAM and mboost have been installed, get 'need to install CAM and mboost'. I can't install CAM successfully.
The text was updated successfully, but these errors were encountered: