Urllib2 - replit bug in python

Problem description:

I am trying to import urllib2 in python, however, I am getting an error

Expected behavior:

urllib2 gets imported, starts to install dependencies before running repl.

Actual behavior:

Capture

Steps to reproduce:

Importing urllib2

Bug appears at this link:

https://replit.com/@DaveBoyo/PsuedOS

Browser:
chrome

OS:
Windows 10

Device (Android, iOS, NA leave blank):
HP Elitebook

Desktop app version (Avatar menu->“Version”) or NA:
NA

Plan (Free, Hacker, Pro Plan):
Free

Replit uses python3, so I believe using urlib3 instead should resolve your issue.

1 Like

Thats what I was thinking too – urllib3 loads, but I don’t see the same requesting command that urllib2 had, which is why I chose it. It just must have gotten depricated.

I’ll call this solved, thanks!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.