wit-ai / pywit

Python library for Wit.ai
Other
1.45k stars 359 forks source link

module 'urllib' has no attribute 'quote_plus' #172

Open GabrielSSAlmeida opened 1 year ago

GabrielSSAlmeida commented 1 year ago

When trying to use the 'delete_intent' method, the error "module 'urllib' has no attribute 'quote_plus'" occurred.

To solve it I had to change the import from 'import urllib' to 'import urllib.parse' , change the method call from 'urllib.quote_plus()' to 'urllib.parse.quote_plus()' and it worked.

Can anyone confirm that the changes I made are correct? I'm a beginner in programming.

Sorry for the English, I'm using Google Translate.