Skip to content

weechat-matrix: no module named Logbook #79646

@mjlbach

Description

@mjlbach

Describe the bug

weechat-matrix is not finding Logbook even though it is part of the derivation

A clear and concise description of what the bug is.
         │10:45:58     |   ___       __         ______________        _____
         │10:45:58     |   __ |     / /___________  ____/__  /_______ __  /_
         │10:45:58     |   __ | /| / /_  _ \  _ \  /    __  __ \  __ `/  __/
         │10:45:58     |   __ |/ |/ / /  __/  __/ /___  _  / / / /_/ // /_
         │10:45:58     |   ____/|__/  \___/\___/\____/  /_/ /_/\__,_/ \__/
         │10:45:58     | WeeChat 2.7 [compiled on Feb  4 2020 16:50:43]
         │10:45:58     | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
         │10:45:58     | Plugins loaded: alias, buflist, charset, exec, fifo, fset, guile, irc, logger, lua, perl, python, relay, ruby, script, spell, tcl, trigger, xfer
         │10:45:58     | python: loading script "/nix/store/hfnvly47a42nww7wl53r2v93yci5fg8z-wee-slack-2.4.0/share/wee_slack.py"
         │10:45:59     | python: registered script "slack", version 2.4.0 (Extends weechat for typing notification/search/etc on slack.com)
         │10:45:59     | Connecting to 1 slack team.
         │10:45:59     | python: loading script "/nix/store/z3mcx3aqcxixc0jp25kclhn9ljp1fl2s-python3.7-weechat-matrix-unstable-2019-11-10/share/matrix.py"
         │10:45:59     | python: stdout/stderr (?): Traceback (most recent call last):
         │10:45:59     | python: stdout/stderr (?):   File "/nix/store/z3mcx3aqcxixc0jp25kclhn9ljp1fl2s-python3.7-weechat-matrix-unstable-2019-11-10/share/matrix.py", line 41, in
         │             | <module>
         │10:45:59     | python: stdout/stderr (?):     import logbook
         │10:45:59     | python: stdout/stderr (?): ModuleNotFoundError: No module named 'logbook'
         │10:45:59 =!= | python: unable to parse file "/nix/store/z3mcx3aqcxixc0jp25kclhn9ljp1fl2s-python3.7-weechat-matrix-unstable-2019-11-10/share/matrix.py"

To Reproduce
Steps to reproduce the behavior:

  1. Install weechat/weechat-matrix
  2. Run weechat

See the following home-manager config:

{ pkgs, config, ... }:
let 
weechat = pkgs.weechat.override {
  configure = {availablePlugins, ...}: 
  {
    scripts = with pkgs.weechatScripts; [ wee-slack weechat-matrix];
  };
};
in
{
    # home.file.".weechat/python/autoload/notify_send.py".source = 
    #   "${(import ../../nix/sources.nix).weechat-notify-send}/notify_send.py";

    home.file.".weechat/plugins.conf".text = ''
      [var]
      python.slack.auto_open_threads = "true"
      python.slack.background_load_all_history = "true"
      python.slack.channel_name_typing_indicator = "true"
      python.slack.color_buflist_muted_channels = "darkgray"
      python.slack.color_edited_suffix = "095"
      python.slack.color_reaction_suffix = "darkgray"
      python.slack.color_thread_suffix = "lightcyan"
      python.slack.colorize_private_chats = "false"
      python.slack.debug_level = "3"
      python.slack.debug_mode = "false"
      python.slack.distracting_channels = ""
      python.slack.external_user_suffix = "*"
      python.slack.group_name_prefix = "&"
      python.slack.map_underline_to = "_"
      python.slack.migrated = "true"
      python.slack.muted_channels_activity = "personal_highlights"
      python.slack.never_away = "false"
      python.slack.notify_usergroup_handle_updated = "false"
      python.slack.record_events = "false"
      python.slack.render_bold_as = "bold"
      python.slack.render_italic_as = "italic"
      python.slack.send_typing_notice = "true"
      python.slack.server_aliases = ""
      python.slack.shared_name_prefix = "%"
      python.slack.short_buffer_names = "false"
      python.slack.show_buflist_presence = "true"
      python.slack.show_reaction_nicks = "true"
      python.slack.slack_timeout = "20000"
      python.slack.switch_buffer_on_join = "true"
      python.slack.thread_messages_in_channel = "false"
      python.slack.unfurl_auto_link_display = "both"
      python.slack.unfurl_ignore_alt_text = "false"
      python.slack.unhide_buffers_with_activity = "false"
    '';
    #python.slack.slack_api_token = "${config.secrets.slack-term}"
    
    home.packages = [weechat];
  }

Expected behavior
weechat-matrix runs

Metadata

 - system: `"x86_64-darwin"`
 - host os: `Darwin 19.3.0, macOS 10.15.3`
 - multi-user?: `no`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.3.2`
 - channels(michael): `"home-manager, nixpkgs-20.03pre211998.57ed5db343f"`
 - nixpkgs: `/Users/michael/.nix-defexpr/channels/nixpkgs`

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions