Skip to content

Instantly share code, notes, and snippets.

@MattiSG
Created January 9, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MattiSG/91cc73e0f8cf76ddf094 to your computer and use it in GitHub Desktop.
Save MattiSG/91cc73e0f8cf76ddf094 to your computer and use it in GitHub Desktop.
OpenFisca failure stack trace
14:57:59,557 ERROR [openfisca_core.formulas] An error occurred while calling formula individus@reintegration_titre_restaurant_employeur<2015-02> in openfisca_france.model.cotisations_sociales.remuneration_prive.reintegration_titre_restaurant_employeur
14:57:59,558 ERROR [openfisca_core.formulas] An error occurred while calling formula individus@salbrut<2015-02> in openfisca_france.model.cotisations_sociales.remuneration_prive.salbrut
14:57:59,558 ERROR [openfisca_core.formulas] An error occurred while calling formula individus@ratio_smic_salaire<2015> in openfisca_france.model.cotisations_sociales.allegements.function_2012
14:57:59,558 ERROR [openfisca_core.formulas] An error occurred while calling formula individus@allegement_fillon_annuel<2015> in openfisca_france.model.cotisations_sociales.allegements.allegement_fillon_annuel
14:57:59,558 ERROR [openfisca_core.formulas] An error occurred while calling formula individus@allegement_fillon<2015-01> in openfisca_france.model.cotisations_sociales.allegements.allegement_fillon
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 54882)
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/paste/httpserver.py", line 1068, in process_request_in_thread
self.finish_request(request, client_address)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 334, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 649, in __init__
self.handle()
File "/Library/Python/2.7/site-packages/paste/httpserver.py", line 442, in handle
BaseHTTPRequestHandler.handle(self)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/BaseHTTPServer.py", line 340, in handle
self.handle_one_request()
File "/Library/Python/2.7/site-packages/paste/httpserver.py", line 437, in handle_one_request
self.wsgi_execute()
File "/Library/Python/2.7/site-packages/paste/httpserver.py", line 287, in wsgi_execute
self.wsgi_start_response)
File "/Users/sgmap/Dev/openfisca-web-api/openfisca_web_api/application.py", line 41, in set_environment
return app(req.environ, start_response)
File "/Users/sgmap/Dev/openfisca-web-api/openfisca_web_api/urls.py", line 147, in router
return app(req.environ, start_response)
File "/Library/Python/2.7/site-packages/webob/dec.py", line 130, in __call__
resp = self.call_func(req, *args, **self.kwargs)
File "/Library/Python/2.7/site-packages/webob/dec.py", line 195, in call_func
return self.func(req, *args, **kwargs)
File "/Users/sgmap/Dev/openfisca-web-api/openfisca_web_api/controllers.py", line 296, in api1_calculate
simulation.calculate(variable)
File "/Users/sgmap/Dev/openfisca-core/openfisca_core/simulations.py", line 91, in calculate
requested_formulas_by_period = requested_formulas_by_period).array
File "/Users/sgmap/Dev/openfisca-core/openfisca_core/simulations.py", line 144, in compute
requested_formulas_by_period = requested_formulas_by_period)
File "/Users/sgmap/Dev/openfisca-core/openfisca_core/entities.py", line 75, in compute
requested_formulas_by_period = requested_formulas_by_period)
File "/Users/sgmap/Dev/openfisca-core/openfisca_core/holders.py", line 290, in compute
requested_formulas_by_period = requested_formulas_by_period)
File "/Users/sgmap/Dev/openfisca-core/openfisca_core/formulas.py", line 258, in compute
requested_formulas_by_period = requested_formulas_by_period)
File "/Users/sgmap/Dev/openfisca-core/openfisca_core/formulas.py", line 496, in compute
formula_result = self.function(simulation, period)
File "/Users/sgmap/Dev/openfisca-france/openfisca_france/model/cotisations_sociales/allegements.py", line 258, in function
period.start.offset('first-of', 'year').period('year'))
File "/Users/sgmap/Dev/openfisca-core/openfisca_core/simulations.py", line 91, in calculate
requested_formulas_by_period = requested_formulas_by_period).array
File "/Users/sgmap/Dev/openfisca-core/openfisca_core/simulations.py", line 144, in compute
requested_formulas_by_period = requested_formulas_by_period)
File "/Users/sgmap/Dev/openfisca-core/openfisca_core/entities.py", line 75, in compute
requested_formulas_by_period = requested_formulas_by_period)
File "/Users/sgmap/Dev/openfisca-core/openfisca_core/holders.py", line 290, in compute
requested_formulas_by_period = requested_formulas_by_period)
File "/Users/sgmap/Dev/openfisca-core/openfisca_core/formulas.py", line 258, in compute
requested_formulas_by_period = requested_formulas_by_period)
File "/Users/sgmap/Dev/openfisca-core/openfisca_core/formulas.py", line 496, in compute
formula_result = self.function(simulation, period)
File "/Users/sgmap/Dev/openfisca-france/openfisca_france/model/cotisations_sociales/allegements.py", line 147, in function
ratio_smic_salaire = simulation.calculate('ratio_smic_salaire', period)
File "/Users/sgmap/Dev/openfisca-core/openfisca_core/simulations.py", line 91, in calculate
requested_formulas_by_period = requested_formulas_by_period).array
File "/Users/sgmap/Dev/openfisca-core/openfisca_core/simulations.py", line 144, in compute
requested_formulas_by_period = requested_formulas_by_period)
File "/Users/sgmap/Dev/openfisca-core/openfisca_core/entities.py", line 75, in compute
requested_formulas_by_period = requested_formulas_by_period)
File "/Users/sgmap/Dev/openfisca-core/openfisca_core/holders.py", line 290, in compute
requested_formulas_by_period = requested_formulas_by_period)
File "/Users/sgmap/Dev/openfisca-core/openfisca_core/formulas.py", line 258, in compute
requested_formulas_by_period = requested_formulas_by_period)
File "/Users/sgmap/Dev/openfisca-core/openfisca_core/formulas.py", line 496, in compute
formula_result = self.function(simulation, period)
File "/Users/sgmap/Dev/openfisca-france/openfisca_france/model/cotisations_sociales/allegements.py", line 62, in function_2012
salbrut = simulation.calculate('salbrut', period)
File "/Users/sgmap/Dev/openfisca-core/openfisca_core/simulations.py", line 91, in calculate
requested_formulas_by_period = requested_formulas_by_period).array
File "/Users/sgmap/Dev/openfisca-core/openfisca_core/simulations.py", line 144, in compute
requested_formulas_by_period = requested_formulas_by_period)
File "/Users/sgmap/Dev/openfisca-core/openfisca_core/entities.py", line 75, in compute
requested_formulas_by_period = requested_formulas_by_period)
File "/Users/sgmap/Dev/openfisca-core/openfisca_core/holders.py", line 290, in compute
requested_formulas_by_period = requested_formulas_by_period)
File "/Users/sgmap/Dev/openfisca-core/openfisca_core/formulas.py", line 496, in compute
formula_result = self.function(simulation, period)
File "/Users/sgmap/Dev/openfisca-france/openfisca_france/model/cotisations_sociales/remuneration_prive.py", line 248, in function
"reintegration_titre_restaurant_employeur", period
File "/Users/sgmap/Dev/openfisca-core/openfisca_core/simulations.py", line 91, in calculate
requested_formulas_by_period = requested_formulas_by_period).array
File "/Users/sgmap/Dev/openfisca-core/openfisca_core/simulations.py", line 144, in compute
requested_formulas_by_period = requested_formulas_by_period)
File "/Users/sgmap/Dev/openfisca-core/openfisca_core/entities.py", line 75, in compute
requested_formulas_by_period = requested_formulas_by_period)
File "/Users/sgmap/Dev/openfisca-core/openfisca_core/holders.py", line 290, in compute
requested_formulas_by_period = requested_formulas_by_period)
File "/Users/sgmap/Dev/openfisca-core/openfisca_core/formulas.py", line 496, in compute
formula_result = self.function(simulation, period)
File "/Users/sgmap/Dev/openfisca-france/openfisca_france/model/cotisations_sociales/remuneration_prive.py", line 145, in function
simulation.legislation_at(period.start).cotsoc.assiette.cantines_titres_restaurants.taux_minimum_exoneration
AttributeError: 'CompactNode' object has no attribute 'assiette'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment