wit-ai / wit-ai/pywit

module 'urllib' has no attribute 'quote_plus'

Open
#172 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1.5k
Forks
353
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the delete_intent method and inspect how urllib is imported and how quote_plus is called. Verify the behavior against the repository's supported Python versions and confirm that delete_intent completes without the reported AttributeError; document or test the corrected behavior if the project has an existing test location.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.