I go to school by taking a bus.

I go to school by bus.

I know that someone has pointed out to me the second sentence is correct. I just want to know if it is acceptable to use the first sentence?

What do you mean by 'acceptable'?

The first one is not wrong, but it is not idiomatic.

I see. Thank you.