Your message dated Fri, 6 Jan 2023 12:51:16 -0500
with message-id <[email protected]>
and subject line Re: lektor: Fails to install plugin
has caused the Debian Bug report #905147,
regarding lektor: Fails to install plugin
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
905147: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=905147
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: lektor
Version: 3.1.1-1
Severity: normal

Dear Maintainer,
lektor fails to install plugins.

To reproduce this bug (only the last item fails).

1. Quickstart a lektor project (with default values).

    $ lektor quickstart

2. Cd to the project directory, and build website.

    $ cd DIRECTORY
    $ lektor build

3. Everything is ok. Install a new plugin.

    $ lektor plugins add lektor-markdown-highlighter
    Package lektor-markdown-highlighter (0.3) was added to the project

4. Build project again.

    $ lektor build
    Updating packages in 
/home/louis/.cache/lektor/packages/8c910ec22f2d10ee8aeba5877bafc1eb for project
    Collecting lektor-markdown-highlighter==0.3
      Using cached 
https://files.pythonhosted.org/packages/fb/c8/422a2b862df0d9fb518bcf4e14ce0ca900b2542c8f4db18a66898d3f0e0c/lektor_markdown_highlighter-0.3-py3-none-any.whl
    Collecting Pygments (from lektor-markdown-highlighter==0.3)
      Using cached 
https://files.pythonhosted.org/packages/02/ee/b6e02dc6529e82b75bb06823ff7d005b141037cb1416b10c6f00fc419dca/Pygments-2.2.0-py2.py3-none-any.whl
    Installing collected packages: Pygments, lektor-markdown-highlighter
    Exception:
    Traceback (most recent call last):
      File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 215, in 
main
        status = self.run(options, args)
      File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 360, 
in run
        prefix=options.prefix_path,
      File "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 784, in 
install
        **kwargs
      File "/usr/lib/python3/dist-packages/pip/req/req_install.py", line 851, 
in install
        self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
      File "/usr/lib/python3/dist-packages/pip/req/req_install.py", line 1064, 
in move_wheel_files
        isolated=self.isolated,
      File "/usr/lib/python3/dist-packages/pip/wheel.py", line 247, in 
move_wheel_files
        prefix=prefix,
      File "/usr/lib/python3/dist-packages/pip/locations.py", line 153, in 
distutils_scheme
        i.finalize_options()
      File "/usr/lib/python3.6/distutils/command/install.py", line 274, in 
finalize_options
        raise DistutilsOptionError("can't combine user with prefix, "
    distutils.errors.DistutilsOptionError: can't combine user with prefix, 
exec_prefix/home, or install_(plat)base
    Traceback (most recent call last):
      File "/usr/bin/lektor", line 11, in <module>
        load_entry_point('Lektor==3.1.1', 'console_scripts', 'lektor')()
      File "/usr/lib/python3/dist-packages/click/core.py", line 722, in __call__
        return self.main(*args, **kwargs)
      File "/usr/lib/python3/dist-packages/click/core.py", line 697, in main
        rv = self.invoke(ctx)
      File "/usr/lib/python3/dist-packages/click/core.py", line 1066, in invoke
        return _process_result(sub_ctx.command.invoke(sub_ctx))
      File "/usr/lib/python3/dist-packages/click/core.py", line 895, in invoke
        return ctx.invoke(self.callback, **ctx.params)
      File "/usr/lib/python3/dist-packages/click/core.py", line 535, in invoke
        return callback(*args, **kwargs)
      File "/usr/lib/python3/dist-packages/click/decorators.py", line 64, in 
new_func
        return ctx.invoke(f, obj, *args[1:], **kwargs)
      File "/usr/lib/python3/dist-packages/click/core.py", line 535, in invoke
        return callback(*args, **kwargs)
      File "/usr/lib/python3/dist-packages/lektor/cli.py", line 214, in 
build_cmd
        ctx.load_plugins()
      File "/usr/lib/python3/dist-packages/lektor/cli.py", line 130, in 
load_plugins
        load_packages(self.get_env(), reinstall=reinstall)
      File "/usr/lib/python3/dist-packages/lektor/packages.py", line 306, in 
load_packages
        refresh=reinstall)
      File "/usr/lib/python3/dist-packages/lektor/packages.py", line 276, in 
update_cache
        download_and_install_package(package_root, package, version)
      File "/usr/lib/python3/dist-packages/lektor/packages.py", line 105, in 
download_and_install_package
        raise RuntimeError('Failed to install dependency package.')
    RuntimeError: Failed to install dependency package.

In the last `lektor build`, lektor tries to install (in a custom
virtualenv) the newly added plugin, but this installation fails. I
expected it to succeed and to correctly build my website.

Regards,
Louis


- -- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (990, 'testing'), (10, 'unstable'), (10, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.17.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), 
LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages lektor depends on:
ii  python3                3.6.5-3
ii  python3-babel          2.4.0+dfsg.1-2
ii  python3-click          6.7-5
ii  python3-exif           2.1.2-1
ii  python3-flask          1.0.2-1
ii  python3-inifile        0.4-1
ii  python3-jinja2         2.10-1
ii  python3-mistune        0.8.3-2
ii  python3-pip            9.0.1-2.3
ii  python3-pkg-resources  39.2.0-1
ii  python3-requests       2.18.4-2
ii  python3-watchdog       0.8.3-2

lektor recommends no packages.

lektor suggests no packages.

- -- no debconf information

--- End Message ---
--- Begin Message --- Closing as requested: the problem was fixed by Debian upgrading to a newer version of pip.
--- End Message ---

Reply via email to