We've migrated to using WebLate a week or so ago and we've been facing
some issues related to merge conflicts, probably due to some
misconfiguration on our side, which we'd need some help to solve.
Firstly, we're receiving MRs on our GitLab directly changing po/*po
files. is that expected?
If so, what would be the best way to:
1) Avoid things like
https://translate.stg.fedoraproject.org/projects/libosinfo/libosinfo/#ale...
2) If we fail to avoid such, what would be the best way to have them
solved without actually doing a merge? libosinfo projects do *not* use
merge, just rebase is used.
Last but not least, I've failed to understand what's the best way to
use `wlc` command line tool. `wlc lock` just returns me "Error: No
object passed on command line!". But what shall I pass? `wlc lock
--help` tells me that: "object Object on which we should operate
(project, component or translation)". `wlc lock $project_name` just
returns me a bunch of errors like:
```
fidencio@laerte ~/src/upstream/libosinfo $ wlc lock libosinfo
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/urllib3/connection.py", line
157, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "/usr/lib/python3.7/site-packages/urllib3/util/connection.py",
line 84, in create_connection
raise err
File "/usr/lib/python3.7/site-packages/urllib3/util/connection.py",
line 74, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/urllib3/connectionpool.py",
line 672, in urlopen
chunked=chunked,
File "/usr/lib/python3.7/site-packages/urllib3/connectionpool.py",
line 387, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/lib64/python3.7/http/client.py", line 1252, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib64/python3.7/http/client.py", line 1298, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.7/http/client.py", line 1247, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.7/http/client.py", line 1026, in _send_output
self.send(msg)
File "/usr/lib64/python3.7/http/client.py", line 966, in send
self.connect()
File "/usr/lib/python3.7/site-packages/urllib3/connection.py", line
184, in connect
conn = self._new_conn()
File "/usr/lib/python3.7/site-packages/urllib3/connection.py", line
169, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError:
<urllib3.connection.HTTPConnection object at 0x7fe76b9e5610>: Failed
to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/requests/adapters.py", line
449, in send
timeout=timeout
File "/usr/lib/python3.7/site-packages/urllib3/connectionpool.py",
line 720, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/usr/lib/python3.7/site-packages/urllib3/util/retry.py", line
436, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1',
port=8000): Max retries exceeded with url: /api/projects/libosinfo/
(Caused by NewConnectionError('<urllib3.connection.HTTPConnection
object at 0x7fe76b9e5610>: Failed to establish a new connection:
[Errno 111] Connection refused'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/wlc", line 10, in <module>
sys.exit(main())
File "/usr/local/lib/python3.7/site-packages/wlc/main.py", line 703, in main
command.run()
File "/usr/local/lib/python3.7/site-packages/wlc/main.py", line 567, in run
obj = self.get_object()
File "/usr/local/lib/python3.7/site-packages/wlc/main.py", line 280,
in get_object
obj = super(ComponentCommand, self).get_object()
File "/usr/local/lib/python3.7/site-packages/wlc/main.py", line 262,
in get_object
return self.wlc.get_object(path)
File "/usr/local/lib/python3.7/site-packages/wlc/__init__.py", line
145, in get_object
return self.get_project(path)
File "/usr/local/lib/python3.7/site-packages/wlc/__init__.py", line
150, in get_project
return self._get_factory("projects", path, Project)
File "/usr/local/lib/python3.7/site-packages/wlc/__init__.py", line
131, in _get_factory
data = self.get("/".join((prefix, path, "")))
File "/usr/local/lib/python3.7/site-packages/wlc/__init__.py", line
118, in get
return self.request("get", path)
File "/usr/local/lib/python3.7/site-packages/wlc/__init__.py", line
82, in request
r = self.invoke_request(method, path, params, files)
File "/usr/local/lib/python3.7/site-packages/wlc/__init__.py", line
104, in invoke_request
files=files,
File "/usr/lib/python3.7/site-packages/requests/api.py", line 60, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.7/site-packages/requests/sessions.py", line
533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.7/site-packages/requests/sessions.py", line
646, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.7/site-packages/requests/adapters.py", line
516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError:
HTTPConnectionPool(host='127.0.0.1', port=8000): Max retries exceeded
with url: /api/projects/libosinfo/ (Caused by
NewConnectionError('<urllib3.connection.HTTPConnection object at
0x7fe76b9e5610>: Failed to establish a new connection: [Errno 111]
Connection refused'))
```
So, I've been using the WebUI but would be nice to understand the
workflow of the CLI tool.
Best Regards,
--
Fabiano Fidêncio