lookup_translate: AttributeError: 'unicode' object has no attribute 'block'

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
Eliont
Regular
Posts: 111
Joined: Thu Aug 06, 2009 6:51 am
Completed: Begin of Evangelion, SAO - Smile of the black cat, SAO - Project "Ceramic Heart", Time for Dragons
Location: Russia
Contact:

lookup_translate: AttributeError: 'unicode' object has no attribute 'block'

#1 Post by Eliont »

Hello and good time of day.

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
AttributeError: 'unicode' object has no attribute 'block'

\renpy\ast.py", line 2159, in execute
\renpy\ast.py", line 2144, in lookup
\translation\__init__.py", line 190, in lookup_translate
AttributeError: 'unicode' object has no attribute 'block'

Ren'Py 7.0.0.196
It's android device.
What to do if such type errors appear?

Thanks in advance.

User avatar
XxrenxX
Veteran
Posts: 267
Joined: Tue Oct 02, 2012 2:40 am
Projects: Chasing
Deviantart: bara-ettie
Location: Canada
Contact:

Re: lookup_translate: AttributeError: 'unicode' object has no attribute 'block'

#2 Post by XxrenxX »

Could you post the line or string of code that the 'unicode' is part of?

Eliont
Regular
Posts: 111
Joined: Thu Aug 06, 2009 6:51 am
Completed: Begin of Evangelion, SAO - Smile of the black cat, SAO - Project "Ceramic Heart", Time for Dragons
Location: Russia
Contact:

Re: lookup_translate: AttributeError: 'unicode' object has no attribute 'block'

#3 Post by Eliont »

Code: Select all

em "If the imaginary enemy is not gay, then he'll be seduced."

User avatar
isobellesophia
Miko-Class Veteran
Posts: 979
Joined: Mon Jan 07, 2019 2:55 am
Completed: None
Projects: Maddox and Friends! (AI Teacher friend), Friendly Universities! (Soon)
Organization: Friendly Teachers series
Deviantart: SophBelle
itch: Child Creation
Location: Philippines, Mindanao
Contact:

Re: lookup_translate: AttributeError: 'unicode' object has no attribute 'block'

#4 Post by isobellesophia »

Looks like this code is not enough.. can you show at least the full code? It says about block.
I am a friendly user, please respect and have a good day.


Image

Image


Eliont
Regular
Posts: 111
Joined: Thu Aug 06, 2009 6:51 am
Completed: Begin of Evangelion, SAO - Smile of the black cat, SAO - Project "Ceramic Heart", Time for Dragons
Location: Russia
Contact:

Re: lookup_translate: AttributeError: 'unicode' object has no attribute 'block'

#5 Post by Eliont »

I can't provide full game code. And can't replicate bug on my own machine.
Just may be someone encountered same bug as here - https://f95zone.to/threads/four-element ... st-1359092

Post Reply

Who is online

Users browsing this forum: Google [Bot], MisterPinetree, Semrush [Bot]