Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'Module_six_moves_urllib_parse' object has no attribute 'splitvalue' #18

Closed
paiweilai opened this issue Jul 27, 2016 · 3 comments

Comments

@paiweilai
Copy link

paiweilai commented Jul 27, 2016

.../virtualenv_run/lib/python2.7/site-packages/yelp_uri/urllib_utf8.py", line 82, in splitvalue
    return urlparse.splitvalue(to_utf8(string))
AttributeError: 'Module_six_moves_urllib_parse' object has no attribute 'splitvalue'
@asottile
Copy link
Contributor

asottile commented Jul 27, 2016

This ticket is missing a sscce. How does one reproduce this? What version of the library are you using? A single frame of a stack trace is not all that helpful

@asottile
Copy link
Contributor

@paiweilai
Copy link
Author

paiweilai commented Jul 27, 2016

Thanks for quick reply, asottile.
An easy way to reproduce this error would be:

Python 2.7.6 (default, Jun 28 2016, 17:53:28)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from yelp_uri import urllib_utf8
>>> urllib_utf8.splitvalue('xxx')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File ".../virtualenv_run/lib/python2.7/site-packages/yelp_uri/urllib_utf8.py", line 82, in splitvalue
    return urlparse.splitvalue(to_utf8(string))
AttributeError: 'Module_six_moves_urllib_parse' object has no attribute 'splitvalue'

You are right, the root cause is the six module.
I guess the only thing left to do for yelp_uri is to make sure people use the newer version of six?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants