Sublime Forum

Missing urllib2 on osx

#1

Hi,

While I’m using st3 build 3021 on osx, it would appear that st3 doesn’t have urllib2 in the embedded Python as a module.

How can I work around this ?

Any idea ?

>>> import urllib2
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named 'urllib2'
0 Likes

#2

urllib2 does not exist in Python 3

0 Likes

#3

As for workarounds (don’t know if you are writing a plugin or using one but either way).

0 Likes

#4

Thank you for quick response, all.

Now I have realized that I should use urllib.parse in Python 3 instead.

Thank you for your help on this !

0 Likes