Calculate Forum

Нужна помощь! Перестал работать cl-update

# cl-update
Traceback (most recent call last):
  File "/usr/bin/cl-update", line 29, in <module>
    core_main.core_main()
  File "/usr/lib64/python2.7/site-packages/calculate/core/core_main.py", line 36, in core_main
    from calculate.core.server.cl_server import main
  File "/usr/lib64/python2.7/site-packages/calculate/core/server/cl_server.py", line 20, in <module>
    import cert_cmd
  File "/usr/lib64/python2.7/site-packages/calculate/core/server/cert_cmd.py", line 25, in <module>
    from func import new_key_req, uniq
  File "/usr/lib64/python2.7/site-packages/calculate/core/server/func.py", line 27, in <module>
    from calculate.core.server.core_interfaces import (CoreServiceInterface,
  File "/usr/lib64/python2.7/site-packages/calculate/core/server/core_interfaces.py", line 16, in <module>
    from calculate.lib.datavars import DataVars
  File "/usr/lib64/python2.7/site-packages/calculate/lib/datavars.py", line 23, in <module>
    from utils.portage import searchProfile, RepositorySubstituting, RepositoryPath
  File "/usr/lib64/python2.7/site-packages/calculate/lib/utils/portage.py", line 27, in <module>
    import pexpect
ImportError: No module named pexpect

При этом, через emerge -avuDN world обновляется.

Подскажите, как исправить?

Также не работает обновление portage
# eix-sync
* Выполняются !-хуки
* Запуск /usr/sbin/cl-core --method update --sync-only --skip-eix-update
Traceback (most recent call last):
File “/usr/sbin/cl-core”, line 21, in
core_main.core_main()
File “/usr/lib64/python2.7/site-packages/calculate/core/core_main.py”, line 36, in core_main
from calculate.core.server.cl_server import main
File “/usr/lib64/python2.7/site-packages/calculate/core/server/cl_server.py”, line 20, in
import cert_cmd
File “/usr/lib64/python2.7/site-packages/calculate/core/server/cert_cmd.py”, line 25, in
from func import new_key_req, uniq
File “/usr/lib64/python2.7/site-packages/calculate/core/server/func.py”, line 27, in
from calculate.core.server.core_interfaces import (CoreServiceInterface,
File “/usr/lib64/python2.7/site-packages/calculate/core/server/core_interfaces.py”, line 16, in
from calculate.lib.datavars import DataVars
File “/usr/lib64/python2.7/site-packages/calculate/lib/datavars.py”, line 23, in
from utils.portage import searchProfile, RepositorySubstituting, RepositoryPath
File “/usr/lib64/python2.7/site-packages/calculate/lib/utils/portage.py”, line 27, in
import pexpect
ImportError: No module named pexpect
* ошибка /usr/sbin/cl-core --method update --sync-only --skip-eix-update
* Статистика времени:
0 секунд всего

Или
# emerge --sync
>>> Syncing repository ‘gentoo’ into ‘/usr/portage’…
Traceback (most recent call last):
File “/usr/sbin/cl-core”, line 21, in
core_main.core_main()
File “/usr/lib64/python2.7/site-packages/calculate/core/core_main.py”, line 36, in core_main
from calculate.core.server.cl_server import main
File “/usr/lib64/python2.7/site-packages/calculate/core/server/cl_server.py”, line 20, in
import cert_cmd
File “/usr/lib64/python2.7/site-packages/calculate/core/server/cert_cmd.py”, line 25, in
from func import new_key_req, uniq
File “/usr/lib64/python2.7/site-packages/calculate/core/server/func.py”, line 27, in
from calculate.core.server.core_interfaces import (CoreServiceInterface,
File “/usr/lib64/python2.7/site-packages/calculate/core/server/core_interfaces.py”, line 16, in
from calculate.lib.datavars import DataVars
File “/usr/lib64/python2.7/site-packages/calculate/lib/datavars.py”, line 23, in
from utils.portage import searchProfile, RepositorySubstituting, RepositoryPath
File “/usr/lib64/python2.7/site-packages/calculate/lib/utils/portage.py”, line 27, in
import pexpect
ImportError: No module named pexpect
!!! calculate update error; exiting.
>>> Syncing repository ‘calculate’ into ‘/var/db/repos/calculate’…
Traceback (most recent call last):
File “/usr/sbin/cl-core”, line 21, in
core_main.core_main()
File “/usr/lib64/python2.7/site-packages/calculate/core/core_main.py”, line 36, in core_main
from calculate.core.server.cl_server import main
File “/usr/lib64/python2.7/site-packages/calculate/core/server/cl_server.py”, line 20, in
import cert_cmd
File “/usr/lib64/python2.7/site-packages/calculate/core/server/cert_cmd.py”, line 25, in
from func import new_key_req, uniq
File “/usr/lib64/python2.7/site-packages/calculate/core/server/func.py”, line 27, in
from calculate.core.server.core_interfaces import (CoreServiceInterface,
File “/usr/lib64/python2.7/site-packages/calculate/core/server/core_interfaces.py”, line 16, in
from calculate.lib.datavars import DataVars
File “/usr/lib64/python2.7/site-packages/calculate/lib/datavars.py”, line 23, in
from utils.portage import searchProfile, RepositorySubstituting, RepositoryPath
File “/usr/lib64/python2.7/site-packages/calculate/lib/utils/portage.py”, line 27, in
import pexpect
ImportError: No module named pexpect
!!! calculate update error; exiting.
>>> Syncing repository ‘distros’ into ‘/var/db/repos/distros’…
Traceback (most recent call last):
File “/usr/sbin/cl-core”, line 21, in
core_main.core_main()
File “/usr/lib64/python2.7/site-packages/calculate/core/core_main.py”, line 36, in core_main
from calculate.core.server.cl_server import main
File “/usr/lib64/python2.7/site-packages/calculate/core/server/cl_server.py”, line 20, in
import cert_cmd
File “/usr/lib64/python2.7/site-packages/calculate/core/server/cert_cmd.py”, line 25, in
from func import new_key_req, uniq
File “/usr/lib64/python2.7/site-packages/calculate/core/server/func.py”, line 27, in
from calculate.core.server.core_interfaces import (CoreServiceInterface,
File “/usr/lib64/python2.7/site-packages/calculate/core/server/core_interfaces.py”, line 16, in
from calculate.lib.datavars import DataVars
File “/usr/lib64/python2.7/site-packages/calculate/lib/datavars.py”, line 23, in
from utils.portage import searchProfile, RepositorySubstituting, RepositoryPath
File “/usr/lib64/python2.7/site-packages/calculate/lib/utils/portage.py”, line 27, in
import pexpect
ImportError: No module named pexpect
!!! calculate update error; exiting.

Action: sync for repo: gentoo, returned code = 1
Action: sync for repo: calculate, returned code = 1
Action: sync for repo: distros, returned code = 1

Всё завязано на cl-core. Не могу обновить систему. Как исправить?

Как исправить?

cl-core-restart

Не могу обновить систему
я обновляю так

eix-sync && emerge -avuDN @world
# cl-core-restart
Traceback (most recent call last):
  File "/usr/bin/cl-core-restart", line 29, in <module>
    core_main.core_main()
  File "/usr/lib64/python2.7/site-packages/calculate/core/core_main.py", line 36, in core_main
    from calculate.core.server.cl_server import main
  File "/usr/lib64/python2.7/site-packages/calculate/core/server/cl_server.py", line 20, in <module>
    import cert_cmd
  File "/usr/lib64/python2.7/site-packages/calculate/core/server/cert_cmd.py", line 25, in <module>
    from func import new_key_req, uniq
  File "/usr/lib64/python2.7/site-packages/calculate/core/server/func.py", line 27, in <module>
    from calculate.core.server.core_interfaces import (CoreServiceInterface,
  File "/usr/lib64/python2.7/site-packages/calculate/core/server/core_interfaces.py", line 16, in <module>
    from calculate.lib.datavars import DataVars
  File "/usr/lib64/python2.7/site-packages/calculate/lib/datavars.py", line 23, in <module>
    from utils.portage import searchProfile, RepositorySubstituting, RepositoryPath
  File "/usr/lib64/python2.7/site-packages/calculate/lib/utils/portage.py", line 27, in <module>
    import pexpect
ImportError: No module named pexpect

Как видим, ошибка та же.
И eix-sync тоже не проходит. Выше я уже показывал это.

Я в богомерзком питоне не разбираюсь но думаю что не хватает модуля

No module named pexpect

А где его взять не знаю

eix pexpect

Выдает это может надо поставить

dev-python/pexpect
     Доступные версии:      4.8.0-r1^t {doc examples test PYTHON_TARGETS="pypy3 python3_6 python3_7 python3_8 python3_9"}
     Домашняя страница:     https://pexpect.readthedocs.io/ https://pypi.org/project/pexpect/ https://github.com/pexpect/pexpect/
     Описание:              Python module for spawning child apps and responding to expected patterns

[I] dev-python/pexpect-python2 [1]
     Доступные версии:      4.8.0^t{tbz2} {examples PYTHON_TARGETS="python2_7"}
     Установленные версии:  4.8.0^t{tbz2}(13:22:36 24.09.2020)(-examples PYTHON_TARGETS="python2_7")
     Домашняя страница:     https://pexpect.readthedocs.io/ https://pypi.org/project/pexpect/ https://github.com/pexpect/pexpect/
     Описание:              Python module for spawning child apps and responding to expected patterns

[1] "calculate" /var/db/repos/calculate

Спасибо, дружище! Вы натолкнули меня на мысль, проверить таким образом все ошибки, которые последовательно выдаёт cl-update. В результате пришлось доустановить несколько пакетов для питона-2.7, которые по какой-то причине отсутствовали. Теперь всё работает как надо. Спасибо ещё раз!

Так питон27 вроде выпилили из генту я хз как в кальке может поэтому нехватало библиотек

https://old.calculate-linux.org/search?q=pexpect&all_words=1&portage_packages=1&submit=Принять

© 2007-2020 Calculate Ltd.
Mastodon Mastodon