-
Notifications
You must be signed in to change notification settings - Fork 667
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
TypeError: must be string without null bytes, not str #1505
Comments
Well I did some workaround in log.py:
|
@Dreamtale Рита Тайнакова, that error comes from here:
Here are some similar issues:
You might get more useful information in your workaround with code like: try:
self.real_file.write(es)
self.real_file.flush()
except:
self.real_file.write("WARNING: ERROR WRITING TO FILE!\n{0}".format(es.replace('\0', '')))
self.real_file.flush() |
This looks like it was being caused in the android code, so I fixed it there. It still is a bad idea to try and print null bytes to standard out, but now the android support will print them as \0 rather than crashing. |
This needs fixing cause i can't find a Solution to this Line in the Code. If One of This is the Code. |
`Sun Jul 8 17:33:40 2018
Unknown platform.
Ren'Py 7.0.0.196
Bootstrap to the start of init.init took 0.00s
Bootstrap to the start of init.init took 0.00s
Manufacturer samsung model SM-N920C
Screen diagonal is 5.24501707162 inches.
Early init took 0.11s
Early init took 0.11s
Loader init took 0.05s
Loader init took 0.05s
Loading error handling took 2.74s
Loading error handling took 2.74s
Loading script took 30.76s
Loading script took 30.76s
Saving to /storage/emulated/0/Android/data/su.sovietgames.everlastingsummer/files/saves
Loading save slot metadata. took 0.01s
Loading save slot metadata. took 0.01s
Loading persistent took 0.00s
Loading persistent took 0.00s
Importing _renpysteam: ImportError('No module named _renpysteam',)
Set script version to: (7, 0, 0)
Traceback (most recent call last):
File "main.py", line 198, in
main()
File "main.py", line 195, in main
renpy.bootstrap.bootstrap(renpy_base)
File "/data/user/0/su.sovietgames.everlastingsummer/files/renpy/bootstrap.py", line 333, in bootstrap
renpy.error.report_exception(e)
File "/data/user/0/su.sovietgames.everlastingsummer/files/renpy/error.py", line 211, in report_exception
sys.stdout.write(full.getvalue())
File "/data/user/0/su.sovietgames.everlastingsummer/files/renpy/log.py", line 227, in write
self.real_file.write(es) #
File "", line 19, in write
TypeError: must be string without null bytes, not str
`
The text was updated successfully, but these errors were encountered: