Skip to content

AttributeError: 'module' object has no attribute 'parse' #93

@Demetrio92

Description

@Demetrio92

Recently (2 month ago or so) my SublimePythionIDE stopped working (I did not have time to investigate until now).
I am on the latest sublime build 3143, and I just have reinstalled the package to make sure I am on the latest version with a clean installation. I am also (still) on Bbuntu 14.04 if that matters.

The package won't even load on the Sublime start with the following traceback:

SublimeLinter: pycodestyle activated: <builtin> 
started server on port 44317 with ['/home/user/anaconda3/bin/python3.6']
Traceback (most recent call last):
  File "/opt/sublime_text/sublime_plugin.py", line 530, in on_activated_async
    callback.on_activated_async(v)
  File "/home/user/.config/sublime-text-3/Packages/SublimePythonIDE/sublime_python.py", line 483, in wrapperN
    return func(self, view, *args)
  File "/home/user/.config/sublime-text-3/Packages/SublimePythonIDE/sublime_python_linting.py", line 434, in on_activated_async
    check(view)
  File "/home/user/.config/sublime-text-3/Packages/SublimePythonIDE/sublime_python_linting.py", line 73, in check
    proxy = proxy_for(view)
  File "/home/user/.config/sublime-text-3/Packages/SublimePythonIDE/sublime_python.py", line 352, in proxy_for
    proxy = Proxy(python)
  File "/home/user/.config/sublime-text-3/Packages/SublimePythonIDE/sublime_python.py", line 101, in __init__
    self.restart()
  File "/home/user/.config/sublime-text-3/Packages/SublimePythonIDE/sublime_python.py", line 168, in restart
    allow_none=True)
  File "./python3.3/xmlrpc/client.py", line 1395, in __init__
AttributeError: 'module' object has no attribute 'parse'

You can notice, I am using latest anaconda here, however switching the path to usr/bin/python

Python 2.7.6 (default, Oct 26 2016, 20:30:19) 
[GCC 4.8.4] on linux2

results in the exact same traceback. I guess, that's because the problem is actually in the sublime's python File "./python3.3/xmlrpc/client.py", line 1395, in __init__

Any clues?

I would gladly help investigating the issue myself, but I'd need a bit guidance on debugging of sublime packages. Right now I am not aware how to insert the break-points and step through the execution. Which is definitely necessary given the convoluted error.

Thanks!
Demetrio

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions