Any person who fails to comply with the provisions of this chapter, or the doing of any act prohibited by this chapter, shall be guilty of an offense and, upon conviction in the county magistrate court, shall be subject to penalties and costs as set forth in section 1-9.