Skip to content
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

still can't run with mac #8

Open
YushuShi opened this issue Aug 12, 2021 · 2 comments
Open

still can't run with mac #8

YushuShi opened this issue Aug 12, 2021 · 2 comments

Comments

@YushuShi
Copy link

I installed python and classo but it seems not working when I run the example in mac??

fit <- trac(ztr, ytr, A = sCD14$A, min_frac = 1e-2, nlam = 30)
Error: Python module classo was not found.

Detected Python configuration:

python: /Library/Frameworks/Python.framework/Versions/3.9/bin/python3
libpython: /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/config-3.9-darwin/libpython3.9.dylib
pythonhome: /Library/Frameworks/Python.framework/Versions/3.9:/Library/Frameworks/Python.framework/Versions/3.9
version: 3.9.6 (v3.9.6:db3ff76da1, Jun 28 2021, 11:49:53) [Clang 6.0 (clang-600.0.57)]
numpy: /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numpy
numpy_version: 1.21.1
classo: /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/classo

NOTE: Python version was forced by RETICULATE_PYTHON

@muellsen
Copy link
Collaborator

muellsen commented Aug 12, 2021

Thanks for the update; can you try to load reticulate first, then force the Python environment where you installed c-lasso, and then run the vignette?

library(reticulate)

use_python("YOUR PYTHON PATH WITH CLASSO",required = TRUE)

library(trac)
...

@viettr
Copy link

viettr commented Nov 9, 2021

c-lasso depends on the python package: numpy, scipy, matplotlib and pandas. Installing these packages helped in my case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants