Hi,
I have recently installed conda and Python 3. After this installation I am not able to run anything from Madagascar.
Here is an example: If I just type sfdoc in terminal, I get the following error:
Traceback (most recent call last):
File "/usr/local/madagascar//bin/sfdoc", line 2, in <module>
import rsf.doc
File "/usr/local/madagascar/lib/python2.7/dist-packages/rsf/doc.py", line 76
os.chmod(name,0775)
^
SyntaxError: invalid token</module>
I tried to make sure that the path to Python 2.7 is given in the bashrc file and when I tried scons -c install I got the following error:
scons: Reading SConscript files ...
File "/usr/local/madagascar/SConstruct", line 17
print 'Setting RSFROOT to "%s" ' % root
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('Setting RSFROOT to "%s" ' % root)?
I guess the python3 and conda installation caused the issue.
Any suggestion to solve the issue?
Regards,
Behzad
Anonymous
You can use a python virtual environment.
It should be fixed now: https://github.com/ahay/src/commit/a70064ef1574ccc84d49cacd13233e28edadf33c#diff-cc8093822b396591a5530a463c87d048
Please report issues in https://github.com/ahay/src/issues
Hi ,
I removed the path to anaconda of my file .bashrc. I hope it work.