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

Can't load pickle #180

Open
mpharrigan opened this issue Aug 8, 2016 · 6 comments
Open

Can't load pickle #180

mpharrigan opened this issue Aug 8, 2016 · 6 comments
Labels
Milestone

Comments

@mpharrigan
Copy link
Member

$ osprey worker config.yaml 
======================================================================
= osprey is a tool for machine learning hyperparameter optimization. =
======================================================================

osprey version:      1.1.0dev0
time:                August 08, 2016 10:44 AM
hostname:            vspm58
cwd:                 /data/harrigan/compute/mdsmoove/fs-peptide/analysis/multi-landmarks/osprey
pid:                 11481

Loading config file:     config.yaml...
An unexpected error has occurred with osprey (version 1.1.0dev0), please
consider sending the following traceback to the osprey GitHub issue tracker at:
        https://github.com/pandegroup/osprey/issues

Traceback (most recent call last):
  File "/home/harrigan/opt/miniconda3/envs/msm/bin/osprey", line 9, in <module>
    load_entry_point('osprey==1.1.0.dev0', 'console_scripts', 'osprey')()
  File "/home/harrigan/opt/miniconda3/envs/msm/lib/python3.5/site-packages/osprey-1.1.0.dev0-py3.5.egg/osprey/cli/main.py", line 37, in main
    args_func(args, p)
  File "/home/harrigan/opt/miniconda3/envs/msm/lib/python3.5/site-packages/osprey-1.1.0.dev0-py3.5.egg/osprey/cli/main.py", line 42, in args_func
    args.func(args, p)
  File "/home/harrigan/opt/miniconda3/envs/msm/lib/python3.5/site-packages/osprey-1.1.0.dev0-py3.5.egg/osprey/cli/parser_worker.py", line 8, in func
    execute(args, parser)
  File "/home/harrigan/opt/miniconda3/envs/msm/lib/python3.5/site-packages/osprey-1.1.0.dev0-py3.5.egg/osprey/execute_worker.py", line 33, in execute
    estimator = config.estimator()
  File "/home/harrigan/opt/miniconda3/envs/msm/lib/python3.5/site-packages/osprey-1.1.0.dev0-py3.5.egg/osprey/config.py", line 209, in estimator
    estimator = cPickle.load(f)
AttributeError: Can't get attribute 'MytICA' on <module '__main__' from '/home/harrigan/opt/miniconda3/envs/msm/bin/osprey'>
@mpharrigan
Copy link
Member Author

We should update the url in the "consider sending"

@mpharrigan
Copy link
Member Author

@cxhernandez
Copy link
Member

Is this using the joblib loader like in our example?

@mpharrigan
Copy link
Member Author

This is for the estimator

@cxhernandez
Copy link
Member

Ah, okay. So #183 lets you import modules required by your pickled function/class?

@cxhernandez cxhernandez added the bug label Aug 8, 2016
@cxhernandez cxhernandez added this to the v1.1 milestone Aug 8, 2016
@mpharrigan
Copy link
Member Author

No, #183 is orthogonal

@cxhernandez cxhernandez modified the milestones: v1.2, v1.1 Aug 16, 2016
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

2 participants