Can anyone help me fix this?

iDAiSUKiU

New Member
Jul 3, 2021
5
2
Code:
I'm sorry, but an uncaught exception occurred.
While running game code:
  File "renpy/common/00action_file.rpy", line 382, in __call__
AttributeError: 'module' object has no attribute 'HIGHEST_PROTOCOL'
-- Full Traceback ------------------------------------------------------------
Full traceback:
  File "_layout/screen_load_save.rpymc", line 35, in script
  File "renpy/ast.py", line 923, in execute
  File "renpy/python.py", line 2235, in py_exec_bytecode
  File "renpy/common/_layout/screen_load_save.rpym", line 35, in <module>
  File "renpy/ui.py", line 298, in interact
  File "renpy/display\core.py", line 3276, in interact
  File "renpy/display\core.py", line 4110, in interact_core
  File "renpy/display\layout.py", line 1090, in event
  File "renpy/display\layout.py", line 1090, in event
  File "renpy/display\layout.py", line 1090, in event
  File "renpy/display\screen.py", line 726, in event
  File "renpy/display\layout.py", line 1090, in event
  File "renpy/display\layout.py", line 1297, in event
  File "renpy/display\layout.py", line 273, in event
  File "renpy/display\layout.py", line 1090, in event
  File "renpy/display\layout.py", line 1297, in event
  File "renpy/display\layout.py", line 273, in event
  File "renpy/display\layout.py", line 1090, in event
  File "renpy/display\layout.py", line 273, in event
  File "renpy/display\behavior.py", line 979, in event
  File "renpy/display\behavior.py", line 914, in handle_click
  File "renpy/display\behavior.py", line 329, in run
  File "renpy/common/00action_file.rpy", line 382, in __call__
  File "renpy/loadsave.py", line 415, in save
  File "renpy/loadsave.py", line 401, in save
  File "renpy/loadsave.py", line 49, in dump
AttributeError: 'module' object has no attribute 'HIGHEST_PROTOCOL'
 

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Donor
Respected User
Jun 10, 2017
10,963
16,202
Code:
I'm sorry, but an uncaught exception occurred.
While running game code:
  File "renpy/common/00action_file.rpy", line 382, in __call__
AttributeError: 'module' object has no attribute 'HIGHEST_PROTOCOL'
Wow, how this error can even happen...

The "module" is pickle/cPickle, and it have a "HIGHEST_PROTOCOL" attribute since almost its first version, decades ago. Plus, this attribute appear in a line that firstly try to access the "dump" attribute in the same module, what mean that it's not just a game that redefined a variable it shouldn't have, nor just a corrupted library.

What game give you this error, and is there other people on the game thread talking about this error ?
 

iDAiSUKiU

New Member
Jul 3, 2021
5
2
Wow, how this error can even happen...

The "module" is pickle/cPickle, and it have a "HIGHEST_PROTOCOL" attribute since almost its first version, decades ago. Plus, this attribute appear in a line that firstly try to access the "dump" attribute in the same module, what mean that it's not just a game that redefined a variable it shouldn't have, nor just a corrupted library.

What game give you this error, and is there other people on the game thread talking about this error ?
The game was called "The Thickening". I was playing on Android with the joi app. Everytime i saved it would happen, also don't know if this has happened to anyone else.
 

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Donor
Respected User
Jun 10, 2017
10,963
16,202
I was playing on Android with the joi app.
My first guess would be that Joiplay intercept imports for security reason ; in this case, replacing pickle/cPickle by a safer version.
But I know peoples who have no problems playing Ren'Py games with it. This while the error you get prevent Ren'Py to write most of its files ; the (manual and automatic) save files, but also the persistent file, and rpyc files when you add a mod. Therefore they would all have this error.
 

MrVlako

New Member
Jun 11, 2022
1
0
The game was called "The Thickening". I was playing on Android with the joi app. Everytime i saved it would happen, also don't know if this has happened to anyone else.

Обнови