Having carpet on the floor between a bookshelf and an enchanting table closes the 1 block air gap, meaning the bookshelves do not raise the level of enchantment available. A 2 layered bookshelf will be be blocked completely by one piece of carpet. This probably should not occur.
Intended, carpet is a block, the path between a bookshelf and an enchanting table must be clear of any blocks.