Ren'Py I'm sorry, but an uncaught exception occurred. How can i solve this problem i never experienced it before

Louzen

Member
Apr 24, 2021
155
98
While running game code:
File "game/Translator3000Data/ingame_gui/imports.rpy", line 7, in <module>
NameError: name 'unicode' is not defined

-- Full Traceback ------------------------------------------------------------

Full traceback:
File "C:\Users\LENOVO\Desktop\motherless_second_season-0.15.3.1-pc\renpy\bootstrap.py", line 274, in bootstrap
renpy.main.main()
File "C:\Users\LENOVO\Desktop\motherless_second_season-0.15.3.1-pc\renpy\main.py", line 558, in main
renpy.game.context().run(node)
File "Translator3000GUIScripts/imports.rpyc", line 2, in script
File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python3.9/site-packages/future/utils/__init__.py", line 441, in raise_
File "Translator3000GUIScripts/imports.rpyc", line 2, in script
File "C:\Users\LENOVO\Desktop\motherless_second_season-0.15.3.1-pc\renpy\ast.py", line 1131, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "C:\Users\LENOVO\Desktop\motherless_second_season-0.15.3.1-pc\renpy\python.py", line 1049, in py_exec_bytecode
exec(bytecode, globals, locals)
File "game/Translator3000Data/ingame_gui/imports.rpy", line 7, in <module>
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
File "<frozen importlib._bootstrap>", line 627, in _load_backward_compatible
File "C:\Users\LENOVO\Desktop\motherless_second_season-0.15.3.1-pc\renpy\loader.py", line 1007, in load_module
exec(code, mod.__dict__) # type: ignore
File "_translator3000/__init__.py", line 21, in <module>
File "_translator3000/utils.py", line 86, in remove_dir
NameError: name 'unicode' is not defined

Windows-10-10.0.19044 AMD64
Ren'Py 8.0.1.22070801
Motherless 0.15.3.1
Wed Jul 20 22:01:30 2022
 

rayminator

Engaged Member
Respected User
Sep 26, 2018
3,130
3,194
it has something to do with a characters text that renpy can't read properly
what's on line 7 in imports.rpy?
 

Meaning Less

Engaged Member
Sep 13, 2016
3,539
7,178
Translator3000 that you are using is probably outdated, unicode is not used on python 3 which seems to be the version the game is running if it is not defined.
 
  • Like
Reactions: anne O'nymous

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Donor
Respected User
Jun 10, 2017
10,964
16,210
it has something to do with a characters text that renpy can't read properly
what's on line 7 in imports.rpy?
I took a look at translator3000, it happen in an isinstance. Like Meaning Less said, it seem to be a compatibility problem between Python 2.x and Python 3.x.
The whole tool also seem to be way too heavier and complicated that it should be, therefore I'm not really sure that it can easily be built in a way that would make it compatible for both.