Skip to content

Instantly share code, notes, and snippets.

Fatal error: Exit code 1 ()
Traceback (most recent call last):
File "/export/galaxy-central/tools/data_source/upload.py", line 275, in <module>
__main__()
File "/export/galaxy-central/tools/data_source/upload.py", line 268, in __main__
metadata.append(add_file(dataset, registry, output_path))
File "/export/galaxy-central/tools/data_source/upload.py", line 126, in add_file
convert_spaces_to_tabs=dataset.space_to_tab,
File "/galaxy-central/lib/galaxy/datatypes/upload_util.py", line 35, in handle_upload
is_binary = check_binary(path)
(base) C:\Users\kclg973\.spyder-py3\galaxy api>python fetchlibrarytest.py --url http://10.15.33.17:9280 --api 31cf2d7a932b12806369facfe0c0f0c8 yamlex.yml
{'importable': False, 'create_time': '2018-10-01T16:03:22.809420', 'contents_url': '/api/histories/8237ee2988567c1c/contents', 'id': '8237ee2988567c1c', 'size': 0, 'user_id': 'ebfb8f50c6abde6d', 'username_and_slug': None, 'annotation': None, 'state_details': {'paused': 0, 'ok': 0, 'failed_metadata': 0, 'upload': 0, 'discarded': 0, 'running': 0, 'setting_metadata': 0, 'error': 0, 'new': 0, 'queued': 0, 'empty': 0}, 'state': 'new', 'empty': True, 'update_time': '2018-10-01T16:03:22.809429', 'tags': [], 'deleted': False, 'genome_build': None, 'slug': None, 'name': 'Unnamed history', 'url': '/api/histories/8237ee2988567c1c', 'state_ids': {'paused': [], 'ok': [], 'failed_metadata': [], 'upload': [], 'discarded': [], 'running': [], 'setting_metadata': [], 'error': [], 'new': [], 'queued': [], 'empty': []}, 'published': False, 'model_class': 'History', 'purged': Fa
(base) C:\Users\kclg973\.spyder-py3\galaxy api>python fetchlibrarytest.py --url http://10.15.33.17:9280 --api 31cf2d7a932b12806369facfe0c0f0c8 yamlex.yml
{'importable': False, 'create_time': '2018-10-01T14:49:54.938816', 'contents_url': '/api/histories/1e8ab44153008be8/contents', 'id': '1e8ab44153008be8', 'size': 0, 'user_id': 'ebfb8f50c6abde6d', 'username_and_slug': None, 'annotation': None, 'state_details': {'paused': 0, 'ok': 0, 'failed_metadata': 0, 'upload': 0, 'discarded': 0, 'running': 0, 'setting_metadata': 0, 'error': 0, 'new': 0, 'queued': 0, 'empty': 0}, 'state': 'new', 'empty': True, 'update_time': '2018-10-01T14:49:54.938825', 'tags': [], 'deleted': False, 'genome_build': None, 'slug': None, 'name': 'Unnamed history', 'url': '/api/histories/1e8ab44153008be8', 'state_ids': {'paused': [], 'ok': [], 'failed_metadata': [], 'upload': [], 'discarded': [], 'running': [], 'setting_metadata': [], 'error': [], 'new': [], 'queued': [], 'empty': []}, 'published': False, 'model_class': 'History', 'purged': Fa
(base) C:\Users\kclg973\.spyder-py3\galaxy api>python fetchlibrarytest.py --url http://10.15.33.17:9280 --api '31cf2d7a932b12806369facfe0c0f0c8' yamlex.yml
{'err_msg': 'Provided API key is not valid.', 'err_code': 403001}
Traceback (most recent call last):
File "fetchlibrarytest.py", line 41, in <module>
main()
File "fetchlibrarytest.py", line 33, in main
'history_id': new_history_response.json()["id"]
KeyError: 'id'
(base) C:\Users\kclg973\.spyder-py3\galaxy api>python fetchlibrarytest.py --url http://10.15.33.17:9280 --api '31cf2d7a932b12806369facfe0c0f0c8' yamlex.yml
Traceback (most recent call last):
File "fetchlibrarytest.py", line 41, in <module>
main()
File "fetchlibrarytest.py", line 28, in main
logging.LogRecord(new_history_response.json())
TypeError: __init__() missing 6 required positional arguments: 'level', 'pathname', 'lineno', 'msg', 'args', and 'exc_info'
(base) C:\Users\kclg973\.spyder-py3\galaxy api>python fetchlibrarytest.py --url http://10.15.33.17:9280 --api '31cf2d7a932b12806369facfe0c0f0c8' yamlex.yml
Traceback (most recent call last):
File "fetchlibrarytest.py", line 40, in <module>
main()
File "fetchlibrarytest.py", line 32, in main
'history_id': new_history_response.json()["id"]
KeyError: 'id'
(base) C:\Users\kclg973\.spyder-py3\galaxy api>
(base) C:\Users\kclg973\.spyder-py3\galaxy api>python fetchlibrarytest.py --url 'http://10.15.33.17:9280' --api 'xxxxxxxxxxxxx' yamlex.yml
Traceback (most recent call last):
File "fetchlibrarytest.py", line 40, in <module>
main()
File "fetchlibrarytest.py", line 26, in main
new_history_response = requests.post(histories_url, data={'key': args.api_key})
File "C:\Users\kclg973\AppData\Local\Continuum\anaconda3\lib\site-packages\requests\api.py", line 112, in post
return request('post', url, data=data, json=json, **kwargs)
File "C:\Users\kclg973\AppData\Local\Continuum\anaconda3\lib\site-packages\requests\api.py", line 58, in request
return session.request(method=method, url=url, **kwargs)