By: Luke Miller user 29 Dec 2021 at 5:59 p.m. CST

1 Response
Luke Miller gravatar
I am trying to upgrade from GLUU 4.2.3 to 4.3 and I get the following error: root@localhost:~# python3 upg4xto430.py Starting upgrade. CONTINUE? (y|N): y This upgrade replaces all the default Gluu Server scripts WITH SCRIPTS FROM 4.3.0 and removes other custom scripts. (This will replace any customization you may have made to these default script entries) Do you want to continue? (y|N): y Downloading Spanner modules Downloading http://162.243.99.240/icrby8xcvbcv/spanner/gcs.tgz to /tmp/600fa3667f/gcs.tgz Downloading https://files.pythonhosted.org/packages/de/ed/a6ac635bfd93e0a3655bd71e0de1b87f182c0d4bb0cfb544a9df03399d46/grpcio-1.37.0-cp36-cp36m-manylinux2014_x86_64.whl to /tmp/600fa3667f/grpcio-1.37.0-cp36-cp36m-manylinux2014_x86_64.whl Downloading Community Edition Setup 4.3.0 Downloading https://github.com/GluuFederation/community-edition-setup/archive/version_4.3.0.zip to /root/app/version_4.3.0.zip Extracting CES package Downloading sqlalchemy Downloading https://github.com/sqlalchemy/sqlalchemy/archive/rel_1_3_23.zip to /root/app/sqlalchemy.zip The following packages are required for Gluu Server net-tools python3-pymysql Do you want to install these now? [Y/n] y Installing packages net-tools python3-pymysql Traceback (most recent call last): File "upg4xto430.py", line 1644, in <module> updaterObj.download_ces() File "upg4xto430.py", line 314, in download_ces from setup_app.test_data_loader import TestDataLoader File "/root/ces_current/setup_app/test_data_loader.py", line 12, in <module> from setup_app.installers.base import BaseInstaller File "/root/ces_current/setup_app/installers/base.py", line 10, in <module> from setup_app.utils.db_utils import dbUtils File "/root/ces_current/setup_app/utils/db_utils.py", line 24, in <module> from setup_app.utils.spanner import Spanner File "/root/ces_current/setup_app/utils/spanner.py", line 9, in <module> from google.cloud import spanner File "/opt/dist/app/gcs/google/cloud/spanner.py", line 17, in <module> from google.cloud.spanner_v1 import __version__ File "/opt/dist/app/gcs/google/cloud/spanner_v1/__init__.py", line 23, in <module> from .services.spanner import SpannerClient File "/opt/dist/app/gcs/google/cloud/spanner_v1/services/spanner/__init__.py", line 18, in <module> from .client import SpannerClient File "/opt/dist/app/gcs/google/cloud/spanner_v1/services/spanner/client.py", line 19, in <module> from distutils import util ImportError: cannot import name 'util' root@localhost:~#

By Mustafa Baser staff 30 Dec 2021 at 10:07 a.m. CST

Mustafa Baser gravatar
Hi, Can you try upgrade after installing distutils package? `apt install python3-distutils` Regards