Import error: cannot import name MAXREPEAT [closed]

asked 2013-10-03 16:14:23 -0600

FuerteNewbie gravatar image

updated 2014-01-28 17:18:08 -0600

ngrennan gravatar image

Trying to reinstall python due to this problem(link below):

So i tried to 'sudo apt-get --reinstall install python python-support' and half way I got this.

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/", line 548, in <module>
  File "/usr/local/lib/python2.7/", line 530, in main
    known_paths = addusersitepackages(known_paths)
  File "/usr/local/lib/python2.7/", line 266, in addusersitepackages
    user_site = getusersitepackages()
  File "/usr/local/lib/python2.7/", line 241, in getusersitepackages
    user_base = getuserbase() # this will also set USER_BASE
  File "/usr/local/lib/python2.7/", line 231, in getuserbase
    USER_BASE = get_config_var('userbase')
  File "/usr/local/lib/python2.7/", line 516, in get_config_var
    return get_config_vars().get(name)
  File "/usr/local/lib/python2.7/", line 449, in get_config_vars
    import re
  File "/usr/local/lib/python2.7/", line 105, in <module>
    import sre_compile
  File "/usr/local/lib/python2.7/", line 14, in <module>
    import sre_parse
  File "/usr/local/lib/python2.7/", line 17, in <module>
    from sre_constants import *
  File "/usr/local/lib/python2.7/", line 18, in <module>
    from _sre import MAXREPEAT
ImportError: cannot import name MAXREPEAT
edit retag flag offensive reopen merge delete

Closed for the following reason question is off-topic or not relevant. Please see for more details. by tfoote
close date 2013-10-06 21:36:13


This is not a ROS problem.

tfoote gravatar image tfoote  ( 2013-10-06 21:36:02 -0600 )edit