If it is a suspected hairball, you can try a non-petroleum product called Cat Lube(link in Cat Health).

Still, your vet may want to take an x-ray to make sure it is nothing else.

HUGS and PT Prayers to you and Panda!