NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.35k stars 14.31k forks source link

gnomeExtensions.lunar-calendar: ImportError: lunarcal: could not load Lunar Calendar back-end: No JS module 'ChineseCalendar' found in search path #287274

Open UlyssesZh opened 9 months ago

UlyssesZh commented 9 months ago

Describe the bug

gnomeExtensions.lunar-calendar is a GNOME extension that require extra tweaking to work. Specifically, it needs installing JS modules from this repo.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Install gnomeExtensions.lunar-calendar and reload GNOME shell.
  2. Try to enable this GNOME extension and the error shows: ImportError: lunarcal: could not load Lunar Calendar back-end: No JS module 'ChineseCalendar' found in search path

Notify maintainers

@piegamesde

Metadata


Add a :+1: reaction to issues you find important.

piegamesde commented 9 months ago

You need to find out how/where exactly the extension expects that code and then add it in the install phase. Given that this library appears to put JavaScript into .local/share/ChineseCalendar, you will probably have to choose another location and patch the extension accordingly.

piegamesde commented 9 months ago

You need to find out how/where exactly the extension expects that code and then add it in the install phase. Given that this library appears to put JavaScript into .local/share/ChineseCalendar, you will probably have to choose another location and patch the extension accordingly.

xufromxu commented 5 months ago

Have you solve this problem? I got the exact problem... edit: I sovle it by run bash install.sh in this repo (but it seems that there is something wrong with my system input and night ligth, system bug reported )