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

error : Can't pickle local object 'ReinsuranceProfile.__init__.<locals>.<listcomp>.<lambda>' #135

Open
uh-reza opened this issue Oct 26, 2020 · 0 comments

Comments

@uh-reza
Copy link

uh-reza commented Oct 26, 2020

as running
start.py -f test1 --save_iterations 10

comes up with this error:
Traceback (most recent call last):
File "C:\WPy64-3740\notebooks\isle-master\start.py", line 113, in main
save_simulation(t + 1, simulation, sim_params, exit_now=False)
File "C:\WPy64-3740\notebooks\isle-master\start.py", line 148, in save_simulation
pickle.dump(d, wfile, protocol=pickle.DEFAULT_PROTOCOL)
AttributeError: Can't pickle local object 'ReinsuranceProfile.init...'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\WPy64-3740\notebooks\isle-master\start.py", line 428, in
summary=summary,
File "C:\WPy64-3740\notebooks\isle-master\start.py", line 126, in main
raise Exception("".join(traceback.format_exception(*sys.exc_info()))[-900:])
Exception: Traceback (most recent call last):
File "C:\WPy64-3740\notebooks\isle-master\start.py", line 113, in main
save_simulation(t + 1, simulation, sim_params, exit_now=False)
File "C:\WPy64-3740\notebooks\isle-master\start.py", line 148, in save_simulation
pickle.dump(d, wfile, protocol=pickle.DEFAULT_PROTOCOL)
AttributeError: Can't pickle local object 'ReinsuranceProfile.init...'

any idea, please?

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