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.

BUG: resource loading breaks in non-standard installations

See original GitHub issue

For resource loading, bokeh utilizes open() calls on paths constructed from os.path.dirname(__file__); e.g.

https://github.com/bokeh/bokeh/blob/9f510bc7cc2c0fb283bf80436d03b3cac49f22c8/bokeh/resources.py#L199-L204

https://github.com/bokeh/bokeh/blob/9f510bc7cc2c0fb283bf80436d03b3cac49f22c8/bokeh/util/paths.py#L33

This causes errors with some installation methods where in-package paths do not map directly onto filesystem paths; see https://stackoverflow.com/a/20885799 for some general discussion of loading data files within packages.

The solution would be to load resources via pkgutil.get_data or a similarly general mechanism.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
bryevdvcommented, Jun 14, 2019

Oh, I forgot it was in stdlib. I will defer to you!

0reactions
bryevdvcommented, Feb 7, 2020

Absent any other reports I am going to go ahead and close this

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bug listing with status RESOLVED with resolution OBSOLETE ...
Bug:1523 - "[IDEA] Offload work by distributing trivial ebuild maintenance to users, introduce a simple stability voting system and have a core team...
Read more >
Manual:Common errors and symptoms - MediaWiki
MediaWiki Errors. All pages have no content, but when editing a page the wiki text is there. Optionally with those error messages:
Read more >
VAAPI hardware acceleration is broken: vaInitialize failed with ...
Issue behavior. Describe the current behavior. Video hardware acceleration is broken on my laptop with both the Intel HD Graphics as well as...
Read more >
Common problems and solutions—ArcGIS Server
This topic lists questions or issues that you might encounter when working with ArcGIS Server and suggests possible solutions. If you don't find...
Read more >
Reference table for all security alerts in Microsoft Defender for ...
This was detected by analyzing Azure Resource Manager operations in ... has been associated with the installation of malware in the past.
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