Jump to content

Any help for this error __pack_import() takes at most 4 arguments (5 given)


Recommended Posts

0315 06:51:24877 :: Traceback (most recent call last):
 
0315 06:51:24878 ::   File "game.py", line 747, in OnChangePKMode
 
0315 06:51:24880 ::   File "interfaceModule.py", line 803, in OnChangePKMode
 
0315 06:51:24882 ::   File "uiCharacter.py", line 563, in RefreshAlignment
 
0315 06:51:24883 :: TypeError
0315 06:51:24883 :: : 
0315 06:51:24883 :: __pack_import() takes at most 4 arguments (5 given)
0315 06:51:24883 :: 
  • Love 1
Link to comment
Share on other sites

  • Premium

Open your system.py, then search:

def __pack_import(name,globals=None,locals=None,fromlist=None):
and write one more argument for this function, for example:

def __pack_import(name,globals=None,locals=None,fromlist=None, arg5 = None):
  • Love 8

The one and only UI programming guideline

Link to comment
Share on other sites

i change and ...

 

0315 07:18:25225 :: Traceback (most recent call last):
 
0315 07:18:25226 ::   File "game.py", line 747, in OnChangePKMode
 
0315 07:18:25228 ::   File "interfaceModule.py", line 803, in OnChangePKMode
 
0315 07:18:25231 ::   File "uiCharacter.py", line 579, in RefreshAlignment
 
0315 07:18:25233 ::   File "uiToolTip.py", line 156, in AlignHorizonalCenter
 
0315 07:18:25235 :: RuntimeError
0315 07:18:25235 :: : 
0315 07:18:25235 :: Failed to load image (filename: locale/de/ui/mapname/sd01.tga)
0315 07:18:25235 :: 
Link to comment
Share on other sites

  • 5 months later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.