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

pack does not work with flash #163

Open
cchall opened this issue Oct 19, 2023 · 0 comments
Open

pack does not work with flash #163

cchall opened this issue Oct 19, 2023 · 0 comments

Comments

@cchall
Copy link
Member

cchall commented Oct 19, 2023

Need to add allowance for non-sirepo, templated codes

Traceback (most recent call last):
  File "/home/vagrant/.pyenv/versions/py3/bin/rsopt", line 8, in <module>
    sys.exit(main())
  File "/home/vagrant/.pyenv/versions/3.9.15/envs/py3/lib/python3.9/site-packages/rsopt/rsopt_console.py", line 15, in main
    return pkcli.main('rsopt')
  File "/home/vagrant/.pyenv/versions/3.9.15/envs/py3/lib/python3.9/site-packages/pykern/pkcli/__init__.py", line 158, in main
    res = argh.dispatch(parser, argv=argv)
  File "/home/vagrant/.pyenv/versions/3.9.15/envs/py3/lib/python3.9/site-packages/argh/dispatching.py", line 179, in dispatch
    for line in lines:
  File "/home/vagrant/.pyenv/versions/3.9.15/envs/py3/lib/python3.9/site-packages/argh/dispatching.py", line 290, in _execute_command
    for line in result:
  File "/home/vagrant/.pyenv/versions/3.9.15/envs/py3/lib/python3.9/site-packages/argh/dispatching.py", line 273, in _call
    result = function(*positional, **keywords)
  File "/home/vagrant/.pyenv/versions/3.9.15/envs/py3/lib/python3.9/site-packages/rsopt/pkcli/pack.py", line 120, in configuration
    files = _get_files_from_job(job)
  File "/home/vagrant/.pyenv/versions/3.9.15/envs/py3/lib/python3.9/site-packages/rsopt/pkcli/pack.py", line 66, in _get_files_from_job
    files = _get_file_list_from_model(m, job.code, job.setup['input_file'])
  File "/home/vagrant/.pyenv/versions/3.9.15/envs/py3/lib/python3.9/site-packages/rsopt/pkcli/pack.py", line 40, in _get_file_list_from_model
    file_list = [model_path.joinpath(model['_SimData__source'].basename), ]
KeyError: '_SimData__source'
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

1 participant