ProgrammingError: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings

You must Login before you can answer or comment on any questions.

I've imported a mobile project, but can't run it neither on emulator, nor on the device. Here's the error:

[INFO] Copying CommonJS modules...
[INFO] Copying project resources..
[ERROR] Exception occured while building Android project:
[ERROR] Traceback (most recent call last):
[ERROR]   File "/home/gabin/.titanium/mobilesdk/linux/2.1.0.GA/android/builder.py", line 2212, in <module>
[ERROR]     s.build_and_run(True, avd_id, device_args=device_args)
[ERROR]   File "/home/gabin/.titanium/mobilesdk/linux/2.1.0.GA/android/builder.py", line 1903, in build_and_run
[ERROR]     self.copy_project_resources()
[ERROR]   File "/home/gabin/.titanium/mobilesdk/linux/2.1.0.GA/android/builder.py", line 685, in copy_project_resources
[ERROR]     self.project_deltas = self.project_deltafy.scan()
[ERROR]   File "/home/gabin/.titanium/mobilesdk/linux/2.1.0.GA/android/deltafy.py", line 163, in scan
[ERROR]     self.scan_path(self.dir, deltas)
[ERROR]   File "/home/gabin/.titanium/mobilesdk/linux/2.1.0.GA/android/deltafy.py", line 195, in scan_path
[ERROR]     self.scan_path(absolute_path, deltas)
[ERROR]   File "/home/gabin/.titanium/mobilesdk/linux/2.1.0.GA/android/deltafy.py", line 203, in scan_path
[ERROR]     file_delta = self.check_delta(absolute_path, path_stat)
[ERROR]   File "/home/gabin/.titanium/mobilesdk/linux/2.1.0.GA/android/deltafy.py", line 147, in check_delta
[ERROR]     timestamp = self.get_timestamp(path)
[ERROR]   File "/home/gabin/.titanium/mobilesdk/linux/2.1.0.GA/android/deltafy.py", line 116, in get_timestamp
[ERROR]     c.execute('select modified from timestamps where path = ?', (path,))
[ERROR] 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.
How to resolve it?

3 Answers

I had this problem. It happened because I included a PSD file in the project. Remove this files.

I seem the error was because off non-english symbols existed in the name of project. The solution was that I've created an empty project and copied all necessary source files to it.

Your Answer

Think you can help? Login to answer this question!