question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Installation fails on Elementary OS 5.1.7 Hera

See original GitHub issue

Installing Lektor using $ curl -sf https://www.getlektor.com/installer.py | sudo python3 as per documentation results in an error. How can I fix this please?

Details: Python 3.6 is installed. sudo apt-get install python3-dev libssl-dev libffi-dev installed OK. sudo apt-get install imagemagickinstalled OK.

Error:

Complete output from command python setup.py egg_info:

        =============================DEBUG ASSISTANCE==========================
        If you are seeing an error here please try the following to
        successfully install cryptography:

        Upgrade to the latest pip and try again. This will fix errors for most
        users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
        =============================DEBUG ASSISTANCE==========================

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-build-wsfr8z04/cryptography/setup.py", line 14, in <module>
    from setuptools_rust import RustExtension
ModuleNotFoundError: No module named 'setuptools_rust'

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-wsfr8z04/cryptography/

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
oliverbienertcommented, Apr 6, 2021

Same here, on AVL-MXE-2020.12.03 (Debian-Buster based). I solved it by adding a line in installer.py to upgrade pip before installing lektor:

def install_lektor(lib_dir):
    create_virtualenv(lib_dir)

    pip = get_pip(lib_dir)
    call([pip, "install", "--upgrade", "pip"])
0reactions
jurgenizercommented, May 29, 2021

@oliverbienert I finally got round to trying your suggestion on Elementary OS 5.1.7, it works! Thank you so much! I will add your fix as a pull request on the lektor/lektor-website repo. P.S. I also asked the question on Stack Overflow. https://stackoverflow.com/questions/66731157/lektor-cms-installation-fails-on-elementary-os-5-1-7-hera. I’ll leave it to you @oliverbienert to add the official answer there if you like 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Developers - Installation fails on Elementary OS 5.1.7 Hera -
Installing Lektor using $ curl -sf https://www.getlektor.com/installer.py | sudo python3 as per documentation results in an error.
Read more >
Hera (5.1) - MacBook; Installation failed at grub install
I have a late 2006 MacBook (MacBook2,1). I downloaded Elementary OS (5.1, Hera) and plunked it on a USB stick. I tried in...
Read more >
Installation - Elementary OS
This ensures that you've received the full, complete download and that it is not corrupted.
Read more >
elementary OS - failed installation, broken xserve...
I had tried to install the drivers ( amdgpu-pro-20.40-1147287-ubuntu-18.04) for Ubuntu 18.04 on elementary OS 5.1.7 Hera (bades on Ubuntu ...
Read more >
15 things to do after installing elementary OS | FOSS Linux
The ISO you used to install elementary OS is most likely not up-to-date with all the latest packages and releases. As such, it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found