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

gcloud not included in pyproject.toml #6

Open
spuynen opened this issue Aug 10, 2023 · 6 comments
Open

gcloud not included in pyproject.toml #6

spuynen opened this issue Aug 10, 2023 · 6 comments

Comments

@spuynen
Copy link

spuynen commented Aug 10, 2023

No description provided.

@spuynen
Copy link
Author

spuynen commented Aug 10, 2023

image

@vergauwenthomas
Copy link
Owner

No error on my system: LInux, python 3.9.17 with

earthengine-api 0.1.363 pypi_0 pypi

@spuynen
Copy link
Author

spuynen commented Aug 10, 2023

# packages in environment at C:\Users\d16426\Anaconda\envs\Metobs_GUI2:
#
# Name                    Version                   Build  Channel
asttokens                 2.2.1                    pypi_0    pypi
attrs                     23.1.0                   pypi_0    pypi
backcall                  0.2.0                    pypi_0    pypi
bqplot                    0.12.40                  pypi_0    pypi
branca                    0.6.0                    pypi_0    pypi
ca-certificates           2023.05.30           haa95532_0
cachetools                5.3.1                    pypi_0    pypi
certifi                   2023.7.22                pypi_0    pypi
charset-normalizer        3.2.0                    pypi_0    pypi
click                     8.1.6                    pypi_0    pypi
click-plugins             1.1.1                    pypi_0    pypi
cligj                     0.7.2                    pypi_0    pypi
colorama                  0.4.6                    pypi_0    pypi
colour                    0.1.5                    pypi_0    pypi
comm                      0.1.4                    pypi_0    pypi
contourpy                 1.1.0                    pypi_0    pypi
cycler                    0.11.0                   pypi_0    pypi
decorator                 5.1.1                    pypi_0    pypi
earthengine-api           0.1.363                  pypi_0    pypi
eerepr                    0.0.4                    pypi_0    pypi
executing                 1.2.0                    pypi_0    pypi
fiona                     1.9.4.post1              pypi_0    pypi
folium                    0.14.0                   pypi_0    pypi
fonttools                 4.42.0                   pypi_0    pypi
future                    0.18.3                   pypi_0    pypi
geemap                    0.20.7                   pypi_0    pypi
geocoder                  1.38.1                   pypi_0    pypi
geopandas                 0.9.0                    pypi_0    pypi
git                       2.40.1               haa95532_1
google-api-core           2.11.1                   pypi_0    pypi
google-api-python-client  2.96.0                   pypi_0    pypi
google-auth               2.22.0                   pypi_0    pypi
google-auth-httplib2      0.1.0                    pypi_0    pypi
google-cloud-core         2.3.3                    pypi_0    pypi
google-cloud-storage      2.10.0                   pypi_0    pypi
google-crc32c             1.5.0                    pypi_0    pypi
google-resumable-media    2.5.0                    pypi_0    pypi
googleapis-common-protos  1.60.0                   pypi_0    pypi
httplib2                  0.22.0                   pypi_0    pypi
idna                      3.4                      pypi_0    pypi
importlib-metadata        6.8.0                    pypi_0    pypi
importlib-resources       6.0.1                    pypi_0    pypi
ipyevents                 2.0.1                    pypi_0    pypi
ipyfilechooser            0.6.0                    pypi_0    pypi
ipyleaflet                0.17.3                   pypi_0    pypi
ipython                   8.14.0                   pypi_0    pypi
ipytree                   0.2.2                    pypi_0    pypi
ipywidgets                8.1.0                    pypi_0    pypi
jedi                      0.19.0                   pypi_0    pypi
jinja2                    3.1.2                    pypi_0    pypi
joblib                    1.3.2                    pypi_0    pypi
jupyterlab-widgets        3.0.8                    pypi_0    pypi
kiwisolver                1.4.4                    pypi_0    pypi
mapclassify               2.6.0                    pypi_0    pypi
markupsafe                2.1.3                    pypi_0    pypi
matplotlib                3.7.2                    pypi_0    pypi
matplotlib-inline         0.1.6                    pypi_0    pypi
metobs-gui                0.0.1                    pypi_0    pypi
metobs-toolkit            0.1.1a2                  pypi_0    pypi
mysql-connector-python    8.1.0                    pypi_0    pypi
networkx                  3.1                      pypi_0    pypi
numpy                     1.25.2                   pypi_0    pypi
openssl                   3.0.10               h2bbff1b_0
packaging                 23.1                     pypi_0    pypi
pandas                    1.5.3                    pypi_0    pypi
parso                     0.8.3                    pypi_0    pypi
pickleshare               0.7.5                    pypi_0    pypi
pillow                    10.0.0                   pypi_0    pypi
pip                       23.2.1           py39haa95532_0
plotly                    5.15.0                   pypi_0    pypi
prompt-toolkit            3.0.39                   pypi_0    pypi
protobuf                  4.21.12                  pypi_0    pypi
pure-eval                 0.2.2                    pypi_0    pypi
pyasn1                    0.5.0                    pypi_0    pypi
pyasn1-modules            0.3.0                    pypi_0    pypi
pygments                  2.16.1                   pypi_0    pypi
pyparsing                 3.0.9                    pypi_0    pypi
pyperclip                 1.8.2                    pypi_0    pypi
pyproj                    3.4.1                    pypi_0    pypi
pyqt5                     5.12.3                   pypi_0    pypi
pyqt5-sip                 12.12.2                  pypi_0    pypi
pyqtwebengine             5.12.1                   pypi_0    pypi
python                    3.9.17               h1aa4202_0
python-box                7.0.1                    pypi_0    pypi
python-dateutil           2.8.2                    pypi_0    pypi
pytz                      2023.3                   pypi_0    pypi
ratelim                   0.1.6                    pypi_0    pypi
requests                  2.31.0                   pypi_0    pypi
rsa                       4.9                      pypi_0    pypi
scikit-learn              1.3.0                    pypi_0    pypi
scipy                     1.11.1                   pypi_0    pypi
scooby                    0.7.2                    pypi_0    pypi
setuptools                68.0.0           py39haa95532_0
shapely                   2.0.1                    pypi_0    pypi
six                       1.16.0                   pypi_0    pypi
sqlite                    3.41.2               h2bbff1b_0
stack-data                0.6.2                    pypi_0    pypi
tenacity                  8.2.2                    pypi_0    pypi
threadpoolctl             3.2.0                    pypi_0    pypi
traitlets                 5.9.0                    pypi_0    pypi
traittypes                0.2.1                    pypi_0    pypi
typing-extensions         4.7.1                    pypi_0    pypi
tzdata                    2023c                h04d1e81_0
uritemplate               4.1.1                    pypi_0    pypi
urllib3                   1.26.16                  pypi_0    pypi
vc                        14.2                 h21ff451_1
vs2015_runtime            14.27.29016          h5e58377_2
wcwidth                   0.2.6                    pypi_0    pypi
wheel                     0.38.4           py39haa95532_0
widgetsnbextension        4.0.8                    pypi_0    pypi
xyzservices               2023.7.0                 pypi_0    pypi
zipp                      3.16.2                   pypi_0    pypi

@vergauwenthomas
Copy link
Owner

import ee

ee.Authenticate()
ee.Initialize()

@spuynen
Copy link
Author

spuynen commented Aug 10, 2023

>>> ee.Authenticate()
Fetching credentials using gcloud
Traceback (most recent call last):
  File "C:\Users\d16426\Anaconda\envs\Metobs_GUI2\lib\site-packages\ee\oauth.py", line 298, in _load_app_default_credentials
    subprocess.run(command, check=True)
  File "C:\Users\d16426\Anaconda\envs\Metobs_GUI2\lib\subprocess.py", line 505, in run
    with Popen(*popenargs, **kwargs) as process:
  File "C:\Users\d16426\Anaconda\envs\Metobs_GUI2\lib\subprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\Users\d16426\Anaconda\envs\Metobs_GUI2\lib\subprocess.py", line 1436, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] Het systeem kan het opgegeven bestand niet vinden

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\d16426\Anaconda\envs\Metobs_GUI2\lib\site-packages\ee\__init__.py", line 102, in Authenticate
    return oauth.authenticate(authorization_code, quiet, code_verifier, auth_mode,
  File "C:\Users\d16426\Anaconda\envs\Metobs_GUI2\lib\site-packages\ee\oauth.py", line 400, in authenticate
    _load_app_default_credentials(auth_mode == 'gcloud', scopes, quiet)
  File "C:\Users\d16426\Anaconda\envs\Metobs_GUI2\lib\site-packages\ee\oauth.py", line 301, in _load_app_default_credentials
    raise Exception('gcloud command not found. ' + tip) from e  # pylint:disable=broad-exception-raised
Exception: gcloud command not found. Please ensure that gcloud is installed.
More information: https://developers.google.com/earth-engine/guides/python_install

@vergauwenthomas
Copy link
Owner

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

No branches or pull requests

2 participants