Jump to content

Cython uiscript problem


Go to solution Solved by Wizz,

Recommended Posts

Hi. I tried 

but i have problem with uiscript

 

0318 15:06:00344 :: Failed to load script file : UIScript/PopupDialog.py
0318 15:06:00344 :: error  : [Errno 2] No such file or directory: 'UIScript/PopupDialog.py'
0318 15:06:00344 :: 
ui.py(line:3403) ui.PythonScriptLoader.LoadScriptFile (ui.c:80931)
system.py(line:204) system.execfile (system.c:4646)
system.py(line:187) system.__LoadTextFile__ (system.c:4286)
system.py(line:91) system.open (system.c:2884)

LoadScriptFile1 - <type 'exceptions.IOError'>:[Errno 2] No such file or directory: 'UIScript/PopupDialog.py'

I tried popupdialog.py PopupDialog.py etc and nothing change. Root works normal. 

  • Confused 1
Link to comment
Share on other sites

  • Solution

Search in ui.py

    def LoadScriptFile(self, window, FileName):

And replace whole function with:

 

    def LoadScriptFile(self, window, FileName):
        FileName = FileName.lower()
        import exception
        import exceptions
        import os
        import errno
        self.Clear()

 

Edited by Wizz
added a function.
  • Love 1
Link to comment
Share on other sites

  • 2 years later...

0305 10:18:00550 :: Failed to load script file : new_login/LoginWindow.py
0305 10:18:00551 :: 
ui.py(line:2781) LoadScriptFile
system.py(line:192) execfile
system.py(line:163) Run
new_login/LoginWindow.py(line:305) <module>

LoadScriptFile!!!!!!!!!!!!!! - <type 'exceptions.AttributeError'>:'module' object has no attribute 'SALVEAZA_CONT'

0305 10:18:00551 :: ============================================================================================================
0305 10:18:00551 :: Abort!!!!


0305 10:18:00553 :: 
introLogin.py(line:223) __LoadScript
ui.py(line:2798) LoadScriptFile
exception.py(line:36) Abort

LoginWindow.__LoadScript.LoadObject - <type 'exceptions.SystemExit'>:

0305 10:18:00553 :: ============================================================================================================
0305 10:18:00553 :: Abort!!!!

I can't figure out what's wrong pls help

Link to comment
Share on other sites

  • Contributor
On 3/5/2023 at 9:40 AM, mageth said:

0305 10:18:00550 :: Failed to load script file : new_login/LoginWindow.py
0305 10:18:00551 :: 
ui.py(line:2781) LoadScriptFile
system.py(line:192) execfile
system.py(line:163) Run
new_login/LoginWindow.py(line:305) <module>

LoadScriptFile!!!!!!!!!!!!!! - <type 'exceptions.AttributeError'>:'module' object has no attribute 'SALVEAZA_CONT'

0305 10:18:00551 :: ============================================================================================================
0305 10:18:00551 :: Abort!!!!


0305 10:18:00553 :: 
introLogin.py(line:223) __LoadScript
ui.py(line:2798) LoadScriptFile
exception.py(line:36) Abort

LoginWindow.__LoadScript.LoadObject - <type 'exceptions.SystemExit'>:

0305 10:18:00553 :: ============================================================================================================
0305 10:18:00553 :: Abort!!!!

I can't figure out what's wrong pls help

https://docs.python.org/3/tutorial/modules.html

https://bobbyhadz.com/blog/python-attributeerror-module-has-no-attribute

https://www.google.com/search?q=python+module+has+no+attribute

Link to comment
Share on other sites

On 3/18/2020 at 5:07 PM, Kori said:

No such file or directory: 'UIScript/PopupDialog.py'

You need more informations? 

Marty script reading all possible versions.. He has problem with ui.py.. There is no correct code for uiscript.. He can extract it from leaked Marty source or etc..  I got long time ago same problem..

Link to comment
Share on other sites

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.