DALTON setup script fails to run with Python 3

Problems with Dalton installation? Find answers or ask for help here
Post Reply
ankit7540
Posts: 20
Joined: 05 Sep 2015, 10:49
First name(s): ANKIT
Last name(s): RAJ
Affiliation: National Chiao Tung University
Country: Taiwan, Province of China

DALTON setup script fails to run with Python 3

Post by ankit7540 » 10 Jun 2017, 14:36

Dear developers,
I tried to install DALTON on a new system and could not run the setup script. It gave error as following

Code: Select all

File "./setup", line 364
    os.makedirs(build_path, 0755)
                               ^
SyntaxError: invalid token
Since my system runs Python3 and I was able to understand this error, I changed to Python 2 and moved on with my installation. Will it be possible to include the functionality for the setup script to be usable with Python3 as well.

Likely changes for Python3 would be on line numbers 364, 431, 480, 387, 208 and maybe more.
For line 364 0o755 is needed in place of 0755
For line 431, (msg) is needed in place of msg
Others I am not sure.

Thanks for your time.
Best regards.
Ankit

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests