Reputation: 1
ok, I'm translating a game, a visual novel called "katawa shoujo", to be precise the beta of this game which is not in Spanish I got the beta files and moved them to ren'py (where it was created) but when running it inside ren'py I get this error:
File "C:\Users\Anthony\Desktop/game/ui_ingamemenu.rpy", line 1, in script
File "C:\Users\Anthony\Desktop/game/ui_ingamemenu.rpy", line 1, in script
File "C:\Users\Anthony\Desktop/game/ui_ingamemenu.rpy", line 2, in <module>
ImportError: No module named sets
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "renpy/bootstrap.py", line 326, in bootstrap
renpy.main.main()
File "renpy/main.py", line 515, in main
renpy.game.context().run(node)
File "C:\Users\Anthony\Desktop/game/ui_ingamemenu.rpy", line 1, in script
File "C:\Users\Anthony\Desktop/game/ui_ingamemenu.rpy", line 1, in script
File "renpy/ast.py", line 923, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "renpy/python.py", line 2235, in py_exec_bytecode
exec(bytecode, globals, locals)
File "C:\Users\Anthony\Desktop/game/ui_ingamemenu.rpy", line 2, in <module>
ImportError: No module named sets
Windows-10-10.0.19041
Ren'Py 7.4.8.1895
Sat Sep 25 20:22:04 2021"
I suppose that the error is in the files of the program by the address of folders that it marks:
```While running game code:
File "C:\Users\Anthony\Desktop/game/ui_ingamemenu.rpy", line 1, in script"
but it marks that the user is "anthony" but my user is "A" ... I am very lazy with names xd
I don't have much experience so I would like you to help me, thank you
by the way, I use Atom to edit the scripts
If you need the files, I leave a download link for these:
https://www.mediafire.com/file/10ld61gyzipn0ar/Katawa_Shoujo_Beta_%2528Proyecto_de_traduccion%2529.rar/file?fbclid=IwAR14jNyYJbyyhaS6S2XEU2re5zD6Af2plIyhV40F9hH7ammfE_qaRIfJTVs
Upvotes: 0
Views: 1658
Reputation: 66
A few things could cause this:
There could be something wrong with the name of one of your folders. Maybe a special symbol or character in the name of the folders?
Older versions of Python demanded you to import a library name sets, but this is now included in the standard library and can generate that error. Browse the code and look for something like: from sets import Set as set
. If you find, delete or comment out this line. You can use ctrl + f to open the search bar.
Upvotes: 0
Reputation: 114
I would enter the file it is mentioning and remove the line importing set. I'm guessing this is a very old beta, right? In updated versions of Python you no longer need to import the "set" library, since it's automatically included (can be seen here). If you don't have prior programming experience: Open the file named "ui_ingamemenu.rpy". On line 1 there should be a line that says "import sets". Just delete that. However, it's hard to know the exact issue without knowing the files you're working with.
Renpy doesn't display errors all at once, though; it stops at the first one it detects. So once you fix this, more may appear.
Buena suerte :)
Upvotes: 0