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

unicode() method does not work in Python 3.3 #51

Open
linkmic opened this issue Dec 17, 2014 · 4 comments
Open

unicode() method does not work in Python 3.3 #51

linkmic opened this issue Dec 17, 2014 · 4 comments

Comments

@linkmic
Copy link

linkmic commented Dec 17, 2014

Hi,

I recently submitted a fix for django-haystack so that UUID pk fields would work properly.
https://github.com/toastdriven/django-haystack/pull/1115

However, I notice that the Haystack tests for Python 3.3 fail because of:
(From https://travis-ci.org/toastdriven/django-haystack/jobs/44221681)

...
File "/home/travis/build/toastdriven/django-haystack/django_uuidfield-0.5.0-py3.3.egg/uuidfield/fields.py", line 26, in unicode
return unicode(str(self))
nose.proxy.NameError: Problem installing fixture '/home/travis/build/toastdriven/django-haystack/test_haystack/core/fixtures/initial_data.json': global name 'unicode' is not defined
...

In the unicode method for the field, a simple check of whether this is Python 2 or 3 might be the way to go.

Thanks,
/mike

@linkmic
Copy link
Author

linkmic commented Dec 17, 2014

I just noticed this commit/merge which I think would fix this problem.
ec4f97f

Is a new release scheduled?

@edersonbadeca
Copy link

actually this happens. we needed to add a patch to solve, because we are using in production.
Is there any date for new release?

@xavfernandez
Copy link

A release with python 3 support would indeed be nice :)

@hoIIer
Copy link

hoIIer commented Mar 29, 2015

just ran into this issue too, any news?

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

4 participants