Skip to Content.

cat-users - [[cat-users]] Python scripts for eduroam configuration at Universität Leipzig

cat-users AT lists.geant.org

Subject: The mailing list for users of the eduroam Configuration Assistant Tool (CAT)

List archive


[[cat-users]] Python scripts for eduroam configuration at Universität Leipzig


Chronological Thread 
  • From: Sophie Kunze <sk62tafy AT studserv.uni-leipzig.de>
  • To: cat-users AT lists.geant.org
  • Subject: [[cat-users]] Python scripts for eduroam configuration at Universität Leipzig
  • Date: Sat, 5 Jan 2019 13:39:07 +0100

Hi,

I recently used the Python scripts supplied on cat.eduroam.org for "Universität Leipzig" to configure eduroam on my Arch Linux laptop.

Although they did work out in the end, I ran into errors on my first attempt of running the scripts. Both scripts use the Popen.communicate() method to receive data from subprocesses, for example in the following line:
output = out.strip().decode('utf-8')
Since strip() is used on the variable out, it is obvious that out is of string type. However, decode(...) should not be used on strings, only on byte objects. After I removed the .decode('utf-8') on all occurences of this construction in the file, it worked out without any further errors.

Best regards

Sophie Kunze




Archive powered by MHonArc 2.6.19.

Top of Page