Error message:
# docker-compose -h
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.
from cryptography.hazmat.backends import default_backend
Traceback (most recent call last):
File "/usr/bin/docker-compose", line 6, in <module>
from compose.cli.main import main
File "/usr/lib/python2.7/site-packages/compose/cli/main.py", line 24, in <module>
from ..config import ConfigurationError
File "/usr/lib/python2.7/site-packages/compose/config/__init__.py", line 6, in <module>
from .config import ConfigurationError
File "/usr/lib/python2.7/site-packages/compose/config/config.py", line 51, in <module>
from .validation import match_named_volumes
File "/usr/lib/python2.7/site-packages/compose/config/validation.py", line 12, in <module>
from jsonschema import Draft4Validator
File "/usr/lib/python2.7/site-packages/jsonschema/__init__.py", line 21, in <module>
from jsonschema._types import TypeChecker
File "/usr/lib/python2.7/site-packages/jsonschema/_types.py", line 3, in <module>
from pyrsistent import pmap
File "/usr/lib64/python2.7/site-packages/pyrsistent/__init__.py", line 3, in <module>
from pyrsistent._pmap import pmap, m, PMap
File "/usr/lib64/python2.7/site-packages/pyrsistent/_pmap.py", line 98
) from e
^
SyntaxError: invalid syntax
This is a problem caused by the version of pyristent (0.17.0). Install the old version
# pip install pyrsistent==0.16.0
Read More:
- [Solved] Docker Start Error: System.InvalidOperationException Failed to set version to docker-desktop exit code
- Qdox parseexception: syntax error [How to Solve]
- [Solved] com.alibaba.fastjson.JSONException: syntax error, pos 1, json
- [Solved] docker Start jar package and Set JVM parameter Error
- [Solved] Frida-server Startup Error: syntax error: unexpected‘(‘
- [Solved] Syntax Error: Error: ENOENT: no such file or directory, scandir ‘D:\LeStoreD
- [Solved] ClickHouse Error: Code: 62. DB::Exception: Syntax error (Multi-statements are not allowed): fai
- [Solved] Cause: org.postgresql.util.PSQLException: ERROR: syntax error at end of input
- [Solved] Centos7 Install docker Error: iptables v1.4.21: Couldn‘t load target `DOCKER-ISOLATION‘
- [Solved] Docker Start Error: Error response from daemon: oci runtime error: container with id exists: 7f4336393ab
- [Solved] PageHelper Error: syntax error, error in :‘it 1 LIMIT ? ‘
- [Solved] JAVA Operate Database Error: You have an error in your SQL syntax; Dao layer SQL statement error
- How to Upload Docker Image to docker hub
- [Solved] Tomcat7 Start Error: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardCon
- [Solved] Tomcat Startup Error: A child container failed during start、LifecycleException: Failed to start component
- [Solved] Docker Run Tomcat Error: Cannot find /usr/local/tomcat/bin/setclasspath.sh
- [Solved] Docker Startup Error: OCI runtime create failed container_linux.go380 starting container process
- [Solved] docker skywalking error: no provider found for module storage
- How to Solve Docker Portainer Connect Error
- [Solved] docker Error response from daemon driver failed programming external connectivity on endpoint lamp