Untitled
unknown
plain_text
a year ago
2.0 kB
2
Indexable
Never
(.venv) shivanisangwan:galaxy $ ipython -i scripts/db_shell.py -- -c config/galaxy.yml Python 3.7.3 (default, Mar 28 2022, 19:39:11) Type 'copyright', 'credits' or 'license' for more information IPython 7.34.0 -- An enhanced Interactive Python. Type '?' for help. --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) ~/galaxy/scripts/db_shell.py in <module> 37 registry.load_datatypes() 38 set_datatypes_registry(registry) ---> 39 config = get_config(sys.argv) 40 db_url = config["db_url"] 41 sa_session = init("/tmp/", db_url).context ~/galaxy/lib/galaxy/model/orm/scripts.py in get_config(argv, use_argparse, cwd) 134 config_section = None 135 properties = load_app_properties( --> 136 config_file=config_file, config_prefix=config_override, config_section=config_section 137 ) 138 ~/galaxy/lib/galaxy/util/properties.py in load_app_properties(kwds, ini_file, ini_section, config_file, config_section, config_prefix) 79 # read from file or init w/no file 80 if config_file: ---> 81 properties = read_properties_from_file(config_file, config_section) 82 else: 83 properties = {"__file__": None} ~/galaxy/lib/galaxy/util/properties.py in read_properties_from_file(config_file, config_section) 107 config_section = "galaxy" 108 properties.update(__default_properties(config_file)) --> 109 raw_properties = _read_from_yaml_file(config_file) 110 if raw_properties: 111 properties.update(raw_properties.get(config_section) or {}) ~/galaxy/lib/galaxy/util/properties.py in _read_from_yaml_file(path) 124 125 def _read_from_yaml_file(path): --> 126 with open(path) as f: 127 return yaml.safe_load(f) 128 FileNotFoundError: [Errno 2] No such file or directory: 'config/galaxy.yml'