Lucjan Emil Boettcher (1872-1937) started studying mathematics at (then Russian-dominated) Imperial University in Warsaw in the year 1893/94, but was soon expelled from it for participating in a political manifestation. He then moved to Lvov (in Austro-Hungarian empire) and studied in the Division of Machine Construction at the Lvov Polytechnic School, getting his so-called half-diploma in this area in 1897. The same year he moved to Leipzig to continue his studies in mathematics, getting his PhD with Sophus Lie in 1898.
For more information about Boettcher (including his not-so-successful academic career) see e.g. my answer to this MO question: Mathematicians whose works were criticized by contemporaries but became widely accepted laterMathematicians whose works were criticized by contemporaries but became widely accepted later