google / earthengine-community

Tutorials and content created by Earth Engine users, for Earth Engine users
https://earthengine.google.com/
Apache License 2.0
578 stars 743 forks source link

No module named 'fcntl' #859

Closed bethdelaney closed 1 month ago

bethdelaney commented 1 month ago

When trying to import earth-engine into Python (jupyter notebook), I'm getting several errors. Firstly I get error: 'No module named curses'. I can tackle this one by installing windows-curses.

The one I'm stuck on is 'No module named 'fcntl''. I can't see anybody else with this issue in the ee community. It happens every time I create a new environment and install earth engine.

I have somehow managed to bypass this in the past but through sheer luck.

If you can help me I'd really appreciate it as I feel like I'm going insane.

import sys print(sys.executable)

Python version: 3.11.10 | packaged by conda-forge | (main, Sep 10 2024, 10:53:25) [MSC v.1940 64 bit (AMD64)]

!conda info

active environment : gee_sat active env location : C:\Users\bd167.conda\envs\gee_sat shell level : 1 user config file : C:\Users\bd167.condarc populated config files : C:\Users\bd167.condarc conda version : 24.5.0 conda-build version : not installed python version : 3.12.4.final.0 solver : libmamba (default) virtual packages : archspec=1=icelake conda=24.5.0=0 cuda=12.5=0 win=0=0 base environment : C:\Miniconda3 (read only) conda av data dir : C:\Miniconda3\etc\conda conda av metadata url : None channel URLs : https://repo.anaconda.com/pkgs/main/win-64 https://repo.anaconda.com/pkgs/main/noarch https://repo.anaconda.com/pkgs/r/win-64 https://repo.anaconda.com/pkgs/r/noarch https://repo.anaconda.com/pkgs/msys2/win-64 https://repo.anaconda.com/pkgs/msys2/noarch package cache : C:\Miniconda3\pkgs C:\Users\bd167.conda\pkgs ... netrc file : None offline mode : False

bethdelaney commented 1 month ago

Created new environment and installed ee before any other package. Solved.