question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Theme path has to be hardcoded

See original GitHub issue

Bug Report

Description

Affected module: core program Version used: 2.1.1

bumblebee-status crashes with theme not found :

Traceback (most recent call last):
  File "/usr/bin/bumblebee-status", line 18, in <module>
    import core.output
  File "/usr/lib64/python3.9/site-packages/bumblebee_status/core/output.py", line 134, in <module>
    class i3(object):
  File "/usr/lib64/python3.9/site-packages/bumblebee_status/core/output.py", line 135, in i3
    def __init__(self, theme=core.theme.Theme(), config=core.config.Config([])):
  File "/usr/lib64/python3.9/site-packages/bumblebee_status/core/theme.py", line 54, in __init__
    self.__data = raw_data if raw_data else self.load(name)
  File "/usr/lib64/python3.9/site-packages/bumblebee_status/core/theme.py", line 80, in load
    raise RuntimeError("unable to find theme {}".format(name))
RuntimeError: unable to find theme default

How to reproduce

Packaging for slackware using

python3 setup.py install --root=$PKG

where evrything installs in tmp directory in $PKG/usr/{bin,doc,lib64,share} And then

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

Fix for me is to code the full path for themes in /usr/lib64/python3.9/site-packages/bumblebee_status/core/theme.py to /usr/share/bumblebee-status/themes

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Tonus1commented, Dec 20, 2020

Thank you, it works as expected ! For know I’ve add the commit as a patch till next release.

Slackbuilds scripts tend to be very conservative and keep things as vanilla as possible, so no worry. I’ll let you know when it will be avaible at slackbuilds.org.

1reaction
Tonus1commented, Dec 20, 2020

Thank you for your blazzing fast answer ! I’ll check that in a few hours !

I will then submit the SlackBuild to Slackbuilds.org 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

PowerPoint: applying built-in theme: path has to be hard-coded ...
I see currently in the Themes section 30 themes, but in template files folder there is only 8 thmx files. Why? I find...
Read more >
Hardcoded path to theme images [#823986] | Drupal.org
I find a hardcoded path in page.tpl.php and node.tpl.php It should be changed like below: src="/images/PostHeaderIcon.png"> to work correct ...
Read more >
9.0.2 Copied theme has hard-coded paths back to Sample theme
Copying a theme still leaves all elements in the copy pointing back to the sample theme. Assume you copy the Sample theme to...
Read more >
46988 (Theme dir hardcode) - WordPress Trac
This is a problem when a user is using a custom theme directory and has deleted the themes directory in the content folder....
Read more >
Theme File Path hardcoded in DB : r/Wordpress - Reddit
Yes, you'll need to find and replace the old path with the new path. It's annoying when themes/plugins do this, especially since there's...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found