Hello,
I think the issue is trying to launch unixconn.py inside a container however I will show all the process:
I have built a docker image (following this instructions: Ingesting Maps in a CARLA package - CARLA Simulator).
I have then created a container using:
sudo docker create -it --name unreal_carla --privileged -e SDL_VIDEODRIVER=x11 -e DISPLAY=$DISPLAY -e XAUTHORITY=$XAUTHORITY -v /tmp/.X11-unix:/tmp/.X11-unix -v $XAUTHORITY:$XAUTHORITY --gpus ‘all,“capabilities=graphics,utility,display,video,compute”’ -v $(pwd)/src:/add_map -v /var/run/docker.sock:/var/run/docker.sock carla bash
Then in this container I have tried to launch ~/carla/Util/Docker$ python3 docker_tools.py --input /add_map/input_folder --output /add_map/output_folder --packages map_package
And I got the following error:
Params:
- Output path: /add_map/output_folder
- Packages: map_package
- Input path: /add_map/input_folder
- Verbose: False
Traceback (most recent call last):
File “/home/carla/.local/lib/python3.6/site-packages/urllib3/connectionpool.py”, line 710, in urlopen
chunked=chunked,
File “/home/carla/.local/lib/python3.6/site-packages/urllib3/connectionpool.py”, line 398, in _make_request
conn.request(method, url, **httplib_request_kw)
File “/usr/lib/python3.6/http/client.py”, line 1285, in request
self._send_request(method, url, body, headers, encode_chunked)
File “/usr/lib/python3.6/http/client.py”, line 1331, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File “/usr/lib/python3.6/http/client.py”, line 1280, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File “/usr/lib/python3.6/http/client.py”, line 1046, in _send_output
self.send(msg)
File “/usr/lib/python3.6/http/client.py”, line 984, in send
self.connect()
File “/home/carla/.local/lib/python3.6/site-packages/docker/transport/unixconn.py”, line 30, in connect
sock.connect(self.unix_socket)
PermissionError: [Errno 13] Permission deniedDuring handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/home/carla/.local/lib/python3.6/site-packages/requests/adapters.py”, line 450, in send
timeout=timeout
File “/home/carla/.local/lib/python3.6/site-packages/urllib3/connectionpool.py”, line 788, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File “/home/carla/.local/lib/python3.6/site-packages/urllib3/util/retry.py”, line 550, in increment
raise six.reraise(type(error), error, _stacktrace)
File “/home/carla/.local/lib/python3.6/site-packages/urllib3/packages/six.py”, line 769, in reraise
raise value.with_traceback(tb)
File “/home/carla/.local/lib/python3.6/site-packages/urllib3/connectionpool.py”, line 710, in urlopen
chunked=chunked,
File “/home/carla/.local/lib/python3.6/site-packages/urllib3/connectionpool.py”, line 398, in _make_request
conn.request(method, url, **httplib_request_kw)
File “/usr/lib/python3.6/http/client.py”, line 1285, in request
self._send_request(method, url, body, headers, encode_chunked)
File “/usr/lib/python3.6/http/client.py”, line 1331, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File “/usr/lib/python3.6/http/client.py”, line 1280, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File “/usr/lib/python3.6/http/client.py”, line 1046, in _send_output
self.send(msg)
File “/usr/lib/python3.6/http/client.py”, line 984, in send
self.connect()
File “/home/carla/.local/lib/python3.6/site-packages/docker/transport/unixconn.py”, line 30, in connect
sock.connect(self.unix_socket)
urllib3.exceptions.ProtocolError: (‘Connection aborted.’, PermissionError(13, ‘Permission denied’))During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/home/carla/.local/lib/python3.6/site-packages/docker/api/client.py”, line 214, in _retrieve_server_version
return self.version(api_version=False)[“ApiVersion”]
File “/home/carla/.local/lib/python3.6/site-packages/docker/api/daemon.py”, line 181, in version
return self._result(self._get(url), json=True)
File “/home/carla/.local/lib/python3.6/site-packages/docker/utils/decorators.py”, line 46, in inner
return f(self, *args, **kwargs)
File “/home/carla/.local/lib/python3.6/site-packages/docker/api/client.py”, line 237, in _get
return self.get(url, **self._set_request_timeout(kwargs))
File “/home/carla/.local/lib/python3.6/site-packages/requests/sessions.py”, line 542, in get
return self.request(‘GET’, url, **kwargs)
File “/home/carla/.local/lib/python3.6/site-packages/requests/sessions.py”, line 529, in request
resp = self.send(prep, **send_kwargs)
File “/home/carla/.local/lib/python3.6/site-packages/requests/sessions.py”, line 645, in send
r = adapter.send(request, **kwargs)
File “/home/carla/.local/lib/python3.6/site-packages/requests/adapters.py”, line 501, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: (‘Connection aborted.’, PermissionError(13, ‘Permission denied’))During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “docker_tools.py”, line 146, in
main()
File “docker_tools.py”, line 88, in main
client = docker.from_env()
File “/home/carla/.local/lib/python3.6/site-packages/docker/client.py”, line 101, in from_env
**kwargs_from_env(**kwargs)
File “/home/carla/.local/lib/python3.6/site-packages/docker/client.py”, line 45, in init
self.api = APIClient(*args, **kwargs)
File “/home/carla/.local/lib/python3.6/site-packages/docker/api/client.py”, line 197, in init
self._version = self._retrieve_server_version()
File “/home/carla/.local/lib/python3.6/site-packages/docker/api/client.py”, line 222, in _retrieve_server_version
f’Error while fetching server API version: {e}’
docker.errors.DockerException: Error while fetching server API version: (‘Connection aborted.’, PermissionError(13, ‘Permission denied’))
carla@a20d27ea50ff:~/carla/Util/Docker$ docker ps
bash: docker: command not found
carla@a20d27ea50ff:~/carla/Util/Docker$ sudo
bash: sudo: command not found
carla@a20d27ea50ff:~/carla/Util/Docker$ python3 docker_tools.py --input /add_map/input_folder --output /add_map/output_folder --packages map_package
- Params:
- Output path: /add_map/output_folder
- Packages: map_package
- Input path: /add_map/input_folder
- Verbose: False
Traceback (most recent call last):
File “/home/carla/.local/lib/python3.6/site-packages/urllib3/connectionpool.py”, line 710, in urlopen
chunked=chunked,
File “/home/carla/.local/lib/python3.6/site-packages/urllib3/connectionpool.py”, line 398, in _make_request
conn.request(method, url, **httplib_request_kw)
File “/usr/lib/python3.6/http/client.py”, line 1285, in request
self._send_request(method, url, body, headers, encode_chunked)
File “/usr/lib/python3.6/http/client.py”, line 1331, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File “/usr/lib/python3.6/http/client.py”, line 1280, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File “/usr/lib/python3.6/http/client.py”, line 1046, in _send_output
self.send(msg)
File “/usr/lib/python3.6/http/client.py”, line 984, in send
self.connect()
File “/home/carla/.local/lib/python3.6/site-packages/docker/transport/unixconn.py”, line 30, in connect
sock.connect(self.unix_socket)
PermissionError: [Errno 13] Permission deniedDuring handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/home/carla/.local/lib/python3.6/site-packages/requests/adapters.py”, line 450, in send
timeout=timeout
File “/home/carla/.local/lib/python3.6/site-packages/urllib3/connectionpool.py”, line 788, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File “/home/carla/.local/lib/python3.6/site-packages/urllib3/util/retry.py”, line 550, in increment
raise six.reraise(type(error), error, _stacktrace)
File “/home/carla/.local/lib/python3.6/site-packages/urllib3/packages/six.py”, line 769, in reraise
raise value.with_traceback(tb)
File “/home/carla/.local/lib/python3.6/site-packages/urllib3/connectionpool.py”, line 710, in urlopen
chunked=chunked,
File “/home/carla/.local/lib/python3.6/site-packages/urllib3/connectionpool.py”, line 398, in _make_request
conn.request(method, url, **httplib_request_kw)
File “/usr/lib/python3.6/http/client.py”, line 1285, in request
self._send_request(method, url, body, headers, encode_chunked)
File “/usr/lib/python3.6/http/client.py”, line 1331, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File “/usr/lib/python3.6/http/client.py”, line 1280, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File “/usr/lib/python3.6/http/client.py”, line 1046, in _send_output
self.send(msg)
File “/usr/lib/python3.6/http/client.py”, line 984, in send
self.connect()
File “/home/carla/.local/lib/python3.6/site-packages/docker/transport/unixconn.py”, line 30, in connect
sock.connect(self.unix_socket)
urllib3.exceptions.ProtocolError: (‘Connection aborted.’, PermissionError(13, ‘Permission denied’))During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/home/carla/.local/lib/python3.6/site-packages/docker/api/client.py”, line 214, in _retrieve_server_version
return self.version(api_version=False)[“ApiVersion”]
File “/home/carla/.local/lib/python3.6/site-packages/docker/api/daemon.py”, line 181, in version
return self._result(self._get(url), json=True)
File “/home/carla/.local/lib/python3.6/site-packages/docker/utils/decorators.py”, line 46, in inner
return f(self, *args, **kwargs)
File “/home/carla/.local/lib/python3.6/site-packages/docker/api/client.py”, line 237, in _get
return self.get(url, **self._set_request_timeout(kwargs))
File “/home/carla/.local/lib/python3.6/site-packages/requests/sessions.py”, line 542, in get
return self.request(‘GET’, url, **kwargs)
File “/home/carla/.local/lib/python3.6/site-packages/requests/sessions.py”, line 529, in request
resp = self.send(prep, **send_kwargs)
File “/home/carla/.local/lib/python3.6/site-packages/requests/sessions.py”, line 645, in send
r = adapter.send(request, **kwargs)
File “/home/carla/.local/lib/python3.6/site-packages/requests/adapters.py”, line 501, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: (‘Connection aborted.’, PermissionError(13, ‘Permission denied’))During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “docker_tools.py”, line 146, in
main()
File “docker_tools.py”, line 88, in main
client = docker.from_env()
File “/home/carla/.local/lib/python3.6/site-packages/docker/client.py”, line 101, in from_env
**kwargs_from_env(**kwargs)
File “/home/carla/.local/lib/python3.6/site-packages/docker/client.py”, line 45, in init
self.api = APIClient(*args, **kwargs)
File “/home/carla/.local/lib/python3.6/site-packages/docker/api/client.py”, line 197, in init
self._version = self._retrieve_server_version()
File “/home/carla/.local/lib/python3.6/site-packages/docker/api/client.py”, line 222, in _retrieve_server_version
f’Error while fetching server API version: {e}’
docker.errors.DockerException: Error while fetching server API version: (‘Connection aborted.’, PermissionError(13, ‘Permission denied’))