# Error while executing the code

**URL:** <https://pybamm.discourse.group/t/error-while-executing-the-code/258>\
**Category:** General\
**Created:** [23 March 2025 12:24 UTC](https://pybamm.discourse.group/t/error-while-executing-the-code/258 "2025-03-23T12:24:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhaygudi](https://avatars.discourse-cdn.com/v4/letter/a/77aa72/32.png) [@abhaygudi](https://pybamm.discourse.group/u/abhaygudi)\
**Post date:** [23 March 2025 12:24 UTC](https://pybamm.discourse.group/t/error-while-executing-the-code/258/1 "2025-03-23T12:24:38Z")

</div>

## hi, Please go through my attached code. I am getting following error when I execute it.

CasADi - 2025-03-23 17:47:14 WARNING("The options ‘t0’, ‘tf’, ‘grid’ and ‘output\_t0’ have been deprecated.  
The same functionality is provided by providing additional input arguments to the ‘integrator’ function, in particular:

- Call integrator(…, t0, tf, options) for a single output time, or
- Call integrator(…, t0, grid, options) for multiple grid points.  
The legacy ‘output\_t0’ option can be emulated by including or excluding ‘t0’ in ‘grid’.  
Backwards compatibility is provided in this release only.") […/casadi/core/integrator.cpp:515]  
Traceback (most recent call last):  
File “D:\PROJECTS-PERSONAL\AI\_APPLIED\_TO\_SSBs\0.5C\_18650\_2.6Ah\_b.py”, line 145, in   
sol = sim.solve()  
File “C:\Python\Lib\site-packages\pybamm\simulation.py”, line 426, in solve  
self.step(  
File “C:\Python\Lib\site-packages\pybamm\simulation.py”, line 488, in step  
self.\_solution = solver.step(  
File “C:\Python\Lib\site-packages\pybamm\solvers\base\_solver.py”, line 802, in step  
solution = self.\_integrate(model, t\_eval, ext\_and\_inputs)  
File “C:\Python\Lib\site-packages\pybamm\solvers\casadi\_solver.py”, line 277, in \_integrate  
solution.append(current\_step\_sol)  
AttributeError: ‘NoneType’ object has no attribute ‘append’

* * *
