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

Error message in sjSDM if pytorch not available #27

Closed
florianhartig opened this issue Apr 27, 2020 · 1 comment
Closed

Error message in sjSDM if pytorch not available #27

florianhartig opened this issue Apr 27, 2020 · 1 comment

Comments

@florianhartig
Copy link
Member

Hi, I just tried this out, if you run

com = simulate_SDM(env = 3L, species = 5L, sites = 100L)
model = sjSDM(Y = com$response,env = com$env_weights, iter = 10L)

you without pytorch (luckily, I can do this, as I still haven't updated), I get

 Error in reticulate::py_is_null_xptr(fa) : object 'fa' not found 
3.
reticulate::py_is_null_xptr(fa) at utils.R#84
2.
check_module() at sjSDM.R#58
1.
sjSDM(Y = com$response, env = com$env_weights, iter = 10L) 

whereas a good error message would say "pytorch not installed". I would just do the startup check also in sjSDM to check if the requirements are there.

MaximilianPi added a commit that referenced this issue Apr 27, 2020
@MaximilianPi
Copy link
Member

> library(sjSDM)
PyTorch not found
1) Use install_sjSDM() to install Pytorch and conda automatically
2) Installation trouble shooting guide: ?installation_help
3) If 1) and 2) did not help, please create an issue on github (see ?install_diagnostic) 
> com = simulate_SDM(env = 3L, species = 5L, sites = 100L)
> 
> model = sjSDM(Y = com$response,env = com$env_weights, iter = 10L)
PyTorch not found
1) Use install_sjSDM() to install Pytorch and conda automatically
2) Installation trouble shooting guide: ?installation_help
3) If 1) and 2) did not help, please create an issue on github (see ?install_diagnostic) 
 Error: PyTorch not installed 

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

2 participants