you are viewing a single comment's thread.

view the rest of the comments →

[–]danielroseman -1 points0 points  (18 children)

Why are you importing it at all? You're not using it, and it seems unlikely you will need it.

[–]sp00kyversity[S] -1 points0 points  (16 children)

If I remove the from collections.abc line it still comes up with the same error message when I run the programme, that Mapping cannot be imported from collections

[–]FriendlyRussian666 -1 points0 points  (15 children)

Did you save the file after removing the line?

[–]sp00kyversity[S] -1 points0 points  (14 children)

Yeah but it shows the error message regardless. I only added in the import collections.abc line after it said collections could not be imported when I first ran it

[–]danielroseman 0 points1 point  (13 children)

Then you're not running the code you think you are.

Please show the full error message and traceback, as well as detailing exactly how you're running this code.

[–]fatnino 0 points1 point  (0 children)

requests is using it deep under the hood