Closed bjmorgan closed 2 years ago
a quick solution is to replace line with line.decode()
a quick solution is to replace line with line.decode()
Hi, I used this method but it didn't work. Also, the plot step didn't work with python 3 So I used python 2.7 Is there any way to compatible the BandUP with python 3?
Hi, I think there were other edits to do in order to get it work on Python3. I sent a pull request, you might use that code. Let me know if it works.
I have also faced the same issue. Could you please help me ?
Try to clone and install my fork that include the needed edit to be py3 compatible.
When I run : ./build I get this at the end :
cd spglib-1.5.2;\ ./configure FC=ifort CC=icc CFLAGS=-openmp FCFLAGS=-openmp;\ cd /home/ouettar/Downloads/bandup-master (1)/bandup-master/src/external /bin/sh: 3: Syntax error: "(" unexpected Makefile:17: recipe for target 'spglib-1.5.2/Makefile' failed make: [spglib-1.5.2/Makefile] Error 2 /bin/sh: 1: Syntax error: "(" unexpected /bin/sh: 1: Syntax error: "(" unexpected /bin/sh: 1: Syntax error: "(" unexpected /bin/sh: 1: Syntax error: "(" unexpected /bin/sh: 1: Syntax error: "(" unexpected make: No rule to make target 'kinds.o', needed by 'cla.o'. Stop.
dear @Chikou24i , the problem that you are facing happens only with the PR #7 from @fraricci , or with the master branch of bandup also ?
I think the reason is that it is assumed that /bin/sh is assumed to point to bash , but probably on your system it does not . What is your system and what is your default shell?
fixed in #21
Running
bandup kpts
under Python3, I get the following error:This looks to me like Python 3 being stricter about byte vs. string IO streams, but could be something entirely different.