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

'Module_six_moves_urllib_parse' object has no attribute 'SplitResult' #47

Closed
dydt opened this issue Jan 16, 2015 · 7 comments
Closed

'Module_six_moves_urllib_parse' object has no attribute 'SplitResult' #47

dydt opened this issue Jan 16, 2015 · 7 comments
Assignees

Comments

@dydt
Copy link

dydt commented Jan 16, 2015

I do not get this error with furl-0.3.7. I get this error with furl-0.4.2.

In [3]: furl.furl()
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-3-a2bd23daefba> in <module>()
----> 1 furl.furl()

/Library/Python/2.7/site-packages/furl/furl.pyc in __init__(self, url, strict)
    847         self.strict = strict
    848 
--> 849         self.load(url)  # Raises ValueError on invalid url.
    850 
    851     def load(self, url):

/Library/Python/2.7/site-packages/furl/furl.pyc in load(self, url)
    865         # Python 2.7+. In Python <= 2.6, urlsplit() doesn't raise a
    866         # ValueError on malformed IPv6 addresses.
--> 867         tokens = urlsplit(url)
    868 
    869         self.netloc = tokens.netloc  # Raises ValueError in Python 2.7+.

/Library/Python/2.7/site-packages/furl/furl.pyc in urlsplit(url)
   1308         url = _set_scheme(url, 'http')
   1309     toks = urllib.parse.urlsplit(url)
-> 1310     return urllib.parse.SplitResult(*_change_urltoks_scheme(toks, original_scheme))
   1311 
   1312 

AttributeError: 'Module_six_moves_urllib_parse' object has no attribute 'SplitResult'
@dydt
Copy link
Author

dydt commented Jan 16, 2015

Oh and I forgot: I'm running Python 2.7.6.

@gruns
Copy link
Owner

gruns commented Jan 16, 2015

Thanks for including your Python version.

It looks like an old version of six is installed. Check which version is installed with

python -c "import six; print six.__version__"

Furl requires six v1.8.0 or later (see setup.py). If you installed furl via pip (pip install furl --upgrade), pip will install six v1.8.0 (or later).

@gruns gruns self-assigned this Jan 16, 2015
@n3xtchen
Copy link

n3xtchen commented Feb 7, 2015

I use
python - 2.7.6
furl - 0.4.4
six - 1.9.0
It also doesn't work, show the same wrong

@gruns
Copy link
Owner

gruns commented Feb 12, 2015

I can't reproduce this error.

~ $ python2.7.6
Python 2.7.6 (default, Feb 11 2015, 22:04:56) 
[GCC 4.5.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import furl
>>> furl.__version__
'0.4.4'
>>> import six
>>> six.__version__
'1.9.0'
>>> f = furl.furl()
>>> 

Are you sure six v1.9.0 and furl v0.4.4 are installed for Python 2.7.6? Perhaps you have multiple versions of Python installed and six v1.9.0 and furl v0.4.4 are installed under a different version.

@gruns
Copy link
Owner

gruns commented Feb 27, 2015

@dydt @n3xtchen Are you still encountering this error?

@n3xtchen
Copy link

@gruns, it works! ^_^ ,

$ python
Python 2.7.6 (default, Sep 9 2014, 15:04:36)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

import furl
furl.version
'0.4.4'
import six
six.version
'1.8.0'
f = furl.furl()
f = furl.furl('#47 (comment)')

@gruns
Copy link
Owner

gruns commented Feb 28, 2015

@n3xtchen Awesome.

@gruns gruns closed this as completed Feb 28, 2015
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

3 participants