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

Exception: The arcgis package was not installed, correctly(knn). Use deep learning essentials metapackage from https://github.com/Esri/deep-learning-frameworks #2022

Open
Daremitsu1 opened this issue Sep 9, 2024 · 0 comments
Assignees
Labels

Comments

@Daremitsu1
Copy link

Describe the bug
Getting the following error while trying to import the deep learning modules from arcgis.learn.
Mostly the error is coming from ModuleNotFoundError: No module named 'arcgis.learn._utils.nearest_neighbors' because when I checked the downloaded folders section in arcgis.learn I am not seeing any nearest_neighbors.py.

Could you provide me a link to the nearest_neighbors.py code?

Error Screenshot:
image

Folder Screenshot:
image

To Reproduce
Steps to reproduce the behavior:

from arcgis.learn import prepare_textdata
from arcgis.learn.text import SequenceToSequence

error:

/usr/local/lib/python3.10/dist-packages/dask/dataframe/__init__.py:42: FutureWarning: 
Dask dataframe query planning is disabled because dask-expr is not installed.

You can install it with `pip install dask[dataframe]` or `conda install dask`.
This will raise in a future version.

  warnings.warn(msg, FutureWarning)
torch not available

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
[/usr/local/lib/python3.10/dist-packages/arcgis/learn/models/_rand_lanet_utils.py](https://localhost:8080/#) in <module>
     35 try:
---> 36     from .._utils.nearest_neighbors import knn_batch as knn_search
     37 

ModuleNotFoundError: No module named 'arcgis.learn._utils.nearest_neighbors'

During handling of the above exception, another exception occurred:

Exception                                 Traceback (most recent call last)
7 frames
[/usr/local/lib/python3.10/dist-packages/arcgis/learn/models/_rand_lanet_utils.py](https://localhost:8080/#) in <module>
     37 
     38 except Exception:
---> 39     raise Exception(
     40         f"The arcgis package was not installed, correctly(knn). Use deep learning essentials metapackage from https://github.com/Esri/deep-learning-frameworks"
     41     )

Exception: The arcgis package was not installed, correctly(knn). Use deep learning essentials metapackage from https://github.com/Esri/deep-learning-frameworks

Expected behavior
The module should be imported without any error.

Platform (please complete the following information):

  • OS: [e.g. iOS] Windows
  • Browser [e.g. chrome, safari] chrome
  • Python API Version [e.g. 1.6.2] (you can get this by typing print(arcgis.__version__) 2.3.0

Additional context
Add any other context about the problem here, attachments etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants