Page 1 of 3

Docker Compose missing dependancy?

Posted: 03 Oct 2022, 22:38
by matt_30
I have just upgraded to TNAS 5.0.171 and installed the docker update.

Docker appears to work, however when I try to run docker compose it complains of a missing dependency:

Code: Select all

[matt@TNAS-7702 ~]# docker-compose -version
Traceback (most recent call last):
  File "/Volume1/@apps/docker/dockerd/bin/docker-compose", line 6, in <module>
    from pkg_resources import load_entry_point
ImportError: No module named pkg_resources

contents of /Volume1/@apps/docker/dockerd/bin/docker-compose:

Code: Select all

[matt@TNAS-7702 ~]# cat /Volume1/@apps/docker/dockerd/bin/docker-compose | more
#!/usr/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'docker-compose==1.24.1','console_scripts','docker-compose'
__requires__ = 'docker-compose==1.24.1'
import re
import sys
from pkg_resources import 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')()
    )
Since I can't install/use pip, install python dependencies etc.. I suspect I'm in a bit of a pickle here.

Has anyone else seen this or know of a fix?

Kind Regards,
Matt.

Re: Docker Compose missing dependancy?

Posted: 04 Oct 2022, 12:34
by matt_30
Are Terramaster able to attempt to replicate this or is it better i log a support ticket?

Re: Docker Compose missing dependancy?

Posted: 04 Oct 2022, 21:12
by TWlhq
{L_BUTTON_AT}matt_30

We will verify this problem.

Re: Docker Compose missing dependancy?

Posted: 07 Oct 2022, 00:10
by rpluto
Any news about this ?

I have the same issue

Re: Docker Compose missing dependancy?

Posted: 07 Oct 2022, 03:10
by rpluto
@TWlhq

Any workaround possible ?

Re: Docker Compose missing dependancy?

Posted: 10 Oct 2022, 17:59
by rpluto
I already fix the dependency issue.

Code: Select all

mkdir libffi6
cd libffi6
ter_wget http://mirrors.kernel.org/ubuntu/pool/main/libf/libffi/libffi6_3.2.1-8_amd64.deb
ar x libffi6_3.2.1-8_amd64.deb
rm libffi6_3.2.1-8_amd64.deb
tar xvf data.tar.xz
cd usr/lib/x86_64-linux-gnu/
cp -Rv libffi.so.6* /usr/lib/
cd
rm -Rf libffi6
ter_wget http://peak.telecommunity.com/dist/ez_setup.py 
python ez_setup.py -U https://files.pythonhosted.org/packages/53/7f/55721ad0501a9076dbc354cc8c63ffc2d6f1ef360f49ad0fbcce19d68538/pip-20.3.4.tar.gz
rm ez_setup.py
pip python -m ensurepip
pip install docker-compose
Thank you Terra Master support :(

Re: Docker Compose missing dependancy?

Posted: 10 Oct 2022, 19:33
by rpluto
fix, the last docker-compose was not "compatible" with other packages

Code: Select all

mkdir libffi6
cd libffi6
ter_wget http://mirrors.kernel.org/ubuntu/pool/main/libf/libffi/libffi6_3.2.1-8_amd64.deb
ar x libffi6_3.2.1-8_amd64.deb
rm libffi6_3.2.1-8_amd64.deb
tar xvf data.tar.xz
cd usr/lib/x86_64-linux-gnu/
cp -Rv libffi.so.6* /usr/lib/
cd
rm -Rf libffi6
ter_wget http://peak.telecommunity.com/dist/ez_setup.py 
python ez_setup.py -U https://files.pythonhosted.org/packages/53/7f/55721ad0501a9076dbc354cc8c63ffc2d6f1ef360f49ad0fbcce19d68538/pip-20.3.4.tar.gz
rm ez_setup.py
python -m ensurepip
pip install docker-compose==1.24.1

Re: Docker Compose missing dependancy?

Posted: 21 Oct 2022, 04:27
by XFNeo
TerraMaster Support?

Re: Docker Compose missing dependancy?

Posted: 21 Oct 2022, 06:50
by rpluto
Docker Manage App update, issue reappeared

I remove my python3 app and docker manager app then I remove all python3 under /usr/bin/python3*

Code: Select all

rm /usr/bin/python3*
then i create a sym link to python -> python2.7

Code: Select all

cd /usr/bin/
ln -s python2.7 python
cd
docker --version
Docker version 20.10.17, build 20.10.17

docker-compose --version
docker-compose version 1.24.1, build 4667896

Let me know if i can help.

Re: Docker Compose missing dependancy?

Posted: 21 Oct 2022, 18:09
by TMSupport
{L_BUTTON_AT}rpluto
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