The two dimensional
cohomology, with values in the base field K of characteristic 0, of a simple Lie
algebra attached to any non-Euclidean indecomposable Cartan matrix is computed.
We find that dim(H2(ℒ,K)) equals the nullity of the Cartan matrix which defines ℒ.
We also show that there is an invariant 3-cocycle of ℒ if and only if the matrix
defining ℒ is symmetrizable. This yields cohomological interpretations for all the
known isomorphism class invariants of these algebras.