Docker Compose missing dependancy?

The discussion here is limited to topics related to the system update itself. Please post the functional issues after the system update to the corresponding other forums.
User avatar
rpluto
Posts: 11
Joined: 18 Nov 2020, 06:04

Re: Docker Compose missing dependancy?

Post by rpluto »

After do the steps mentioned

docker-compose --version
Traceback (most recent call last):
File "/Volume1/@apps/Python3/sysroot/usr/lib/python3.10/site-packages/setuptools-63.2.0-py3.10.egg/pkg_resources/__init__.py", line 581, in _build_master
ws.require(__requires__)
File "/Volume1/@apps/Python3/sysroot/usr/lib/python3.10/site-packages/setuptools-63.2.0-py3.10.egg/pkg_resources/__init__.py", line 909, in require
needed = self.resolve(parse_requirements(requirements))
File "/Volume1/@apps/Python3/sysroot/usr/lib/python3.10/site-packages/setuptools-63.2.0-py3.10.egg/pkg_resources/__init__.py", line 800, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.VersionConflict: (docker-compose 1.29.2 (/Volume1/@apps/Python3/lib/python3.10/site-packages), Requirement.parse('docker-compose==1.24.1'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/bin/docker-compose", line 6, in <module>
from pkg_resources import load_entry_point
File "/Volume1/@apps/Python3/sysroot/usr/lib/python3.10/site-packages/setuptools-63.2.0-py3.10.egg/pkg_resources/__init__.py", line 3260, in <module>
def _initialize_master_working_set():
File "/Volume1/@apps/Python3/sysroot/usr/lib/python3.10/site-packages/setuptools-63.2.0-py3.10.egg/pkg_resources/__init__.py", line 3234, in _call_aside
f(*args, **kwargs)
File "/Volume1/@apps/Python3/sysroot/usr/lib/python3.10/site-packages/setuptools-63.2.0-py3.10.egg/pkg_resources/__init__.py", line 3272, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/Volume1/@apps/Python3/sysroot/usr/lib/python3.10/site-packages/setuptools-63.2.0-py3.10.egg/pkg_resources/__init__.py", line 583, in _build_master
return cls._build_from_requirements(__requires__)
File "/Volume1/@apps/Python3/sysroot/usr/lib/python3.10/site-packages/setuptools-63.2.0-py3.10.egg/pkg_resources/__init__.py", line 596, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/Volume1/@apps/Python3/sysroot/usr/lib/python3.10/site-packages/setuptools-63.2.0-py3.10.egg/pkg_resources/__init__.py", line 795, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'docker-compose==1.24.1' distribution was not found and is required by the application


and even installing the "correct" verison with ./pip install docker-compose==1.24.1

It doesnt work

docker-compose up -d
Traceback (most recent call last):
File "/usr/bin/docker-compose", line 11, in <module>
load_entry_point('docker-compose==1.24.1', 'console_scripts', 'docker-compose')()
File "/Volume1/@apps/Python3/sysroot/usr/lib/python3.10/site-packages/compose/cli/main.py", line 71, in main
command()
File "/Volume1/@apps/Python3/sysroot/usr/lib/python3.10/site-packages/compose/cli/main.py", line 124, in perform_command
project = project_from_options('.', options)
File "/Volume1/@apps/Python3/sysroot/usr/lib/python3.10/site-packages/compose/cli/command.py", line 33, in project_from_options
return get_project(
File "/Volume1/@apps/Python3/sysroot/usr/lib/python3.10/site-packages/compose/cli/command.py", line 111, in get_project
config_details = config.find(project_dir, config_path, environment, override_dir)
File "/Volume1/@apps/Python3/sysroot/usr/lib/python3.10/site-packages/compose/config/config.py", line 291, in find
[ConfigFile.from_filename(f) for f in filenames],
File "/Volume1/@apps/Python3/sysroot/usr/lib/python3.10/site-packages/compose/config/config.py", line 291, in <listcomp>
[ConfigFile.from_filename(f) for f in filenames],
File "/Volume1/@apps/Python3/sysroot/usr/lib/python3.10/site-packages/compose/config/config.py", line 191, in from_filename
return cls(filename, load_yaml(filename))
File "/Volume1/@apps/Python3/sysroot/usr/lib/python3.10/site-packages/compose/config/config.py", line 1493, in load_yaml
return yaml.safe_load(fh)
File "/Volume1/@apps/Python3/sysroot/usr/lib/python3.10/site-packages/yaml/__init__.py", line 94, in safe_load
return load(stream, SafeLoader)
File "/Volume1/@apps/Python3/sysroot/usr/lib/python3.10/site-packages/yaml/__init__.py", line 72, in load
return loader.get_single_data()
File "/Volume1/@apps/Python3/sysroot/usr/lib/python3.10/site-packages/yaml/constructor.py", line 37, in get_single_data
return self.construct_document(node)
File "/Volume1/@apps/Python3/sysroot/usr/lib/python3.10/site-packages/yaml/constructor.py", line 46, in construct_document
for dummy in generator:
File "/Volume1/@apps/Python3/sysroot/usr/lib/python3.10/site-packages/yaml/constructor.py", line 398, in construct_yaml_map
value = self.construct_mapping(node)
File "/Volume1/@apps/Python3/sysroot/usr/lib/python3.10/site-packages/yaml/constructor.py", line 204, in construct_mapping
return super().construct_mapping(node, deep=deep)
File "/Volume1/@apps/Python3/sysroot/usr/lib/python3.10/site-packages/yaml/constructor.py", line 126, in construct_mapping
if not isinstance(key, collections.Hashable):
AttributeError: module 'collections' has no attribute 'Hashable'

I revert back as mentioned

python -> /Volume1/@apps/Python3/sysroot/usr/bin/python

the python default to python2.7

cd /usr/bin/
unlink python
ln -s python2.7 python

docker-compose installed location
whereis docker-compose
docker-compose: /usr/bin/docker-compose /Volume1/@apps/docker/dockerd/bin/docker-compose

maybe this need to be changed

#!/usr/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'docker-compose==1.24.1','console_scripts','docker-compose'
import re
import sys

# for compatibility with easy_install; see #2198
__requires__ = 'docker-compose==1.24.1'

try:
from importlib.metadata import distribution
except ImportError:
try:
from importlib_metadata import distribution
except ImportError:
from pkg_resources import load_entry_point


def importlib_load_entry_point(spec, group, name):
dist_name, _, _ = spec.partition('==')
matches = (
entry_point
for entry_point in distribution(dist_name).entry_points
if entry_point.group == group and entry_point.name == name
)
return next(matches).load()


globals().setdefault('load_entry_point', importlib_load_entry_point)


if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(load_entry_point('docker-compose==1.24.1', 'console_scripts', 'docker-compose')())

Let me know if you need something more ...

Thanks
———
TOS 5.0.171 (x.86)
F5-221 - 10G - 4x4TB (WD Red Pro) - raid5 (btrfs)
Docker containers with docker-compose, managed with portainer
User avatar
TMroy
TerraMaster Team
Posts: 2578
Joined: 10 Mar 2020, 14:04
China

Re: Docker Compose missing dependancy?

Post by TMroy »

Did you install setuptools?

Code: Select all

cd /setuptools-63.2.0
python setup.py build
python setup.py install 
install python

Code: Select all

./pip install docker-compose  or  pip install docker-compose 
To contact our team, please send email to following addresses, remember to replace (at) with @:
Support team: support(at)terra-master.com (for technical support only)
Service team: service(at)terra-master.com (for purchasing, return, replacement, RMA service)
User avatar
rpluto
Posts: 11
Joined: 18 Nov 2020, 06:04

Re: Docker Compose missing dependancy?

Post by rpluto »

We are not on the same page.

Is docker manager who install the docker-compose, and it ask for docker-compose 1.24.1
Even if i can install other it gives the error,

....
pkg_resources.DistributionNotFound: The 'docker-compose==1.24.1' distribution was not found and is required by the application


So i think you are not understanding the dependencies needed, can you dig more please ?
———
TOS 5.0.171 (x.86)
F5-221 - 10G - 4x4TB (WD Red Pro) - raid5 (btrfs)
Docker containers with docker-compose, managed with portainer
User avatar
XFNeo
Posts: 90
Joined: 10 Oct 2022, 23:18

Re: Docker Compose missing dependancy?

Post by XFNeo »

{L_BUTTON_AT}rpluto
TMSupport wrote: 21 Oct 2022, 18:09 Please do the following. 1. Go to the application center to install Python3 and then install pip. 2. Login to the SSH terminal and execute the following command.

Code: Select all

cd /Volume1/@apps/Python3/sysroot/usr/bin

Code: Select all

./pip install docker-compose

Code: Select all

cd /Volume1/@apps/Python3/sysroot/usr/bin
./pip install docker-compose
-bash: ./pip: No such file or directory

Code: Select all

cd /Volume1/@apps/Python3/sysroot/usr/bin
./pip3 install docker-compose

Collecting docker-compose
  Downloading docker_compose-1.29.2-py2.py3-none-any.whl (114 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 114.8/114.8 kB 660.1 kB/s eta 0:00:00
Requirement already satisfied: requests<3,>=2.20.0 in /Volume1/@apps/Python3/lib/python3.10/site-packages (from docker-compose) (2.28.1)
Collecting docopt<1,>=0.6.1
  Downloading docopt-0.6.2.tar.gz (25 kB)
  Preparing metadata (setup.py) ... done
Collecting PyYAML<6,>=3.10
  Downloading PyYAML-5.4.1.tar.gz (175 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 175.1/175.1 kB 1.7 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [63 lines of output]
      /tmp/pip-build-env-sijjwy1k/overlay/lib/python3.10/site-packages/setuptools/config/setupcfg.py:508: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_f                                                                                                                              iles instead.
        warnings.warn(msg, warning_class)
      running dist_info
      creating /tmp/pip-modern-metadata-6miqkhtd/PyYAML.egg-info
      writing /tmp/pip-modern-metadata-6miqkhtd/PyYAML.egg-info/PKG-INFO
      writing dependency_links to /tmp/pip-modern-metadata-6miqkhtd/PyYAML.egg-info/dependency_links.txt
      writing top-level names to /tmp/pip-modern-metadata-6miqkhtd/PyYAML.egg-info/top_level.txt
      writing manifest file '/tmp/pip-modern-metadata-6miqkhtd/PyYAML.egg-info/SOURCES.txt'
      skipping 'yaml/_yaml.c' Cython extension (up-to-date)
      reading manifest file '/tmp/pip-modern-metadata-6miqkhtd/PyYAML.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      adding license file 'LICENSE'
      writing manifest file '/tmp/pip-modern-metadata-6miqkhtd/PyYAML.egg-info/SOURCES.txt'
      creating '/tmp/pip-modern-metadata-6miqkhtd/PyYAML-5.4.1.dist-info'
      Traceback (most recent call last):
        File "/Volume1/@apps/Python3/sysroot/usr/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
          main()
        File "/Volume1/@apps/Python3/sysroot/usr/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/Volume1/@apps/Python3/sysroot/usr/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 164, in prepare_metadata_for_build_wheel
          return hook(metadata_directory, config_settings)
        File "/tmp/pip-build-env-sijjwy1k/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 377, in prepare_metadata_for_build_wheel
          self.run_setup()
        File "/tmp/pip-build-env-sijjwy1k/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 335, in run_setup
          exec(code, locals())
        File "<string>", line 271, in <module>
        File "/tmp/pip-build-env-sijjwy1k/overlay/lib/python3.10/site-packages/setuptools/__init__.py", line 87, in setup
          return distutils.core.setup(**attrs)
        File "/tmp/pip-build-env-sijjwy1k/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 185, in setup
          return run_commands(dist)
        File "/tmp/pip-build-env-sijjwy1k/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
          dist.run_commands()
        File "/tmp/pip-build-env-sijjwy1k/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 968, in run_commands
          self.run_command(cmd)
        File "/tmp/pip-build-env-sijjwy1k/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 1217, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-sijjwy1k/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
          cmd_obj.run()
        File "/tmp/pip-build-env-sijjwy1k/overlay/lib/python3.10/site-packages/setuptools/command/dist_info.py", line 101, in run
          bdist_wheel = self.get_finalized_command('bdist_wheel')
        File "/tmp/pip-build-env-sijjwy1k/overlay/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 305, in get_finalized_command
          cmd_obj = self.distribution.get_command_obj(command, create)
        File "/tmp/pip-build-env-sijjwy1k/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 859, in get_command_obj
          klass = self.get_command_class(command)
        File "/tmp/pip-build-env-sijjwy1k/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 954, in get_command_class
          self.cmdclass[command] = cmdclass = ep.load()
        File "/Volume1/@apps/Python3/sysroot/usr/lib/python3.10/importlib/metadata/__init__.py", line 171, in load
          module = import_module(match.group('module'))
        File "/Volume1/@apps/Python3/sysroot/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
          return _bootstrap._gcd_import(name[level:], package, level)
        File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
        File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
        File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
        File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
        File "<frozen importlib._bootstrap_external>", line 883, in exec_module
        File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
        File "/tmp/pip-build-env-sijjwy1k/overlay/lib/python3.10/site-packages/wheel/bdist_wheel.py", line 26, in <module>
          from .macosx_libfile import calculate_macosx_platform_tag
        File "/tmp/pip-build-env-sijjwy1k/overlay/lib/python3.10/site-packages/wheel/macosx_libfile.py", line 41, in <module>
          import ctypes
        File "/Volume1/@apps/Python3/sysroot/usr/lib/python3.10/ctypes/__init__.py", line 8, in <module>
          from _ctypes import Union, Structure, Array
      ImportError: libffi.so.8: cannot open shared object file: No such file or directory
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
User avatar
XFNeo
Posts: 90
Joined: 10 Oct 2022, 23:18

Re: Docker Compose missing dependancy?

Post by XFNeo »

{L_BUTTON_AT}rpluto
I have just download normal version of docker-compose)

Code: Select all

$ curl -L https://github.com/docker/compose/releases/download/1.24.1/docker-compose-`uname -s`-`uname -m` -o /Volume1/@apps/docker/dockerd/bin/docker-compose
$ chmod +x /Volume1/@apps/docker/dockerd/bin/docker-compose
User avatar
matt_30
Posts: 67
Joined: 02 Jan 2021, 23:22

Re: Docker Compose missing dependancy?

Post by matt_30 »

@Terramaster- Is there an ETA on a fix for this within the app?
User avatar
TMSupport
TerraMaster Team
Posts: 2314
Joined: 13 Dec 2019, 15:15

Re: Docker Compose missing dependancy?

Post by TMSupport »

{L_BUTTON_AT}matt_30
Please do the following. 1. Go to the application center to install Python3 and then install pip. 2. Login to the SSH terminal and execute the following command.

Code: Select all

cd /Volume1/@apps/Python3/sysroot/usr/bin

Code: Select all

./pip install docker-compose
To contact our team, please send email to following addresses, remember to replace (at) with @
Technical team: support(at)terra-master.com (for technical support)
Service team: service(at)terra-master.com (for purchasing, return, replacement, RMA service)
User avatar
TMSupport
TerraMaster Team
Posts: 2314
Joined: 13 Dec 2019, 15:15

Re: Docker Compose missing dependancy?

Post by TMSupport »

{L_BUTTON_AT}XFNeo

-bash: ./pip: No such file or directory
If you encounter the above prompt, it may be that you have not installed the pip application or the pip application was installed before Python3.
Please install pip again in the app center.
To contact our team, please send email to following addresses, remember to replace (at) with @
Technical team: support(at)terra-master.com (for technical support)
Service team: service(at)terra-master.com (for purchasing, return, replacement, RMA service)
User avatar
XFNeo
Posts: 90
Joined: 10 Oct 2022, 23:18

Re: Docker Compose missing dependancy?

Post by XFNeo »

{L_BUTTON_AT}XFNeo
TMSupport wrote: 28 Oct 2022, 17:57 -bash: ./pip: No such file or directory If you encounter the above prompt, it may be that you have not installed the pip application or the pip application was installed before Python3. Please install pip again in the app center.

Code: Select all

./pip install docker-compose
Collecting docker-compose
  Using cached docker_compose-1.29.2-py2.py3-none-any.whl (114 kB)
Collecting docopt<1,>=0.6.1
  Using cached docopt-0.6.2.tar.gz (25 kB)
  Preparing metadata (setup.py) ... done
Collecting docker[ssh]>=5
  Downloading docker-6.0.0-py3-none-any.whl (147 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 147.2/147.2 kB 812.0 kB/s eta 0:00:00
Collecting python-dotenv<1,>=0.13.0
  Downloading python_dotenv-0.21.0-py3-none-any.whl (18 kB)
Collecting dockerpty<1,>=0.4.1
  Downloading dockerpty-0.4.1.tar.gz (13 kB)
  Preparing metadata (setup.py) ... done
Collecting distro<2,>=1.5.0
  Downloading distro-1.8.0-py3-none-any.whl (20 kB)
Collecting websocket-client<1,>=0.32.0
  Downloading websocket_client-0.59.0-py2.py3-none-any.whl (67 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 67.2/67.2 kB 4.4 MB/s eta 0:00:00
Collecting PyYAML<6,>=3.10
  Using cached PyYAML-5.4.1.tar.gz (175 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [63 lines of output]
      /tmp/pip-build-env-vp6i6419/overlay/lib/python3.10/site-packages/setuptools/config/setupcfg.py:508: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
        warnings.warn(msg, warning_class)
      running dist_info
      creating /tmp/pip-modern-metadata-1fzd1_yp/PyYAML.egg-info
      writing /tmp/pip-modern-metadata-1fzd1_yp/PyYAML.egg-info/PKG-INFO
      writing dependency_links to /tmp/pip-modern-metadata-1fzd1_yp/PyYAML.egg-info/dependency_links.txt
      writing top-level names to /tmp/pip-modern-metadata-1fzd1_yp/PyYAML.egg-info/top_level.txt
      writing manifest file '/tmp/pip-modern-metadata-1fzd1_yp/PyYAML.egg-info/SOURCES.txt'
      skipping 'yaml/_yaml.c' Cython extension (up-to-date)
      reading manifest file '/tmp/pip-modern-metadata-1fzd1_yp/PyYAML.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      adding license file 'LICENSE'
      writing manifest file '/tmp/pip-modern-metadata-1fzd1_yp/PyYAML.egg-info/SOURCES.txt'
      creating '/tmp/pip-modern-metadata-1fzd1_yp/PyYAML-5.4.1.dist-info'
      Traceback (most recent call last):
        File "/Volume1/@apps/Python3/sysroot/usr/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
          main()
        File "/Volume1/@apps/Python3/sysroot/usr/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/Volume1/@apps/Python3/sysroot/usr/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 164, in prepare_metadata_for_build_wheel
          return hook(metadata_directory, config_settings)
        File "/tmp/pip-build-env-vp6i6419/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 377, in prepare_metadata_for_build_wheel
          self.run_setup()
        File "/tmp/pip-build-env-vp6i6419/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 335, in run_setup
          exec(code, locals())
        File "<string>", line 271, in <module>
        File "/tmp/pip-build-env-vp6i6419/overlay/lib/python3.10/site-packages/setuptools/__init__.py", line 87, in setup
          return distutils.core.setup(**attrs)
        File "/tmp/pip-build-env-vp6i6419/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 185, in setup
          return run_commands(dist)
        File "/tmp/pip-build-env-vp6i6419/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
          dist.run_commands()
        File "/tmp/pip-build-env-vp6i6419/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 968, in run_commands
          self.run_command(cmd)
        File "/tmp/pip-build-env-vp6i6419/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 1217, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-vp6i6419/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
          cmd_obj.run()
        File "/tmp/pip-build-env-vp6i6419/overlay/lib/python3.10/site-packages/setuptools/command/dist_info.py", line 101, in run
          bdist_wheel = self.get_finalized_command('bdist_wheel')
        File "/tmp/pip-build-env-vp6i6419/overlay/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 305, in get_finalized_command
          cmd_obj = self.distribution.get_command_obj(command, create)
        File "/tmp/pip-build-env-vp6i6419/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 859, in get_command_obj
          klass = self.get_command_class(command)
        File "/tmp/pip-build-env-vp6i6419/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 954, in get_command_class
          self.cmdclass[command] = cmdclass = ep.load()
        File "/Volume1/@apps/Python3/sysroot/usr/lib/python3.10/importlib/metadata/__init__.py", line 171, in load
          module = import_module(match.group('module'))
        File "/Volume1/@apps/Python3/sysroot/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
          return _bootstrap._gcd_import(name[level:], package, level)
        File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
        File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
        File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
        File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
        File "<frozen importlib._bootstrap_external>", line 883, in exec_module
        File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
        File "/tmp/pip-build-env-vp6i6419/overlay/lib/python3.10/site-packages/wheel/bdist_wheel.py", line 26, in <module>
          from .macosx_libfile import calculate_macosx_platform_tag
        File "/tmp/pip-build-env-vp6i6419/overlay/lib/python3.10/site-packages/wheel/macosx_libfile.py", line 41, in <module>
          import ctypes
        File "/Volume1/@apps/Python3/sysroot/usr/lib/python3.10/ctypes/__init__.py", line 8, in <module>
          from _ctypes import Union, Structure, Array
      ImportError: libffi.so.8: cannot open shared object file: No such file or directory
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
User avatar
matt_30
Posts: 67
Joined: 02 Jan 2021, 23:22

Re: Docker Compose missing dependancy?

Post by matt_30 »

Apologies for the delay in responding.

I receive the same results as @SFNEO. However, so there is no confusion. The question was will this be fixed in the app?

I have put a dirty walk around in place, however I have no idea if this will present more errors in the future.

Engagement for fault resolution of this problem seamed to go quiet as soon as workarounds were presented.

Option B would be to enable software repo commands like Yum so we can just pull this ourselves.
Post Reply