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

TypeError in datamodels/model_base.py #3030

Closed
gkanarek opened this issue Jan 14, 2019 · 8 comments
Closed

TypeError in datamodels/model_base.py #3030

gkanarek opened this issue Jan 14, 2019 · 8 comments

Comments

@gkanarek
Copy link
Collaborator

Tried to save an asdf file, and got this:

  File "/Users/gkanarek/miniconda3/envs/nirspecref/lib/python3.5/site-packages/jwst-0.13.0a0.dev146+g4abefa32-py3.5-macosx-10.6-x86_64.egg/jwst/datamodels/model_base.py", line 550, in to_asdf
    inline_threshold=inline_threshold).write_to(init, *args, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'inline_threshold'
@sosey
Copy link
Member

sosey commented Jan 14, 2019

check what version of asdf you are using, but I also see this: asdf-format/asdf#610 cc: @drdavella @nden

@gkanarek
Copy link
Collaborator Author

You can see it in the "file" part of the traceback: jwst-0.13.0a0.dev146.

@gkanarek
Copy link
Collaborator Author

Should I roll back to 0.12.3?

@drdavella
Copy link
Collaborator

@gkanarek I think you need to update asdf in your environment. You can probably just do pip install --upgrade asdf.

@drdavella
Copy link
Collaborator

Er, actually, that's not quite right. But there is a mismatch between the asdf and jwst versions in your environment. Are you trying to run jwst from a particular release, or do you have a dev version installed in your environment? If the latter, you might need to pull down the latest master.

@nden
Copy link
Collaborator

nden commented Jan 14, 2019

@gkanarek As @drdavella mentioned there's a version mismatch. It looks like you are running conda dev but have not updated recently. If this is not on purpose you can update your environment and this should fix the issue. You should get jwst version 0.13.0b.devxxx.

Please post if you are actually trying to stay with an old version of the pipeline.

@nden
Copy link
Collaborator

nden commented Jan 30, 2019

@gkanarek Was this resolved? Can we close the ticket?

@jdavies-st
Copy link
Collaborator

Closing. Reopen if this is still a problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants