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

No Module Named Error #89

Closed
sachinsenal0x64 opened this issue Dec 4, 2023 · 5 comments
Closed

No Module Named Error #89

sachinsenal0x64 opened this issue Dec 4, 2023 · 5 comments

Comments

@sachinsenal0x64
Copy link

sachinsenal0x64 commented Dec 4, 2023

image

image

I have installed the plugin, but it raises this error. Any solutions?

@mikesmithgh
Copy link
Owner

Hi @sachinsenal0x64, what is the action_alias in your kitty.conf? It should look something like this

action_alias kitty_scrollback_nvim kitten /Users/mike/gitrepos/kitty-scrollback.nvim/python/kitty_scrollback_nvim.py

My guess is that may be misconfigured.

If that isn't it, could you provide the output of :KittyScrollbackCheckHealth ?

@sachinsenal0x64
Copy link
Author

sachinsenal0x64 commented Dec 4, 2023

Hey thank you for quick reply

Config file

image

image

Output

`

kitty-scrollback: require("kitty-scrollback.health").check()

kitty-scrollback: Neovim version 0.9+ ~

  • OK NVIM 0.9.4
  • If you are using a version of nvim that is less than 0.10, then formatting on this checkhealth may be malformed

kitty-scrollback: kitty-scrollback.nvim version ~

  • OK |___/| kitty-scrollback.nvim @ 4cf3ca1
    =) ^Y^ (=
    \ ^ / If you have any issues or questions using kitty-scrollback.nvim then
    )=*=( please create an issue at
    / \ https://github.com/mikesmithgh/kitty-scrollback.nvim/issues and
    | | provide the KittyScrollbackCheckHealth report.
    /| | | |\
    | | ||/
    /
    // ___/ Bonus points for cat memes
    _)

kitty-scrollback: Kitty remote control ~

  • OK kitty @ ls exited with code 0

kitty-scrollback: Kitty data ~

  • OK Kitty data available

    lua
    {
    columns = 89,
    cursor_x = 1,
    cursor_y = 39,
    kitty_config_dir = "/home/pc/.config/kitty",
    kitty_opts = {
    allow_remote_control = "yes",
    listen_on = "unix:/tmp/kitty",
    scrollback_fill_enlarged_window = false,
    scrollback_lines = 2000,
    scrollback_pager = { "less", "--chop-long-lines", "--RAW-CONTROL-CHARS", "+INPUT_LINE_NUMBER" },
    scrollback_pager_history_size = 0,
    shell_integration = { "enabled" }
    },
    kitty_scrollback_config = "ksb_builtin_checkhealth",
    kitty_version = { 0, 31, 0 },
    ksb_dir = "/home/pc/.local/share/lunarvim/site/pack/lazy/opt/kitty-scrollback.nvim",
    lines = 44,
    scrolled_by = 0,
    window_id = 1,
    window_title = "vim +'KittyScrollbackCheckHealth' > health.txt"
    }

kitty-scrollback: Kitty version 0.29+ ~

  • OK kitty 0.31.0

kitty-scrollback: clipboard ~

  • OK Clipboard tool found: xclip

kitty-scrollback: sed ~

  • OK sed -E -e s/$/�[0m/g -e s/�\[\?25.�\[.*;.*H�\[.*//g exited with code 0 and stdout expected
    sed: /sbin/sed

kitty-scrollback: Kitty debug config ~

  • OK kitty 0.31.0 created by Kovid Goyal
    Linux archlinux 6.6.3-arch1-1 feat: add support for baleia.nvim #1 SMP PREEMPT_DYNAMIC Wed, 29 Nov 2023 00:37:40 +0000 x86_64
    EndeavourOS Linux 6.6.3-arch1-1 (/dev/tty)

    DISTRIB_ID="EndeavourOS"
    DISTRIB_RELEASE="rolling"
    DISTRIB_DESCRIPTION="EndeavourOS Linux"
    DISTRIB_CODENAME="rolling"
    Running under: X11Frozen: False
    Paths: kitty: /usr/bin/kitty
    base dir: /usr/lib/kitty
    extensions dir: /usr/lib/kitty/kitty
    system shell: /bin/bash
    Loaded config files:
    /home/pc/.config/kitty/kitty.conf

    Config options different from defaults:
    allow_hyperlinks 0
    allow_remote_control yes
    background_opacity 0.7
    copy_on_select clipboard
    detect_urls False
    dynamic_background_opacity True
    font_family JetBrainsMonoNL NF Medium
    font_size 12.0
    listen_on unix:/tmp/kitty
    window_padding_width FloatEdges(left=12.0, top=12.0, right=12.0, bottom=12.0)
    Added mouse actions:
    right click grabbed → paste_from_clipboard
    right click ungrabbed → paste_from_clipboard
    Changed mouse actions:
    ctrl+shift+right press ungrabbed → combine : mouse_select_command_output : kitty_scrollback_nvim --config ksb_builtin_last_visited_cmd_output
    Changed shortcuts:
    kitty_mod+g → kitty_scrollback_nvim --config ksb_builtin_last_cmd_output
    kitty_mod+h → kitty_scrollback_nvim
    Colors:
    active_border_color #cecac7
    active_tab_background #cecac7
    active_tab_foreground #0d0c0c
    background #0d0c0c
    bell_border_color #635e5c
    color0 #0d0c0c
    color1 #635e5c
    color10 #736d6a
    color11 #837c78
    color12 #89827d
    color13 #817f81
    color14 #948d89
    color15 #cecac7
    color2 #736d6a
    color3 #837c78
    color4 #89827d
    color5 #817f81
    color6 #948d89
    color7 #cecac7
    color8 #908d8b
    color9 #635e5c
    cursor #cecac7
    foreground #cecac7
    inactive_border_color #0d0c0c
    inactive_tab_background #0d0c0c
    inactive_tab_foreground #cecac7

    Important environment variables seen by the kitty process:
    PATH /home/pc/.cargo/bin:/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
    LANG en_GB.UTF-8
    EDITOR nano
    SHELL /bin/bash
    DISPLAY :0
    USER pc
    XDG_SEAT seat0
    XDG_SESSION_DESKTOP qtile
    XDG_SESSION_TYPE x11
    XDG_SESSION_CLASS user
    XDG_VTNR 2
    XDG_SESSION_ID 1
    XDG_RUNTIME_DIR /run/user/1000

==============================================================================
kitty-scrollback: require("kitty-scrollback.health").check()

kitty-scrollback: Neovim version 0.9+ ~

  • OK NVIM 0.9.4
  • If you are using a version of nvim that is less than 0.10, then formatting on this checkhealth may be malformed

kitty-scrollback: kitty-scrollback.nvim version ~

  • OK |___/| kitty-scrollback.nvim @ 4cf3ca1
    =) ^Y^ (=
    \ ^ / If you have any issues or questions using kitty-scrollback.nvim then
    )=*=( please create an issue at
    / \ https://github.com/mikesmithgh/kitty-scrollback.nvim/issues and
    | | provide the KittyScrollbackCheckHealth report.
    /| | | |\
    | | ||/
    /
    // ___/ Bonus points for cat memes
    _)

kitty-scrollback: Kitty remote control ~

  • OK kitty @ ls exited with code 0

kitty-scrollback: Kitty data ~

  • OK Kitty data available

    lua
    {
    columns = 89,
    cursor_x = 1,
    cursor_y = 39,
    kitty_config_dir = "/home/pc/.config/kitty",
    kitty_opts = {
    allow_remote_control = "yes",
    listen_on = "unix:/tmp/kitty",
    scrollback_fill_enlarged_window = false,
    scrollback_lines = 2000,
    scrollback_pager = { "less", "--chop-long-lines", "--RAW-CONTROL-CHARS", "+INPUT_LINE_NUMBER" },
    scrollback_pager_history_size = 0,
    shell_integration = { "enabled" }
    },
    kitty_scrollback_config = "ksb_builtin_checkhealth",
    kitty_version = { 0, 31, 0 },
    ksb_dir = "/home/pc/.local/share/lunarvim/site/pack/lazy/opt/kitty-scrollback.nvim",
    lines = 44,
    scrolled_by = 0,
    window_id = 1,
    window_title = "vim +'KittyScrollbackCheckHealth' > health.txt"
    }

kitty-scrollback: Kitty version 0.29+ ~

  • OK kitty 0.31.0

kitty-scrollback: clipboard ~

  • OK Clipboard tool found: xclip

kitty-scrollback: sed ~

  • OK sed -E -e s/$/�[0m/g -e s/�\[\?25.�\[.*;.*H�\[.*//g exited with code 0 and stdout expected
    sed: /sbin/sed

kitty-scrollback: Kitty debug config ~

  • OK kitty 0.31.0 created by Kovid Goyal
    Linux archlinux 6.6.3-arch1-1 feat: add support for baleia.nvim #1 SMP PREEMPT_DYNAMIC Wed, 29 Nov 2023 00:37:40 +0000 x86_64
    EndeavourOS Linux 6.6.3-arch1-1 (/dev/tty)

    DISTRIB_ID="EndeavourOS"
    DISTRIB_RELEASE="rolling"
    DISTRIB_DESCRIPTION="EndeavourOS Linux"
    DISTRIB_CODENAME="rolling"
    Running under: X11Frozen: False
    Paths: kitty: /usr/bin/kitty
    base dir: /usr/lib/kitty
    extensions dir: /usr/lib/kitty/kitty
    system shell: /bin/bash
    Loaded config files:
    /home/pc/.config/kitty/kitty.conf

    Config options different from defaults:
    allow_hyperlinks 0
    allow_remote_control yes
    background_opacity 0.7
    copy_on_select clipboard
    detect_urls False
    dynamic_background_opacity True
    font_family JetBrainsMonoNL NF Medium
    font_size 12.0
    listen_on unix:/tmp/kitty
    window_padding_width FloatEdges(left=12.0, top=12.0, right=12.0, bottom=12.0)
    Added mouse actions:
    right click grabbed → paste_from_clipboard
    right click ungrabbed → paste_from_clipboard
    Changed mouse actions:
    ctrl+shift+right press ungrabbed → combine : mouse_select_command_output : kitty_scrollback_nvim --config ksb_builtin_last_visited_cmd_output
    Changed shortcuts:
    kitty_mod+g → kitty_scrollback_nvim --config ksb_builtin_last_cmd_output
    kitty_mod+h → kitty_scrollback_nvim
    Colors:
    active_border_color #cecac7
    active_tab_background #cecac7
    active_tab_foreground #0d0c0c
    background #0d0c0c
    bell_border_color #635e5c
    color0 #0d0c0c
    color1 #635e5c
    color10 #736d6a
    color11 #837c78
    color12 #89827d
    color13 #817f81
    color14 #948d89
    color15 #cecac7
    color2 #736d6a
    color3 #837c78
    color4 #89827d
    color5 #817f81
    color6 #948d89
    color7 #cecac7
    color8 #908d8b
    color9 #635e5c
    cursor #cecac7
    foreground #cecac7
    inactive_border_color #0d0c0c
    inactive_tab_background #0d0c0c
    inactive_tab_foreground #cecac7

    Important environment variables seen by the kitty process:
    PATH /home/pc/.cargo/bin:/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
    LANG en_GB.UTF-8
    EDITOR nano
    SHELL /bin/bash
    DISPLAY :0
    USER pc
    XDG_SEAT seat0
    XDG_SESSION_DESKTOP qtile
    XDG_SESSION_TYPE x11
    XDG_SESSION_CLASS user
    XDG_VTNR 2
    XDG_SESSION_ID 1
    XDG_RUNTIME_DIR /run/user/1000
    `

@mikesmithgh
Copy link
Owner

@sachinsenal0x64 thanks,

Yes, that action_alias is incorrect. It should point to the absolute path of kitty_scrollback_nvim.py similar to below:

action_alias kitty_scrollback_nvim kitten /Users/mike/gitrepos/kitty-scrollback.nvim/python/kitty_scrollback_nvim.py

Was that action_alias generated by :KittyScrollbackGenerateKittens or a copy and paste issue?

Stepping away but I'll circle back back tomorrow if this doesn't fix it 👍

@sachinsenal0x64
Copy link
Author

Thank you now working i just use vim+'KittyScrollbackGenerateKittens' so its gave me real path :)

@mikesmithgh
Copy link
Owner

awesome :shipit:

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