I’m having a strange error with the URLEncode plugin, which used to work but now doesn’t.
It’s making a call to urllib.parse.quote(s, safe='')
which now fails with an error AttributeError: 'module' object has no attribute 'parse'
and indeed, when I try to run this command in the console:
import urllib; print(repr(urllib)); print(repr(urllib.parse))
it results in this error:
<module 'urllib' from '/opt/sublime_text/python3.3.zip/urllib/__init__.pyo'>
Traceback (most recent call last):
File "<string>", line 1, in <module>
AttributeError: 'module' object has no attribute 'parse'
I’ve managed to fix the error by importing the lib in a different way, although since I don’t know much about Python, I don’t really understand why it works.
For more information, please see this pull request. Unfortunately the author decided to close it, but maybe if I can figure out what’s happening I could convince him to reopen it.
So I’m wondering what could be causing this error?
(This is on Ubuntu 16 by the way - it works for me on Windows, and for him on MacOS. Don’t know if it’s specific to Ubuntu though or due to something else)