Ask Your Question

Revision history [back]

The mixing of python 2.7 and 3.6 python files isn't good- you should have something like /usr/lib/python2.7/glob.py getting used instead of /home/mallikarjun/anaconda3/lib/python3.6/glob.py

It looks this isn't ROS related at all and you have installed anaconda3 into your home directory and need to keep it from being used. If there are lines in your .bashrc putting anaconda3 on your PATH or PYTHONPATH or any other references to anaconda3 try disabling those and start a new terminal

A quick test is running python from the command line and typing import re in:

>>> import re

and see if that produces the same error.