Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Launcher breaking bug (TypeError, main_screen.py) #329

Open
shir0tetsuo opened this issue May 24, 2020 · 1 comment
Open

Launcher breaking bug (TypeError, main_screen.py) #329

shir0tetsuo opened this issue May 24, 2020 · 1 comment

Comments

@shir0tetsuo
Copy link

from /tmp/x.log:

Traceback (most recent call last):
  File "run.py", line 672, in <module>
    big_loop(config.GlobalCanvas)
  File "run.py", line 603, in big_loop
    main_screen.ReadTheDirIntoPages("/home/cpi/apps/Menu",1,main_screen._Pages[ len(main_screen._Pages) -1])
  File "/home/cpi/launcher/sys.py/UI/main_screen.py", line 571, in ReadTheDirIntoPages
    self.ReadTheDirIntoPages(_dir+"/"+i,pglevel+1,iconitem._LinkPage)
  File "/home/cpi/launcher/sys.py/UI/main_screen.py", line 571, in ReadTheDirIntoPages
    self.ReadTheDirIntoPages(_dir+"/"+i,pglevel+1,iconitem._LinkPage)
  File "/home/cpi/launcher/sys.py/UI/main_screen.py", line 583, in ReadTheDirIntoPages
    if FileExists( MySkinManager.GiveIcon( _dir+"/"+ReplaceSuffix(i2,"png"))):
TypeError: cannot concatenate 'str' and 'NoneType' objects

Please advise on a solution, after the first Loading and a few seconds in black screen, the launcher won't boot up and it gets stuck on Loading endlessly. After some configuration I've been frustratingly met with this error the past 2 days and trying to figure out why.

@cuu
Copy link
Contributor

cuu commented Jun 30, 2020

sorry for late reply

_dir+"/"+ReplaceSuffix(i2,"png")

I think the i2 does not have a filetype suffix included, like .sh

that is why it is a NoneType because ReplaceSuffix return None

I guess the problem is fixed now , right ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants