Giter VIP home page Giter VIP logo

Comments (5)

Dushuai12138 avatar Dushuai12138 commented on June 3, 2024

I have installed oeel - 0.9.8.6, the error still exists.

from geemap.

giswqs avatar giswqs commented on June 3, 2024

Try import oeel without using geemap. If it does not work, it is an oeel issue. Please report it to the oeel repo.

from geemap.

Dushuai12138 avatar Dushuai12138 commented on June 3, 2024

Try import oeel without using geemap. If it does not work, it is an oeel issue. Please report it to the oeel repo.

thanks a lot. I try to use import oeel and it does not give any error. However, I use from oeel import oeel and it outputs the same error message. So I try to rewrite from oeel import oeel to import oeel in geemap\common.py:13482 .After that, I run code WS = geemap.requireJS('users/dushuai/showANDdownload_rec_of_rgb:learningCode_from_articles/whittaker_smoother') and it outputs messages :

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
Cell In[3], line 1
----> 1 js = geemap.requireJS('users/dushuai/showANDdownload_rec_of_rgb:learningCode_from_articles/whittaker_smoother')

File E:\ProgramData\Anaconda3\envs\gee1\Lib\site-packages\geemap\common.py:13498, in requireJS(lib_path, Map)
  13495 if lib_path.startswith("http"):
  13496     lib_path = get_direct_url(lib_path)
> 13498 lib_path = change_require(lib_path)
  13500 if Map is not None:
  13501     oeel.setMap(Map)

File E:\ProgramData\Anaconda3\envs\gee1\Lib\site-packages\geemap\common.py:13558, in change_require(lib_path)
  13555         os.system(cmd)
  13557 if not os.path.exists(lib_path):
> 13558     raise ValueError(f"{lib_path} does not exist.")
  13560 output = []
  13561 with open(lib_path, "r") as f:

ValueError: showANDdownload_rec_of_rgb:learningCode_from_articles/whittaker_smoother does not exist.

I also change the path from other researchers and the error exists. I couldn't tell if it was oeel's bug or geemap's bug.

from geemap.

giswqs avatar giswqs commented on June 3, 2024

If from oeel import oeel does not work, then it is an oeel issue. You can't simply change it to import oeel

from geemap.

Dushuai12138 avatar Dushuai12138 commented on June 3, 2024

Get it, thanks a lot!

from geemap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.