In the study of the vector space of the reals over the rationals, one can easily see that it has infinite dimension as $$\{\log2, \log3, \log5, \log7,\cdots\}$$ for all primes, is a infinite subset which is linearly independent, because $$\sum_{i=1}^{\infty}c_i \log p_i =0,$$ where $c_i\in\mathbb{Q}$ and $p_i$ is the $i$-th prime, implies (because one can multiply everything is this equation by a common multiple of all the $c_i$'s) $$\prod_{i=1}^{\infty}p_i^{c_i}=1 \implies c_i=0, \quad\forall i\geq1.$$ But the Axiom of Choice appears to imply that every vector space has a basis (in this case a Hamel basis) and a Hamel basis has a finite number of elements (right?).
So I must have gotten something wrong! Is it the infiniteness of primes? (Of course not! But why?)