Ask Your Question
0

fractal application: unicode argument without an encoding

asked 2016-02-12 10:51:37 -0500

macleanal gravatar image

Hello,

When I attempt to generate fractal images with a deployment that includes the services instance, the faafo-api error log reports that a unicode argument is given without an encoding.

The images are generated fine with the controller-worker deployment.

This has occurred with both the programmatic way and with the Heat template.

2016-02-12 16:25:45.317 8214 ERROR faafo.api StatementError: (exceptions.TypeError) unicode argument without an encoding [SQL: u'UPDATE fractal SET checksum=%(checksum)s, duration=%(duration)s, size=%(size)s, image=%(image)s, generated_by=%(generated_by)s WHERE fractal.uuid = %(fractal_uuid)s'] [parameters: [{'duration': 3.7073659896850586, 'checksum': u'2492d42555f473fa56ad5bf1248cdad97e7423735c355cd857ad32325385949e', 'image': ...
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2016-07-11 13:28:00 -0500

I have the same problem :(

edit flag offensive delete link more
0

answered 2016-10-12 18:03:12 -0500

This is an issue with pymysql v 0.7, they made a change to throw an exception if you try to store unicode data in a binary column which the fractal image data is stored in a blob. One fix is to back pymysql to v 0.6.7 with the command "pip install -U PyMySQL==0.6.7" and then recycle faafo. I will try and see if I can find a better fix and update the faafo code.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-02-12 10:51:37 -0500

Seen: 5,654 times

Last updated: Feb 12 '16