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 Startup Error: OCI runtime create failed container_linux.go380 starting container process
- [Solved] nvidia-docker runtime Error: (Unknown runtime specified nvidia)
- How to Upload Docker Image to docker hub
- [Solved] Docker Start Error: System.InvalidOperationException Failed to set version to docker-desktop exit code
- [Solved] Heroku Error: Web process failed to bind to $PORT within 60 seconds of launch
- Elasticsearch Startup Error: unable to install syscall filter: java.lang.UnsupportedOperationException: seccomp
- [Solved] docker skywalking error: no provider found for module storage
- [Solved] Centos7 Install docker Error: iptables v1.4.21: Couldn‘t load target `DOCKER-ISOLATION‘
- [Solved] Docker-maven-plugin Build Mirror Error: failed: Connection refused: connect
- [Solved] Error: (4, 52) Java: package org springframework. beans. factory. Annotation does not exist
- [Solved] Error response from daemon: driver failed programming external connectivity on endpoint mymysql
- How to Solve Docker Portainer Connect Error
- How to Solve JUnit Debugging initializationerror ERROR
- [Solved] Java Error: Must declare a named package because this compilation unit is associated to the named module
- [Solved] Sqoop Error: ERROR tool.ImportTool: Import failed: java.io.IOException
- Code case of XXL job executor
- RSA Decryption Error: java.security.InvalidKeyException: IOException : algid parse error, not a sequence
- Using java to call Jython, the error URI is not hierarchical
- OTA Pack Compile Error: ExternalError: Failed to run signapk.jar: return code 1:Error: A JNI error has occurred
- Tensorflow Error raise RuntimeError(‘The Session graph is empty. Add operations to the ‘ RuntimeError: