PatBall1 / detectree2

Python package for automatic tree crown delineation based on the Detectron2 implementation of Mask R-CNN
https://patball1.github.io/detectree2/
MIT License
158 stars 39 forks source link

Rasterio 1.3a3 unable to build wheel #82

Closed rjstack266 closed 1 year ago

rjstack266 commented 1 year ago

I can install rasterio using conda install -c conda-forge rasterio.

The setup file does not recognize it as being installed and attempts to use rasterio 1.3a3 and cannot build the associated wheel.

Running windows using pip install git+url instructions

Collecting rasterio==1.3a3 Using cached rasterio-1.3a3.tar.gz (401 kB) Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [2 lines of output] INFO:root:Building on Windows requires extra options to setup.py to locate needed GDAL files. More information is available in the README. ERROR: A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable. [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> See above for output.

rjstack266 commented 1 year ago

Solved by forking and editing setup.py file

PatBall1 commented 1 year ago

@rjstack266 thanks for sharing your experience. There are still some compatibility issues, especially with GDAL and Rasterio. We have not tested the system on Windows at all so, if possible, we would recommend using a Linux system. Google Colab is the platform on which most testing has been performed.