Coder Social home page Coder Social logo

Python3 compatiblity about bandup HOT 8 CLOSED

band-unfolding avatar band-unfolding commented on July 21, 2024
Python3 compatiblity

from bandup.

Comments (8)

fraricci avatar fraricci commented on July 21, 2024

a quick solution is to replace line with line.decode()

from bandup.

mbagheri20 avatar mbagheri20 commented on July 21, 2024

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?

from bandup.

fraricci avatar fraricci commented on July 21, 2024

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.

from bandup.

Chikou24i avatar Chikou24i commented on July 21, 2024

I have also faced the same issue. Could you please help me ?

from bandup.

fraricci avatar fraricci commented on July 21, 2024

Try to clone and install my fork that include the needed edit to be py3 compatible.

from bandup.

Chikou24i avatar Chikou24i commented on July 21, 2024

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.

from bandup.

stepan-tsirkin avatar stepan-tsirkin commented on July 21, 2024

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?

from bandup.

stepan-tsirkin avatar stepan-tsirkin commented on July 21, 2024

fixed in #21

from bandup.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.