Сбой установки Lektor в Linux - PullRequest
       9

Сбой установки Lektor в Linux

0 голосов
/ 23 ноября 2018

Сбой Lektor при установке в Linux (Mint 19 и Raspbian-armv7l 2018-10) с сообщением об ошибке «Файл не найден»

Установлены Python 2.7 и 3.5.
sudo apt-get install python-dev libssl-dev libffi-dev ОК
sudo apt-get установить imagemagick ОК

curl -sf https://www.getlektor.com/install.sh | sudo sh
This script will install Lektor on your computer.
Installing at:
  bin: /usr/local/bin
  app: /usr/local/lib/lektor
Continue? [Yn] y -> CRASH !
/usr/bin/python: can't open file './virtualenv.py': [Errno 2] No such file or directory  
Traceback (most recent call last):   
File "<stdin>", line 148, in <module>  
File "<stdin>", line 143, in main
File "<stdin>", line 107, in install
File "/usr/lib/python2.7/subprocess.py", line 390, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_child
raise child_exception

OSError: [Ошибка 2] Нет такого файла или каталога

1 Ответ

0 голосов
/ 23 ноября 2018

Это известная проблема с вашей версией Lektor:

https://github.com/lektor/lektor/issues/619

ВОЗМОЖНОЕ РЕШЕНИЕ:

В моей системе install.sh работал после изменениястрока 124 к этому:

Popen([sys.executable, './src/virtualenv.py', lib_dir], cwd=t).wait()

...