Closed priyapatel1 closed 2 weeks ago
Hi @priyapatel1 - thanks for reporting this and for your patience. We've had ongoing issues getting things to work properly on macOS. Checkout #5 for the current status of things. If you have time to work with us on debugging on macOS we'd be happy to work with you on trying to figure it out. If you need to get something up and running quickly then it's pretty easy to do in Python even if you don't much Python work. Let us know which direction you'd like to go and we'll be happy to help.
Given that you've installed deepforest successfully using conda the first thing we should try is seeing if you can successfully use that conda environment instead of the one you were created from R when the error happened.
1. Look up the path to your the conda environment
conda activate deepforest
which python
2. In R set tell recticulate to use this path
Sys.setenv(RETICULATE_PYTHON = "/path/to/python")
3. Check to see if this worked
library(reticulate)
py_config()
4. If that worked, try running some deepforestr commands
I also think I understand why the error occurred when installing the spatial packages the other way (looks like a change in the reticulate defaults), but the above is the simplest possible fix given where you currently are.
Closing due to inactivity. Feel free to reopen if you come back to this @priyapatel1
I'm trying to install deepforestr on my computer. I was able to run the following with no issue:
However, when moving on to the R portion of the installation, I came across an error related to libgdal when trying to install the spatial dependencies:
This is what I ran in my R session:
These previous two lines ran fine. THEN, I ran the following:
This is the error I get:
How do I go about resolving this?
Environment (please complete the following information):
User Story I want to create tree canopy datasets across Canada - I'm a research at the University of Toronto School of Public Health.