Let's consider a principle $U(1)$-bundle over $S^2$ with the transition function $g_{\infty 0} = z/|z|$ (it is known as the Hopf fibration). There is a simple topological argument showing that this bundle is not trivial by the comparison of fundamental groups. However, it should be clear directly from definitions.
So I would like to prove that this bundle has no global sections (which is equivalent to non-triviality). It means that there is no continuous function $f: \mathbb{C} \to U(1)$ such that there exists $$ \lim_{z \to \infty} \frac{z}{|z|} f(z) $$ How would one prove this?