LINUX.ORG.RU

Модуль зависит от другого, а тот от первого

 , , ,


0

2

День добрый.

Надо стало установить питоновский модуль setuplib.

Тот, в свою очередь, требует модуль setupdocx.

А тот же, в свою очередь, требует setuplib.

Как быть?

root@keer:~# python3 -m pip install setuplib
Collecting setuplib
  Using cached setuplib-0.1.14.tar.gz (25 kB)
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-qv6fbk_3/setuplib/setup.py'"'"'; __file__='"'"'/tmp/pip-install-qv6fbk_3/setuplib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-qv6fbk_3/setuplib/pip-egg-info
         cwd: /tmp/pip-install-qv6fbk_3/setuplib/
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-qv6fbk_3/setuplib/setup.py", line 50, in <module>
        import setupdocx.build_docx
    ModuleNotFoundError: No module named 'setupdocx'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
root@keer:~# python3 -m pip install setupdocx
Collecting setupdocx
  Using cached setupdocx-0.1.22.tar.gz (65 kB)
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-sjg6pqih/setupdocx/setup.py'"'"'; __file__='"'"'/tmp/pip-install-sjg6pqih/setupdocx/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-sjg6pqih/setupdocx/pip-egg-info
         cwd: /tmp/pip-install-sjg6pqih/setupdocx/
    Complete output (7 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-sjg6pqih/setupdocx/setup.py", line 126, in <module>
        from setupdocx.build_docx import BuildDocX
      File "/tmp/pip-install-sjg6pqih/setupdocx/setupdocx/build_docx.py", line 27, in <module>
        import setuplib
    ModuleNotFoundError: No module named 'setuplib'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.