Message objects do not support str() because they may contain non-ascii characters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-novaclient |
Expired
|
Undecided
|
Unassigned |
Bug Description
Many py27 gates failed with the following message: UnicodeError: Message objects do not support str() because they may contain non-ascii characters. Please use unicode() or translate() instead.
2015-09-11 20:15:40.679 | Traceback (most recent call last):
2015-09-11 20:15:40.679 | File "/home/
2015-09-11 20:15:40.679 | return func(*args, **keywargs)
2015-09-11 20:15:40.679 | File "/home/
2015-09-11 20:15:40.679 | nova = nova_client.
2015-09-11 20:15:40.679 | File "sahara/
2015-09-11 20:15:40.679 | endpoint_
2015-09-11 20:15:40.679 | File "/home/
2015-09-11 20:15:40.680 | _LW("'novaclien
2015-09-11 20:15:40.680 | File "/home/
2015-09-11 20:15:40.680 | file.write(
2015-09-11 20:15:40.680 | File "/home/
2015-09-11 20:15:40.680 | s = "%s:%s: %s: %s\n" % (filename, lineno, category.__name__, message)
2015-09-11 20:15:40.680 | File "/home/
2015-09-11 20:15:40.680 | raise UnicodeError(msg)
2015-09-11 20:15:40.680 | UnicodeError: Message objects do not support str() because they may contain non-ascii characters. Please use unicode() or translate() instead.
Root cause is this deprecation messages: https:/
https:/
Probably we shouldn't call warnings.warn() with translated messages.
Changed in python-novaclient: | |
importance: | Undecided → High |
status: | New → Confirmed |
Changed in python-novaclient: | |
assignee: | nobody → Ammar Raza (ammar-reza) |
Changed in python-novaclient: | |
status: | Confirmed → In Progress |
This bug has been open about 3 years without any activity.
And I'm not sure this bug can be reproduced with current master branch.
So I'm going to move it to "Opinion / Wishlist", which is an easily-obtainable queue of older requests that have come on.
This bug can be reopened (set back to "New") if someone can reproduce this bug on master branch or decides to work on this.