Skip to content

Use unicode strings? #43

Description

@vihu

Tried to have a simple demo run with smiley and encountered the following issue, not sure if it's me or smiley.

Here's the traceback:

$ smiley run ./demo.py
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/local/lib/python2.7/dist-packages/smiley/local.py", line 44, in _process_data
    self._dispatch_one(the_db, next_data)
  File "/usr/local/lib/python2.7/dist-packages/smiley/local.py", line 57, in _dispatch_one
    the_db.cache_file_for_run(*data)
  File "/usr/local/lib/python2.7/dist-packages/smiley/db.py", line 303, in cache_file_for_run
    'body': body,
ProgrammingError: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions