Menu

#80 Python version conflict

closed
nobody
None
1
2021-03-08
2018-08-11
No

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

Discussion

  • Anonymous

    Anonymous - 2018-08-13

    You can use a python virtual environment.

     
  • Sergey Fomel

    Sergey Fomel - 2018-08-14
    • status: open --> closed
     
  • Anonymous

    Anonymous - 2021-03-08
    Post awaiting moderation.
  • Anonymous

    Anonymous - 2021-03-08

    Hi ,

    I removed the path to anaconda of my file .bashrc. I hope it work.

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB
Gen AI apps are built with MongoDB Atlas
Atlas offers built-in vector search and global availability across 125+ regions. Start building AI apps faster, all in one place.