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

Dll load failed while importing version: The specified program could not be found. #385

Open
yc-21 opened this issue Jan 9, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@yc-21
Copy link

yc-21 commented Jan 9, 2025

Environment Information

  • samgeo version:
  • Python version:3.10.13
  • Operating System:VScode

Description

The Import libraries step in the Sam2 point prompts module ( import leafmap from samgeo import SamGeo2, regularize) keeps getting the following error: ImportError: Dll load failed while importing version: The specified program could not be found.

What I Did

import leafmap
from samgeo import SamGeo2, regularize

Output exceeds the [size limit](command:workbench.action.openSettings?[). Open the full output data [in a text editor](command:workbench.action.openLargeOutput?5bf3d824-0531-41f2-90de-7553a6cf14b6)
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
Cell In[2], line 2
      1 import leafmap
----> 2 from samgeo import SamGeo2, regularize

File d:\Anaconda\envs\geo\lib\site-packages\samgeo\__init__.py:8
      4 __email__ = "[email protected]"
      5 __version__ = "0.12.3"
----> 8 from .samgeo import *
      9 from .samgeo2 import *
     10 from .common import show_image_gui

File d:\Anaconda\envs\geo\lib\site-packages\samgeo\samgeo.py:11
      8 import numpy as np
      9 from segment_anything import sam_model_registry, SamAutomaticMaskGenerator, SamPredictor
---> 11 from .common import *
     14 class SamGeo:
     15     """The main class for segmenting geospatial data with the Segment Anything Model (SAM). See
     16     https://github.com/facebookresearch/segment-anything for details.
     17     """

File d:\Anaconda\envs\geo\lib\site-packages\samgeo\common.py:13
     11 import shapely
     12 import pyproj
...
---> 28 from rasterio._version import gdal_version, get_geos_version, get_proj_version
     29 from rasterio.crs import CRS
     30 from rasterio.drivers import driver_from_extension, is_blacklisted

ImportError: DLL load failed while importing _version: The specified program could not be found.
7baa1a1d145e73d408dcce431f28334
@yc-21 yc-21 added the bug Something isn't working label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant