Got you. Plus if you were using water on the carpet then that increases the smell as well.
You can take the position that the condition of the carpet and its smell, if the owner won't replace it or get it cleaned to the point you can't smell it (and they would likely be allowed to have that chance), is a "constructive eviction" and a breach of contract.
That would allow you to move and then sue to get back all of your moving expenses and other damages. That is really your only option at this point.
You want to get a lawyer to write the notice letter for you. First, you want him to write it because he can cite the correct law and then blend your facts in to show how it applies. Second, you want him to write it because if you do end up having to sue then the lawyer will have phrased the letter in such a way that it will look better for you when used as evidence in court. Lawyers usually don't charge much for a letter like this and it is well worth the investment.
If your question has been answered then I'd offer my best wishes to you and ask that you please not forget to leave a Positive Rating so I receive credit for my work.
Of course, please feel free to ask any follow up questions in this thread. I want to be sure that all of your questions are answered. In addition, once you issue your Positive Rating the question will lock open and no longer time out so you can come back to it anytime in the future if you think of any follow ups.