我正在尝试使用ODC,为此,我需要使用postgresql作为文档,该文档位于此链接https://datacube-core.readthedocs.io/en/lates/ops/db_setup.html中。我在ubuntu环境18.04中。但是我不能。我的意图是将其设置为默认设置,然后进行一些测试。
sudo -u postgres createuser --superuser vincenzo
sudo -u postgres psql -c "ALTER USER vincenzo WITH PASSWORD '1234';"
createdb -U vincenzo datacube
datacube system init
Traceback (most recent call last):
File "/home/vincenzo/yes/envs/cubeenv/bin/datacube", line 11, in <module>
load_entry_point('datacube==1.7rc1+12.gc38de8e2', 'console_scripts', 'datacube')()
File "/home/vincenzo/yes/envs/cubeenv/lib/python3.6/site-packages/Click-7.0-py3.6.egg/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/home/vincenzo/yes/envs/cubeenv/lib/python3.6/site-packages/Click-7.0-py3.6.egg/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/home/vincenzo/yes/envs/cubeenv/lib/python3.6/site-packages/Click-7.0-py3.6.egg/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/vincenzo/yes/envs/cubeenv/lib/python3.6/site-packages/Click-7.0-py3.6.egg/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/vincenzo/yes/envs/cubeenv/lib/python3.6/site-packages/Click-7.0-py3.6.egg/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/vincenzo/yes/envs/cubeenv/lib/python3.6/site-packages/Click-7.0-py3.6.egg/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/vincenzo/yes/envs/cubeenv/lib/python3.6/site-packages/datacube-1.7rc1+12.gc38de8e2-py3.6.egg/datacube/ui/click.py", line 186, in new_func
parsed_config = config.LocalConfig.find(paths=paths, env=specific_environment)
File "/home/vincenzo/yes/envs/cubeenv/lib/python3.6/site-packages/datacube-1.7rc1+12.gc38de8e2-py3.6.egg/datacube/config.py", line 121, in find
env=env,
File "/home/vincenzo/yes/envs/cubeenv/lib/python3.6/site-packages/datacube-1.7rc1+12.gc38de8e2-py3.6.egg/datacube/config.py", line 99, in __init__
raise ValueError('No ODC environment, checked configurations for %s' % fallbacks)
ValueError: No ODC environment, checked configurations for ['default', 'datacube']