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

Import Error with Django 1.5.5 & 1.6 #394

Closed
Koed00 opened this issue Oct 26, 2013 · 13 comments
Closed

Import Error with Django 1.5.5 & 1.6 #394

Koed00 opened this issue Oct 26, 2013 · 13 comments

Comments

@Koed00
Copy link

Koed00 commented Oct 26, 2013

Lettuce will raise ImportError: cannot import name WSGIServerException with Django 1.5.5

Looks like a change for Django 1.6 sneaked into 1.5.5 and the backwards compatibility fix for this won't be available until 1.6

@kevinastone
Copy link
Contributor

👍
Also breaks Django 1.6 which was released today.

@Koed00
Copy link
Author

Koed00 commented Nov 7, 2013

It's now documented with Django 1.6 that WSGIServerException is deprecated and is replaced by socket.error

The undocumented django.core.servers.basehttp.WSGIServerException has been removed.
Use socket.error provided by the standard library instead. This change was also released in Django 1.5.5

To stay backward compatible we can fix this with something like:

try:
    from django.core.servers.basehttp import (WSGIServerException as wsgi_server_exc)
except ImportError:
     wsgi_server_exc = socket.error

@koterpillar
Copy link
Contributor

See #400 for a patch.

@aigarius
Copy link

2d4de1f fixed this in master branch, but there is no PyPi release with this fix.

@tiagoboldt
Copy link

What's missing to push this to PyPi? Can we help?

@gigimon
Copy link

gigimon commented May 16, 2014

From master works normal

@tiagoboldt
Copy link

@gigimon it is fixed in master. Pushing to PyPi to get it with pip is the only thing missing to mark the bug as closed.

@danni
Copy link
Collaborator

danni commented May 18, 2014

0.2.19 was released to pip.

@danni danni closed this as completed May 18, 2014
@tiagoboldt
Copy link

@danni just tried it and it is still failing with the same issue..

@leourbina
Copy link

This is still an issue for me as well. Any updates on this?

@MattFisher
Copy link

Fails for me too

1 similar comment
@mradochonski
Copy link

Fails for me too

@danni
Copy link
Collaborator

danni commented Jun 3, 2014

@gabrielfalcao any clues why master works but 0.2.19 doesn't?

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

10 participants