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

ImportError: cannot import name intern #61

Open
JieThompson opened this issue Jan 18, 2015 · 8 comments
Open

ImportError: cannot import name intern #61

JieThompson opened this issue Jan 18, 2015 · 8 comments

Comments

@JieThompson
Copy link

Just upgraded six to latest version. make tests fails with ImportError: cannot import name intern. This happened on both python3 and python2.7, building from source and also attempting to use the tarball. Using Ubuntu 14.02.

@inducer
Copy link
Owner

inducer commented Jan 18, 2015

What is that latest version?

@JieThompson
Copy link
Author

six-1.9.0. That is the one which comes via pip install six --upgrade.

@inducer
Copy link
Owner

inducer commented Jan 19, 2015

@jingruixiaozhuang
Copy link

hi, Jie! Have you solved this problem? I meet the same trouble too!

@kif
Copy link

kif commented Mar 3, 2015

On MacOSX there is a six 1.4 laying around ... I deleted it manually.

@aditya4d1
Copy link

This error is raised by six package. I used

try:
    import intern, ....
except:
    import ...

@thomasquintana
Copy link

Fix:

# from six.moves import range, zip, intern, input
try:
        from six.moves import range, zip, intern, input
except ImportError:
        from six.moves import range, zip, input

@aditya4d1
Copy link

That's what I changed in my fork. Hope it gets committed to original
repository.
Thank you!! :)
On Jun 11, 2015 4:03 AM, "Thomas Quintana" notifications@github.com wrote:

Fix:

from six.moves import range, zip, intern, inputtry:

    from six.moves import range, zip, intern, inputexcept ImportError:
    from six.moves import range, zip, input


Reply to this email directly or view it on GitHub
#61 (comment).

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

6 participants