cyberark / ansible-modules

Ansible Modules for CyberArk Privileged Account Security Web Service SDK
MIT License
37 stars 17 forks source link

cyberark_credentails crashing on AttributeError: module 'urllib' has no attribute 'quote' #3

Open ImNtReal opened 5 years ago

ImNtReal commented 5 years ago

I'm getting AttributeError: module 'urllib' has no attribute 'quote' running Python 3.7. It still seems to work correctly against 2.7.5.

HarshaDokula commented 4 years ago

Hi, @ImNtReal

It is a compatibility issue. The urllib module has been split into parts and renamed in Python 3 to urllib.request, urllib.parse, and urllib.error.

How to resolve: Import urllib.parse and replace urllib.quote() with urllib.parse.quote().