-
Notifications
You must be signed in to change notification settings - Fork 178
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
ImportError: DLL load failed while importing _version #841
Comments
Thanks for reporting, can you print out info from conda list, it will tell us about package versions. Rasterio interacts with gdal, this is upstream of DeepForest and definitely particular to your own install. Start by creating an env, install rasterio https://rasterio.readthedocs.io/en/stable/installation.html and confirm you can achieve that first. I'll leave this open, but i'm not convinced there is anything we can do from DeepForest perspective. |
|
@wqfcv, thank you for reaching out! Could you please run the following commands and share the output with us? This will help us diagnose the issue more effectively: python -c "import rasterio; print(rasterio.__version__)"
gdalinfo --version Looking forward to your response! |
|
@wqfcv The issue likely stems from your environment, particularly how GDAL and Rasterio are installed. To resolve this, I recommend updating Conda and creating a fresh environment. Then, install DeepForest using pip instead of Conda. Here's how: conda create -n new_deepforest python=3.9
conda activate new_deepforest
conda install -c pytorch pytorch torchvision cudatoolkit=10.2
conda install -c conda-forge rasterio gdal
pip install deepforest Once the setup is complete, try the example provided in the DeepForest documentation: Also |
Thank you for your help. I have successfully installed DeepForest. But there seems to be an issue in the example code. Here's code:
Here's error:
|
You are using and old version. Use |
Thank you for your help. I can now use plot_results normally. But after running the following code, no image was displayed in pycharm.
|
@wqfcv I don't think PyCharm will display the images. The images usually pop up as their own Gui window trying to look for any extra icon / application on the task bar. |
Install using standard conda approach:
Then do some basic stuff. I ran this, not sure exact failure point:
The text was updated successfully, but these errors were encountered: