Jump to content
  • Register Now

    Sign up and take advantage of the features of our community! Some forums are only accessible to our members!

  • 0

Problem with pack_import


Zoom

Question

Hi,

i create new character, loading is starting and when loading is done, my client is crushing and i get this sysser:

 

uiSelectItem.py(line:23) LoadWindow
ui.py(line:3412) LoadScriptFile

ItemSelectWindow.LoadDialog.LoadObject - <type 'exceptions.TypeError'>:__pack_import() takes at most 4 arguments (5 given)

 

I don't know what's going on, i didn't made any specifics changes in my root's.

 

I tryed add new argument to def _pack_import but this didn't work, after this change, i get another weird sysser.

 

Someone know, what's maybe wrong?

 

Best regards.

 

Link to post

12 answers to this question

Recommended Posts

  • 0
10 hours ago, V0lvox said:

Show us this:

uiSelectItem.py(line:23)

My uiselectitem and selectitemwindow is clear.

 

Line 23: "PythonScriptLoader.LoadScriptFile(self, "UIScript/selectitemwindow.py")"

 

I maked some changes ain exception.py file in Abort def and my sysser showing more information about problem:

 

[code]

uiSelectItem.py(line:24) LoadWindow
ui.py(line:3287) LoadScriptFile

ItemSelectWindow.LoadDialog.LoadObject - <type 'exceptions.TypeError'>:__pack_import() takes at most 4 arguments (5 given)

0913 23:18:39676 :: ============================================================================================================
0913 23:18:39679 :: Abort!!!!


0913 23:18:39683 :: 
uiSelectItem.py(line:31) LoadWindow
ui.py(line:3246) GetChild

ItemSelectWindow.LoadDialog.BindObject - <type 'exceptions.KeyError'>:'board'

0913 23:18:39686 :: ============================================================================================================
0913 23:18:39690 :: Abort!!!!


0913 23:18:39691 :: Traceback (most recent call last):

0913 23:18:39692 ::   File "networkModule.py", line 239, in SetGamePhase

0913 23:18:39694 ::   File "game.py", line 103, in __init__

0913 23:18:39696 ::   File "interfaceModule.py", line 320, in MakeInterface

0913 23:18:39698 ::   File "interfaceModule.py", line 296, in __MakeItemSelectWindow

0913 23:18:39701 ::   File "uiSelectItem.py", line 16, in __init__

0913 23:18:39707 ::   File "uiSelectItem.py", line 39, in LoadWindow

0913 23:18:39709 :: AttributeError
0913 23:18:39710 :: : 
0913 23:18:39711 :: 'SelectItemWindow' object has no attribute 'titleBar'
0913 23:18:39712 :: 

[/code]

 

I didn't changes any code in ui.py about titlebar.

 

 

Link to post
  • 0

Because of this
 

uiSelectItem.py(line:24) LoadWindow
ui.py(line:3287) LoadScriptFile

ItemSelectWindow.LoadDialog.LoadObject - <type 'exceptions.TypeError'>:__pack_import() takes at most 4 arguments (5 given)

 

He can`t load selectitemwindow.py.

So he can`t bind objects.

So show us your "def LoadScriptFile(self, window, FileName):" of ui.py
 

Link to post
  • 0
4 hours ago, V0lvox said:

Because of this
 

uiSelectItem.py(line:24) LoadWindow
ui.py(line:3287) LoadScriptFile

ItemSelectWindow.LoadDialog.LoadObject - <type 'exceptions.TypeError'>:__pack_import() takes at most 4 arguments (5 given)

 

He can`t load selectitemwindow.py.

So he can`t bind objects.

So show us your "def LoadScriptFile(self, window, FileName):" of ui.py
 

https://pastebin.com/7CwkbczM

Link to post
  • 0
2 hours ago, MarkUltra said:

So, have you solved this? I have the same problem, can you help me?

I had little mistake in my system so, i don't know what's wrong in your code but you can send me message, maybe i can help you :)

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • 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.