# How to solve this Bandup software problem?

I have compiled the Bandup software using this command : ./build -compiler gfortran. After that, I tried to follow the tutorial inside the directory bandup-master/tutorial/VASP/example_2_bulk_Si. The second step gave me this error:

Traceback (most recent call last):
File "/home/e/bjm42/bin/bandup", line 73, in <module>
File "/home/e/bjm42/source/bandup/src/python_interface/bandupy/runners.py", line 73, in run_requested_task
run_pre_bandup_tool(args)
File "/home/e/bjm42/source/bandup/src/python_interface/bandupy/runners.py", line 54, in run_pre_bandup_tool
sys.stdout.write(line)
TypeError: write() argument must be str, not bytes


Do you know how to solve it? Can I unfold bandstructure directly with Bandup without going through the steps mentionned in the tutorial?

• This is a common error seen when running Python 2.7 code using Python 3.X. Since Bandup seems to only be supported for Python 2.7 you will either need to install this or edit the source code in various places to make it 3.X compatible. – Tyberius Mar 17 at 15:35