Error while fetching server API version: Not supported URL scheme http+docker

docker.errors.DockerException: Error while fetching server API version: Not supported URL scheme http+docker

i got this error while trying to execute docker-compose up -d on my ubuntu server.
Everything was fine, I got my container running, but I need to make an update and this error came in.
I saw that others also face this issue and said that it is caused by requests lib but i put there older version of it and it does not help at all