Changed o2 sensor but check light appear?

2007 honda partner 1500cc check light appear (po 172 fuel metering too rich) then i changed o2 sensors(1&2) but drove 20km check light appear again. So what can i do for that?

O2 sensors are there to respond to exhaust gases,
P0172 doesn't mean faulty o2 sensors as you've found out,
so your either not getting enough air in so renew the air filter,
or too much fuel,
so check the coolant temperature sensor, the air flow sensor or the injectors.

O2 sensors have upstream (before cat convertor.closest to motor) and downstream sensors( after cat convertor under car). You may of changed wrong one. Did you hook an obd scanner to it or have autozone check for free. It will tell you.bank 1 sensor 1.bank sensor 1.bank 2 sensor 1 and bank 2 sensor 2. Have somone scan it for free and make sure you changed right ones.