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

deserialize does not work for functions outside of a module #93

Open
ardunn opened this issue May 24, 2020 · 0 comments
Open

deserialize does not work for functions outside of a module #93

ardunn opened this issue May 24, 2020 · 0 comments
Labels

Comments

@ardunn
Copy link
Collaborator

ardunn commented May 24, 2020

To reproduce:

  1. move an example outside the package
  2. rename the example (so it doesn't just call the functions in the package)
  3. get_z (and possibly wf_creator) fails:
Traceback (most recent call last):
  File "complex2.py", line 126, in <module>
    get_z=get_z,
  File "/home/x/down/tenv/lib/python3.6/site-packages/rocketsled/control.py", line 228, in configure
    config[kw] = serialize(kwargs[kw])
  File "/home/x/down/tenv/lib/python3.6/site-packages/rocketsled/utils.py", line 132, in serialize
    full_import_path = all_pkgs[-1] + mod_sep + full_import_path
IndexError: list index out of range
@ardunn ardunn added major bug patch for a patch labels May 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant