BUG: resource loading breaks in non-standard installations
See original GitHub issueFor resource loading, bokeh utilizes open()
calls on paths constructed from os.path.dirname(__file__)
; e.g.
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:
- Created 4 years ago
- Comments:8 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Oh, I forgot it was in stdlib. I will defer to you!
Absent any other reports I am going to go ahead and close this