LiberTEM/LiberTEM

View on GitHub
Bump vite from 4.5.2 to 4.5.3 in /client #3759
dependabot[bot] authored a8de575d
complete00:01:04
1
git clone
2
codeclimate validate-config
View output
codeclimate validate-config
No errors or warnings found in .codeclimate.yml.
3
codeclimate prepare
View output
codeclimate prepare
4
builder pull-engines
View output
determining required images
docker pull codeclimate/codeclimate-sonar-python:b10
b10: Pulling from codeclimate/codeclimate-sonar-python
709515475419: Pulling fs layer
d1c225ed7c34: Pulling fs layer
887f300163b6: Pulling fs layer
a3ed95caeb02: Pulling fs layer
9b412187b352: Pulling fs layer
8fe915fa1948: Pulling fs layer
a3ed95caeb02: Waiting
65145a386a45: Pulling fs layer
9b412187b352: Waiting
a64dfb9c0f27: Pulling fs layer
59a464ab5a51: Pulling fs layer
47413513c002: Pulling fs layer
9f30da6d3676: Pulling fs layer
a64dfb9c0f27: Waiting
59a464ab5a51: Waiting
47413513c002: Waiting
9f30da6d3676: Waiting
8fe915fa1948: Waiting
65145a386a45: Waiting
d1c225ed7c34: Download complete
709515475419: Download complete
709515475419: Pull complete
a3ed95caeb02: Verifying Checksum
a3ed95caeb02: Download complete
9b412187b352: Verifying Checksum
9b412187b352: Download complete
d1c225ed7c34: Pull complete
65145a386a45: Verifying Checksum
65145a386a45: Download complete
887f300163b6: Verifying Checksum
887f300163b6: Download complete
59a464ab5a51: Download complete
8fe915fa1948: Download complete
47413513c002: Verifying Checksum
47413513c002: Download complete
a64dfb9c0f27: Verifying Checksum
a64dfb9c0f27: Download complete
887f300163b6: Pull complete
a3ed95caeb02: Pull complete
9f30da6d3676: Verifying Checksum
9f30da6d3676: Download complete
9b412187b352: Pull complete
8fe915fa1948: Pull complete
65145a386a45: Pull complete
a64dfb9c0f27: Pull complete
59a464ab5a51: Pull complete
47413513c002: Pull complete
9f30da6d3676: Pull complete
Digest: sha256:7904831e83e5474cba8a95726a691787d74d669d74a8721f114057ebb4a8943d
Status: Downloaded newer image for registry.prod.codeclimate.net/codeclimate/codeclimate-sonar-python:b10
docker pull codeclimate/codeclimate-radon:b695
b695: Pulling from codeclimate/codeclimate-radon
e00d546a75ad: Pulling fs layer
21f0a0866768: Pulling fs layer
cd9d3946aa16: Pulling fs layer
2e56add6654f: Pulling fs layer
6c87f215a2be: Pulling fs layer
c2b31566ca3d: Pulling fs layer
2e56add6654f: Waiting
6c87f215a2be: Waiting
21f0a0866768: Download complete
e00d546a75ad: Download complete
e00d546a75ad: Pull complete
cd9d3946aa16: Verifying Checksum
cd9d3946aa16: Download complete
6c87f215a2be: Download complete
21f0a0866768: Pull complete
c2b31566ca3d: Verifying Checksum
c2b31566ca3d: Download complete
cd9d3946aa16: Pull complete
2e56add6654f: Verifying Checksum
2e56add6654f: Download complete
2e56add6654f: Pull complete
6c87f215a2be: Pull complete
c2b31566ca3d: Pull complete
Digest: sha256:dfeb7edc634b4e2f851f3c788f7c21bd8bae097d4c66af722c76a6ba51121f98
Status: Downloaded newer image for registry.prod.codeclimate.net/codeclimate/codeclimate-radon:b695
docker pull codeclimate/codeclimate-bandit:b866
b866: Pulling from codeclimate/codeclimate-bandit
a0e0ef996968: Pulling fs layer
00c69949e211: Pulling fs layer
124b11ffd9dc: Pulling fs layer
74d262bd6915: Pulling fs layer
963a4e0e1415: Pulling fs layer
ea041886215a: Pulling fs layer
3bbf7ff90c63: Pulling fs layer
963a4e0e1415: Waiting
ea041886215a: Waiting
3bbf7ff90c63: Waiting
74d262bd6915: Waiting
00c69949e211: Verifying Checksum
00c69949e211: Download complete
a0e0ef996968: Verifying Checksum
a0e0ef996968: Download complete
124b11ffd9dc: Verifying Checksum
124b11ffd9dc: Download complete
a0e0ef996968: Pull complete
ea041886215a: Verifying Checksum
ea041886215a: Download complete
963a4e0e1415: Verifying Checksum
963a4e0e1415: Download complete
00c69949e211: Pull complete
3bbf7ff90c63: Verifying Checksum
3bbf7ff90c63: Download complete
124b11ffd9dc: Pull complete
74d262bd6915: Verifying Checksum
74d262bd6915: Download complete
74d262bd6915: Pull complete
963a4e0e1415: Pull complete
ea041886215a: Pull complete
3bbf7ff90c63: Pull complete
Digest: sha256:b831294279e697e4402c0bd94153247577b1e1297055bac81a8e2922b4dedba5
Status: Downloaded newer image for registry.prod.codeclimate.net/codeclimate/codeclimate-bandit:b866
5
structure
View output
12
Parser process id: 12
codeclimate-parser socket not present
waiting 1s...
W, [2024-04-08T14:32:09.626231 #1]  WARN -- : Skipping src/libertem/web/client/assets/index-cff78375.js due to CC::Parser::Client::HTTPError
W, [2024-04-08T14:32:09.626295 #1]  WARN -- : Response status: 413
6
duplication
View output
12
Parser process id: 12
codeclimate-parser socket not present
waiting 1s...
W, [2024-04-08T14:32:24.067202 #1]  WARN -- : Skipping ./src/libertem/web/client/assets/index-cff78375.js due to CC::Parser::Client::HTTPError
W, [2024-04-08T14:32:24.067261 #1]  WARN -- : Response status: 413
I, [2024-04-08T14:32:24.948354 #1]  INFO -- : Skipping file ./scripts/run_mypy.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 16
    raise RuntimeError(f"File {f} on line {i} in .mypy-checked does not exist.")
                                                                              ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.068191 #1]  INFO -- : Skipping file ./src/libertem/viz/base.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 131
    raise ValueError(f"No plottable 2D channel found for {udf.__class__.__name__}")
                                                                                 ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.109141 #1]  INFO -- : Skipping file ./src/libertem/viz/mpl.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 74
    **kwargs,
            ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.126929 #1]  INFO -- : Skipping file ./src/libertem/utils/devices.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 26
    cpus: list[int]
        ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.189161 #1]  INFO -- : Skipping file ./src/libertem/executor/dask.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 30
    def __init__(self, comms_topic: Optional[str]):
                                  ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.204168 #1]  INFO -- : Skipping file ./src/libertem/executor/inline.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 18
    def __init__(self, queue: SimpleWorkerQueue, msg_queue: SimpleWorkerQueue):
                            ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.222070 #1]  INFO -- : Skipping file ./src/libertem/executor/utils/dask_buffer.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 12
    def from_buffer(cls, buffer: BufferWrapper):
                               ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.227898 #1]  INFO -- : Skipping file ./src/libertem/executor/base.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 29
    def get_udf_runner(self) -> type['UDFRunner']:
                             ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.238777 #1]  INFO -- : Skipping file ./src/libertem/executor/utils/delayed_unpack.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 7
    def default_unpackable() -> dict[type, Callable[[Iterable], Iterable[tuple[Any, Any]]]]:
                             ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.240795 #1]  INFO -- : Skipping file ./src/libertem/executor/utils/shmqueue.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 18
    shm_name: str
            ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.253246 #1]  INFO -- : Skipping file ./src/libertem/executor/utils/__init__.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 7
    def assign_cudas(cudas: Union[int, Iterable[int]]) -> Iterable[int]:
                          ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.256162 #1]  INFO -- : Skipping file ./src/libertem/executor/utils/dask_inplace.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 85
    def __setitem__(self, key, value: Union[nt.ArrayLike, Number]):
                                    ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.268856 #1]  INFO -- : Skipping file ./src/libertem/executor/concurrent.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 31
    def __init__(self, msg_queue: WorkerQueue):
                                ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.274457 #1]  INFO -- : Skipping file ./src/libertem/executor/cli.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 34
    @click.option('-l', '--log-level', help=f"set logging level. Default is 'info'. {log_values}",
                                                                                                ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.284576 #1]  INFO -- : Skipping file ./src/libertem/executor/delayed.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 32
    def __init__(self, udfs: list[UDF], debug: bool = False, progress_reporter: Any = None):
                           ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.304846 #1]  INFO -- : Skipping file ./src/libertem/executor/pipelined.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 49
    request: "WorkerQueue"
           ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.308622 #1]  INFO -- : Skipping file ./src/libertem/api.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 79
    task_results: Generator[UDFResults, None, None],
                ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.337692 #1]  INFO -- : Skipping file ./src/libertem/common/shape.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 22
    def __init__(self, shape: "ShapeLike", sig_dims: int):
                            ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.339025 #1]  INFO -- : Skipping file ./src/libertem/common/messageconverter.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 6
    SCHEMA: Optional[dict] = None
          ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.352562 #1]  INFO -- : Skipping file ./src/libertem/common/threading.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 147
    f"Attempting to set threads to {n}, which is larger than "
                                                             ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.355507 #1]  INFO -- : Skipping file ./src/libertem/common/executor.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 51
    threads_per_worker: Optional[int],
                      ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.369943 #1]  INFO -- : Skipping file ./src/libertem/common/tracing.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 18
    service_name: str,
                ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.371596 #1]  INFO -- : Skipping file ./src/libertem/common/backend.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 23
    def get_use_cuda() -> Optional[int]:
                       ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.388684 #1]  INFO -- : Skipping file ./src/libertem/common/win_tweaks.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 25
    return f"{domain}\\{name}"
                             ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.391844 #1]  INFO -- : Skipping file ./src/libertem/common/sparse.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 19
    def to_sparse(a, shape: Optional[Union['Shape', tuple[int, ...]]] = None):
                          ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.402557 #1]  INFO -- : Skipping file ./src/libertem/common/scheduler.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 10
    def __init__(self, workers: list["Worker"]):
                              ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.412447 #1]  INFO -- : Skipping file ./src/libertem/common/numba/__init__.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 116
    raise ValueError(f"Shape of left_dense is not 2D, but {left_dense.shape}.")
                                                                             ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.421639 #1]  INFO -- : Skipping file ./src/libertem/common/numba/cache.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 105
    logger.info(f"numba cache miss {self._name} {self._py_func}")
                                                               ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.427846 #1]  INFO -- : Skipping file ./src/libertem/common/container.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 33
    def _build_sparse(m, dtype: npt.DTypeLike, sparse_backend: SparseSupportedT, backend: ArrayBackend):
                              ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.440427 #1]  INFO -- : Skipping file ./src/libertem/common/analysis.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 30
    raw_data: np.ndarray,
            ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.442751 #1]  INFO -- : Skipping file ./src/libertem/common/viz.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 7
    def encode_image(result, save_kwargs: Optional[dict] = None) -> BytesIO:
                                        ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.455080 #1]  INFO -- : Skipping file ./src/libertem/common/async_utils.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 30
    raise MyStopIteration() from e
                               ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.458783 #1]  INFO -- : Skipping file ./src/libertem/common/slice.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 31
    def __init__(self, origin: Sequence[int], shape: Shape):
                             ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.473169 #1]  INFO -- : Skipping file ./src/libertem/common/udf.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 24
    depth: Union[int, TileDepthEnum]
         ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.484236 #1]  INFO -- : Skipping file ./src/libertem/common/buffers.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 25
    def _alloc_aligned(size: int, blocksize: int = 4096) -> mmap.mmap:
                           ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.497298 #1]  INFO -- : Skipping file ./src/libertem/common/progress.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 30
    def __init__(self, queue: 'WorkerQueue', subscriptions: dict[str, list[Callable]]):
                            ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.504572 #1]  INFO -- : Skipping file ./src/libertem/common/math.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 20
    def prod(iterable: Iterable[ProdAccepted]):
                     ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.512260 #1]  INFO -- : Skipping file ./src/libertem/contrib/daskadapter.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 24
    def make_dask_array(dataset: DataSet, dtype='float32', roi=None,
                               ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.527567 #1]  INFO -- : Skipping file ./src/libertem/contrib/convert_transposed.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 19
    def _ds_shape(self) -> Shape:
                        ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.546677 #1]  INFO -- : Skipping file ./src/libertem/analysis/masks.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 68
    desc=f'{self.get_description()} lin-scaled'
                                              ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.563498 #1]  INFO -- : Skipping file ./src/libertem/analysis/clust.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 64
    f"{indent}sd_udf_results = ctx.run_udf(dataset=ds, udf=stddev_udf, roi=roi,"
                                                                               ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.567573 #1]  INFO -- : Skipping file ./src/libertem/analysis/rawfft.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 25
    f"pickfft_analysis = PickFFTFrameAnalysis(dataset=ds, parameters={self.params})",
                                                                                   ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.578425 #1]  INFO -- : Skipping file ./src/libertem/analysis/radialfourier.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 43
    params.append(f'{k}={self.params[k]}')
                                        ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.583982 #1]  INFO -- : Skipping file ./src/libertem/analysis/disk.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 27
    params.append(f'{k}={self.params[k]}')
                                        ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.596941 #1]  INFO -- : Skipping file ./src/libertem/analysis/fullmatch.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 263
    def _do_match(self, point_selection: grm.PointSelection, zero, polar_vectors):
                                       ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.608054 #1]  INFO -- : Skipping file ./src/libertem/analysis/sum.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 32
    f"{roi}",
           ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.612412 #1]  INFO -- : Skipping file ./src/libertem/analysis/apply_fft_mask.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 22
    temp_analysis = [f"fft_analysis = ApplyFFTMask(dataset=ds, parameters={self.params})",
                                                                                        ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.621679 #1]  INFO -- : Skipping file ./src/libertem/analysis/raw.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 32
    params.append(f'{k}={self.params[k]}')
                                        ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.627706 #1]  INFO -- : Skipping file ./src/libertem/analysis/base.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 37
    TYPE: Literal["UDF"] = "UDF"
        ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.637645 #1]  INFO -- : Skipping file ./src/libertem/analysis/gridmatching.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 37
    def __init__(self, correlation_result: CorrelationResult, selector=None):
                                         ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.644356 #1]  INFO -- : Skipping file ./src/libertem/analysis/com.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 59
    params.append(f'{k}={self.params[k]}')
                                        ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.660751 #1]  INFO -- : Skipping file ./src/libertem/analysis/sd.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 31
    f"{roi}",
           ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.677177 #1]  INFO -- : Skipping file ./src/libertem/analysis/sumfft.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 28
    temp_analysis = [f"sumfft_analysis = SumfftAnalysis(dataset=ds, parameters={self.params})",
                                                                                             ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.682954 #1]  INFO -- : Skipping file ./src/libertem/analysis/fem.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 29
    params = f"center=({cx},{cy}), rad_in={ri}, rad_out={ro}"
                                                            ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.710817 #1]  INFO -- : Skipping file ./src/libertem/analysis/ring.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 27
    params.append(f'{k}={self.params[k]}')
                                        ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.712522 #1]  INFO -- : Skipping file ./src/libertem/analysis/sumsig.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 21
    temp_analysis = [f"sumsig_analysis = SumSigAnalysis(dataset=ds, parameters={self.params})",
                                                                                             ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.725792 #1]  INFO -- : Skipping file ./src/libertem/analysis/point.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 28
    params.append(f'x={x}')
                         ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.728225 #1]  INFO -- : Skipping file ./src/libertem/analysis/helper.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 14
    short_name: Optional[str] = None
              ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.739941 #1]  INFO -- : Skipping file ./src/libertem/web/connect.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 21
    def initialize(self, state: SharedState, event_registry: "EventRegistry"):
                              ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.743293 #1]  INFO -- : Skipping file ./src/libertem/web/events.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 44
    def initialize(self, state: SharedState, event_registry: EventRegistry):
                              ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.756993 #1]  INFO -- : Skipping file ./src/libertem/web/browse.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 12
    def initialize(self, state: SharedState, event_registry):
                              ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.757728 #1]  INFO -- : Skipping file ./src/libertem/web/generator.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 12
    def initialize(self, state: SharedState, event_registry):
                              ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.774421 #1]  INFO -- : Skipping file ./src/libertem/web/base.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 26
    async def result_images(results: AnalysisResultSet, pool, save_kwargs=None):
            ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.774652 #1]  INFO -- : Skipping file ./src/libertem/web/helpers.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 8
    def _int_or_zero(value) -> int:
                            ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.788626 #1]  INFO -- : Skipping file ./src/libertem/web/analysis.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 27
    def initialize(self, state: SharedState, event_registry):
                              ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.791794 #1]  INFO -- : Skipping file ./src/libertem/web/event_bus.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 14
    async def run(self):
            ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.803318 #1]  INFO -- : Skipping file ./src/libertem/web/rpc.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 33
    self, state: "SharedState", compound_analysis_id: str, engine: "JobEngine"
               ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.805444 #1]  INFO -- : Skipping file ./src/libertem/web/cli.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 20
    f'{token_path} is empty! Refusing to start with insecure configuration.'
                                                                           ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.817787 #1]  INFO -- : Skipping file ./src/libertem/web/server.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 45
    def initialize(self, state: SharedState, event_registry):
                              ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.822638 #1]  INFO -- : Skipping file ./src/libertem/web/messages.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 122
    def job_progress(self, job_id: str, state: ProgressState, event: str):
                                 ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.871447 #1]  INFO -- : Skipping file ./src/libertem/web/notebook_generator/code_template.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 11
    def __repr__(self) -> str:
                       ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.877168 #1]  INFO -- : Skipping file ./src/libertem/web/config.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 17
    def initialize(self, state: SharedState, event_registry):
                              ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.889751 #1]  INFO -- : Skipping file ./src/libertem/web/jobs.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 21
    def initialize(self, state: SharedState, event_registry: "EventRegistry"):
                              ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.895361 #1]  INFO -- : Skipping file ./src/libertem/web/engine.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 43
    state: SharedState,
         ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.906034 #1]  INFO -- : Skipping file ./src/libertem/web/shutdown.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 10
    def initialize(self, state: SharedState, event_registry):
                              ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.922417 #1]  INFO -- : Skipping file ./src/libertem/web/state.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 45
    event_bus: EventBus,
             ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.924199 #1]  INFO -- : Skipping file ./src/libertem/web/dataset.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 63
    def initialize(self, state: SharedState, event_registry):
                              ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.938216 #1]  INFO -- : Skipping file ./src/libertem/web/models.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 17
    id: str
      ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.952908 #1]  INFO -- : Skipping file ./src/libertem/io/writers/results/base.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 13
    registry: dict = {}
            ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:25.958971 #1]  INFO -- : Skipping file ./src/libertem/io/fs.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 17
    def _access_ok(path: Path):
                       ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:26.015313 #1]  INFO -- : Skipping file ./src/libertem/io/corrections/detector.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 290
    f"Empty repair environments for pixel(s) number {empty}."
                                                            ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:26.028896 #1]  INFO -- : Skipping file ./src/libertem/io/corrections/corrset.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 102
    dark: Optional[np.ndarray] = None,
        ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:26.061229 #1]  INFO -- : Skipping file ./src/libertem/io/utils.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 21
    dataset_shape: Shape,
                 ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:26.079685 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/mrc.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 259
    return f"<MRCDataSet for {self._path}>"
                                          ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:26.082387 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/raw_csr.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 28
    def load_toml(path: str):
                      ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:26.095270 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/empad.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 45
    raise ValueError(f"unknown type: {typ.text}")
                                               ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:26.108319 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/dm_single.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 95
    path: os.PathLike,
        ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:26.112675 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/ser.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 223
    raise DataSetException("invalid dataset: %s" % e) from e
                                                         ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:26.127555 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/tvips.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 114
    version: int
           ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:26.136482 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/frms6.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 382
    self, start_at_frame: int, stop_before_frame: int,
                        ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:26.147761 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/seq.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 461
    path: str,
        ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:26.150659 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/mib.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 107
    def _pattern(path: str) -> str:
                     ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:26.162347 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/dask.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 137
    def __init__(self, dask_array, *, sig_dims, preserve_dimensions=True,
                                    ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:26.212465 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/raw.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 247
    return f"<RawFileDataSet of {self.dtype} shape={self.shape}>"
                                                                ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:26.221801 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/blo.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 228
    raise DataSetException(f"invalid magic number: {magic:x} != {MAGIC_EXPECT:x}")
                                                                                ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:26.233331 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/dm.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 66
    SCHEMA: dict = {}
          ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:26.284516 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/base/roi.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 11
    def _roi_to_nd_indices(roi, part_slice: Slice):
                                          ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:26.298514 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/base/backend.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 14
    registry: dict[str, type["IOBackend"]] = {}
            ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:26.302644 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/base/meta.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 41
    shape: Shape,
         ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:26.314422 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/base/file.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 14
    file_offset: int  # number of bytes to skip at the beginning of the file
               ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:26.321095 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/base/tiling_scheme.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 27
    self, slices: list[Slice],
                ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:26.336810 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/base/backend_direct.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 7
    class DirectBackend(IOBackend, id_="direct"):
                                      ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:26.336941 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/base/coordinates.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 8
    def get_coordinates(slice_: Slice, ds_shape: Shape, roi=None) -> np.ndarray:
                              ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:26.350070 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/base/partition.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 53
    meta: DataSetMeta,
        ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:26.350701 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/base/tiling.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 284
    def flat_data(self) -> np.ndarray:
                        ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:26.365266 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/base/backend_buffered.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 208
    class BufferedBackend(IOBackend, id_="buffered"):
                                        ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:26.380211 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/base/backend_mmap.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 68
    class MMapBackend(IOBackend, id_="mmap"):
                                    ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:26.382371 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/base/utils.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 32
    def __init__(self, low: int, high: int, value: typing.Any, idx: int,
                          ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:26.396123 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/base/dataset.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 26
    def __init__(self, io_backend: Optional["IOBackend"] = None):
                                 ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:26.400644 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/base/fileset.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 20
    self, files: list[File],
               ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:26.416525 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/hdf5.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 71
    def _ensure_2d_nav(nav_shape: tuple[int, ...]) -> tuple[int, int]:
                                ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:26.432334 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/npy.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 67
    dtype: str
         ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:26.432970 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/k2is.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 686
    self, start_at_frame: int, stop_before_frame: int,
                        ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:26.446390 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/cached.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 34
    def __init__(self, dataset: str, partition: int, size: int, path: str):
                              ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:26.449446 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/__init__.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 36
    def build_extension_map() -> dict[str, list[str]]:
                              ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:26.462654 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/memory.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 93
    sync_offset, corrections, array_backend: ArrayBackend,
                                           ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:26.466347 #1]  INFO -- : Skipping file ./src/libertem/udf/masks.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 13
    def __init__(self, masks: MaskContainer, meta: UDFMeta, use_torch: bool):
                            ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:26.476319 #1]  INFO -- : Skipping file ./src/libertem/udf/stddev.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 299
    def __init__(self, dtype=None, use_numba=True) -> None:
                                                   ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:26.493119 #1]  INFO -- : Skipping file ./src/libertem/udf/holography.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 123
    raise ValueError(f"invalid sb_position {sb_position!r}, must be tuple of length 2")
                                                                                     ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:26.522190 #1]  INFO -- : Skipping file ./src/libertem/udf/base.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 71
    gen: Generator[tuple[tuple["UDFData", ...], TaskProtocol], None, None],
       ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:26.554576 #1]  INFO -- : Skipping file ./src/libertem/udf/com.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 38
    cy: Optional[float] = None
      ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:26.632749 #1]  INFO -- : Skipping file ./src/libertem/udf/record.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 30
    def _ds_shape(self) -> Shape:
                        ^
SyntaxError: invalid syntax


I, [2024-04-08T14:32:26.672339 #1]  INFO -- : Skipping file setup.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 61
    f"copying client: {build} -> {client}",
                                         ^
SyntaxError: invalid syntax
7
sonar-python
sonar-python engine documentation
View output
INFO: Java 1.8.0_111-internal Oracle Corporation (64-bit)
INFO: Linux 4.4.0-1128-aws amd64
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/src/app/build/libs/sonarlint-core-2.17.0.899.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/src/app/build/libs/sonarlint-cli-2.1.0.566.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
INFO: Index files
INFO: Invalid character encountered in file '/code/examples/live-plotting-grid.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/corporatedesign/logo/LiberTEM logo-hires.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/corporatedesign/logo/icons/16x16/apps/libertem.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/corporatedesign/logo/icons/48x48/apps/libertem.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/corporatedesign/logo/icons/256x256/apps/libertem.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/corporatedesign/logo/icons/32x32/apps/libertem.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/corporatedesign/logo/icons/512x512/apps/libertem.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/corporatedesign/logo/favicon.ico' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/corporatedesign/logo/LiberTEM logo-hires-transparent.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/corporatedesign/logo/LiberTEM logo.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/corporatedesign/logo/LiberTEM logo icon-512-white.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/corporatedesign/logo/LiberTEM logo-medium.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/corporatedesign/logo/LiberTEM logo icon-256-white.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/corporatedesign/logo/LiberTEM logo-transparent.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/corporatedesign/fonts/Audiowide-Regular.ttf' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/src/libertem/web/client/assets/outline-icons-4bc359c2.woff' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/src/libertem/web/client/assets/icons-8b4e1b84.eot' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/src/libertem/web/client/assets/flags-94d5c7f1.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/src/libertem/web/client/assets/icons-cb7f81f5.ttf' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/src/libertem/web/client/assets/icons-434466b5.woff2' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/src/libertem/web/client/assets/outline-icons-4537fa06.eot' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/src/libertem/web/client/assets/outline-icons-67172172.ttf' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/src/libertem/web/client/assets/LiberTEM logo-medium-af9fe367.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/src/libertem/web/client/assets/brand-icons-42e369dc.ttf' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/src/libertem/web/client/assets/outline-icons-4d288344.woff2' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/src/libertem/web/client/assets/brand-icons-9fafd6c3.woff' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/src/libertem/web/client/assets/brand-icons-d023c55f.eot' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/src/libertem/web/client/assets/icons-95b6a484.woff' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/src/libertem/web/client/assets/brand-icons-e7d4d534.woff2' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/src/libertem/web/client/favicon.ico' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/client/public/favicon.ico' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/client/src/images/LiberTEM logo-medium.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/_static/logo.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/app/images/phasechange/1.PNG' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/app/images/phasechange/pickcrystalline.PNG' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/app/images/phasechange/newdatawithoutmasking.PNG' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/app/images/phasechange/second.PNG' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/app/images/phasechange/mode.PNG' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/app/images/phasechange/newdatapickam.PNG' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/app/images/phasechange/2.PNG' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/app/images/phasechange/newdatawithmasking.PNG' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/app/images/phasechange/pickam.PNG' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/app/images/phasechange/first.PNG' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/app/images/phasechange/newdatapickcryst.PNG' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/app/images/phasechange/interf.PNG' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/app/images/fem/fem-select.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/app/images/fem/fem.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/app/images/fem/fem-pick.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/app/images/holography/holograms.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/app/images/holography/amplitude_phase.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/app/images/holography/amp_comparison.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/app/images/holography/phase_comparison.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/app/images/holography/FFT_reference.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/app/images/radialfourier/radialfourier-channel.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/app/images/radialfourier/radialfourier-pick.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/app/images/radialfourier/radialfourier.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/app/images/radialfourier/select.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/performance/CPU-bound-single-node.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/performance/IO-bound-madmax.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/FZJ.jpg' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/favicon.ico' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/forking_button.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/app/com-example.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/EU.jpg' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/jaeger-tracing-visualization.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/tree-default-merge.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/Helmholtz-lower.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/architecture.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/udf-diagram.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/tree-merge-all.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/Principle.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/AIDAS-logo.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/Helmholtz.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/read_from_hdfs_profile.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/GSoC-icon-192.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/use/jupyter-hub.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/use/apply.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/use/download-modal.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/use/pick.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/use/create.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/use/rect.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/use/type.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/use/add_analysis.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/use/browse.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/use/load.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/use/star.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/use/adjust.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/use/open.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/use/image.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/use/pick_frame.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/use/copy-jupyter.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/use/jupyter-lab.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/use/download-btn.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/use/download-jupyter.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/use/com.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/use/std_dev.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/Future.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/Gatan-logo-vertical.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/udf/live-plotting-grid.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: 613 files indexed
ERROR: Unable to parse file: /code/src/libertem/viz/mpl.py
ERROR: Parse error at line 74 column 20:

   72: __init__(
   73:             self, dataset, udf, roi=None, channel=None, title=None, min_delta=0.5, udfresult=None,
  -->              **kwargs,
   75:     ):
   76:         super().__init__(
   77:             dataset=dataset,
   78:             udf=udf,
   79:             roi=roi,
   80:             channel=channel,
   81:             title=title

ERROR: Unable to parse file: /code/src/libertem/utils/devices.py
ERROR: Parse error at line 26 column 8:

   18: e:
   19: 
   20: 
   21:     warnings.warn(repr(e), RuntimeWarning)
   22:     cupy = None
   23: 
   24: 
   25: class DetectResult(TypedDict):
  -->      cpus: list[int]
   27:     cudas: list[int]
   28:     has_cupy: bool
   29: 
   30: 
   31: def detect() -> DetectResult:
   32:     '''
   33:     Detect which devices are present
   34: 
   35:     .. versionadded:: 0.6.0
   36: 
   37:     Returns
   38:     -------
   39:     dict
   40:         Dictionary with keys :code:`'cpus'` and :code:`'cudas'`
   41:         Each containing
   42:         a list of devices. Only physical CPU cores are counted, i.e. no
   43:         hyperthreading.
   44:         Additionally it has the key :code:`'has_cupy'`, which signals
   45:         if cupy is installed and available.
   46:     '''
   47: 

ERROR: Unable to parse file: /code/src/libertem/executor/dask.py
ERROR: Parse error at line 259 column 10:

  249: : task_result,
  250:         "task_id": task_id,
  251:     }
  252: 
  253: 
  254: def _simple_run_task(task):
  255:     return task()
  256: 
  257: 
  258: class CommonDaskMixin:
  -->      client: dd.Client
  260: 
  261:     def _task_idx_to_workers(self, workers: WorkerSet, idx: int) -> WorkerSet:
  262:         hosts = list(sorted(

ERROR: Unable to parse file: /code/src/libertem/executor/utils/shmqueue.py
ERROR: Parse error at line 18 column 12:

   11: libertem.common.executor import WorkerQueue, WorkerQueueEmpty
   12: 
   13: if TYPE_CHECKING:
   14:     from multiprocessing import shared_memory
   15: 
   16: 
   17: class PoolAllocation(NamedTuple):
  -->      shm_name: str
   19:     handle: int                                       
   20:     full_size: int                                                             
   21:     req_size: int                             
   22: 
   23:     def resize(self, new_req_size) -> "PoolAllocation":
   24:         assert new_req_size

ERROR: Unable to parse file: /code/src/libertem/executor/pipelined.py
ERROR: Parse error at line 49 column 11:

   41: get_tracer(__name__)
   42: logger = logging.getLogger(__name__)
   43: 
   44: 
   45: T = TypeVar('T')
   46: 
   47: 
   48: class WorkerQueues(NamedTuple):
  -->      request: "WorkerQueue"
   50:     response: "WorkerQueue"
   51:     message: "WorkerQueue"
   52: 
   53: 
   54: class WorkerSpec(TypedDict):
   55:     name: str
   56:     device_id: int
   57:     device_kind:

ERROR: Unable to parse file: /code/src/libertem/api.py
ERROR: Parse error at line 239 column 4:

  236: ] = None,
  237:         gpus: Optional[Union[int, Iterable[int]]] = None,
  238:         plot_class: Optional['Live2DPlot'] = None,
  -->      ) -> 'Context':
  240:         '''
  241:         Create a Context with a specific kind of executor.
  242: 
  243:         .. versionadded:: 0.9.0
  244: 
  245:         This simplifies creating a :class:`Context` for a number of common executor
  246:         choices and allows specification of the resources used to create the executor.
  247:         For more fine-grained control of resource allocation create the
  248:         executor manually and pass it to the :class:`Context`.
  249: 
  250:         See :ref:`executors` for general information on executors.
  251: 
  252:         .. versionchanged:: 0.12.0
  253: 
  254:             Prior to version 0.12.0, this function accepted :code:`*args, **kwargs`
  255:             and passed them to the initializer of :class:`Context`. Given that the
  256:             Context accepts only the :code:`plot_class` keyword-argument this was
  257:             hard-coded into this function for backwards-compatibility, enabling
  258:             the addition of the :code:`cpus` and :code:`gpus` parameters.
  259: 
  260:         Parameters
  261:         ----------
  262: 
  263:         executor_spec : ExecutorSpecType, optional, by default "dask"
  264:             A string identifier for executor variants:
  265: 
  266:             "synchronous", "inline":
  267:                 Use a single-process, single-threaded
  268:                 :class:`~libertem.executor.inline.InlineJobExecutor`
  269:             "threads":
  270:                 Use a multi-threaded :class:`~libertem.executor.concurrent.ConcurrentJobExecutor`
  271:             "dask":
  272:                 Create a standard :class:`~libertem.executor.dask.DaskJobExecutor` without
  273:                 considering any pre-existing Dask schedulers available on the system, similar to
  274:                 the default behaviour of :code:`Context()` called with no arguments.
  275:             "dask-integration":
  276:                 Use a JobExecutor that is compatible with the currently active Dask scheduler.
  277:                 See :func:`~libertem.executor.integration.get_dask_integration_executor` for
  278:                 more information.
  279:             "dask-make-default":
  280:                 Create a local :code:`dask.distributed` cluster and client
  281:                 using :meth:`~libertem.executor.dask.DaskJobExecutor.make_local`.
  282:                 The Client will be set as the default Dask scheduler and will
  283:                 persist after the LiberTEM Context closes, which is suitable for downstream
  284:                 computation using :code:`dask.distributed`.
  285:             "delayed":
  286:                 Create a :class:`~libertem.executor.delayed.DelayedJobExecutor` which performs
  287:                 computation using `dask.delayed <https://docs.dask.org/en/stable/delayed.html>`_.
  288:                 This functionality is highly experimental at this time, see
  289:                 :ref:`delayed_udfs` for more information.
  290:             "pipelined":
  291:                 Create a :class:`~libertem.executor.pipelined.PipelinedExecutor`,
  292:                 which is suitable for multi-process streaming live processing
  293:                 using `LiberTEM-live <https://libertem.github.io/LiberTEM-live/>`_
  294:         cpus : int | Iterable[int], optional
  295:             The number of CPU workers to create, where possible. The meaning of
  296:             CPU worker depends on the type of executor created - threaded executors
  297:             will interpret :code:`cpus` to choose the number of threads, while process-based
  298:             executors will interpret the value to choose the number of processes to spawn.
  299:             The iterable form of of the argument is intended contain CPU-id values to
  300:             enable cpu-pinning where the exector and the system support it, but most
  301:             use cases will only require an integer argument. Executors where this
  302:             parameter does not make sense will raise an error if provided.
  303:             When unspecified the default executor behaviour is retained.
  304:         gpus : int | Iterable[int], optional
  305:             Similar to :code:`cpus`, specifies the number of GPU workers to create
  306:             where the executor chosen supports it, else raise an error. The integer
  307:             form of the argument specifies the total number of workers to create,
  308:             assigned according to the implementation of each executor, while
  309:             the iterable form allows assigment of multiple workers to specific GPUs
  310:             by repeating the id of any given GPU in the argument.
  311:             When unspecified the default executor behaviour is retained.
  312:         plot_class : libertem.viz.base.Live2DPlot, optional
  313:             Plot class for live plotting, passed to :class:`Context`.
  314: 
  315:         Raises
  316:         ------
  317:         libertem.common.exceptions.ExecutorSpecException :
  318:             for invalid executor choice or unsupported worker specifications
  319: 
  320:         Returns
  321:         -------
  322:         Instance of :class:`Context` using a new instance of the specified executor.
  323:         '''
  324: 
  325: 
  326:         cpu_spec = cpus is not None
  327:         gpu_spec = gpus is not None
  328:         has_spec = cpu_spec or gpu_spec
  329:         limited_execs

ERROR: Unable to parse file: /code/src/libertem/common/messageconverter.py
ERROR: Parse error at line 6 column 10:

    1: from typing import Optional
    2: import jsonschema
    3: 
    4: 
    5: class MessageConverter:
  -->      SCHEMA: Optional[dict] = None
    7: 
    8:     def validate(self, raw_data):
    9:         if self.SCHEMA is None:
   10:             raise NotImplementedError(

ERROR: Unable to parse file: /code/src/libertem/common/executor.py
ERROR: Parse error at line 521 column 14:

  512: NotImplementedError()
  513: 
  514: 
  515: class SimpleWorkerQueue(WorkerQueue):
  516:     """
  517:     A :class:`WorkerQueue` that uses a threading :class:`python:queue.Queue`
  518:     under the hood.
  519:     """
  520:     def __init__(self) -> None:
  -->          self.q: queue.Queue = queue.Queue()
  522: 
  523:     def put(self, header, payload: Optional[memoryview] = None):
  524: 

ERROR: Unable to parse file: /code/src/libertem/common/container.py
ERROR: Parse error at line 146 column 24:

  139: :
  140:             backend = 'numpy'
  141:         self.backend = backend
  142:         self._get_masks_for_slice = {}
  143: 
  144: 
  145:         self._default_sparse = default_sparse
  -->          self._use_sparse: Union[Literal[False], None, SparseSupportedT]
  147: 
  148: 
  149: 
  150:         if use_sparse is True:
  151:             self._use_sparse = default_sparse
  152:         elif use_sparse is

ERROR: Unable to parse file: /code/src/libertem/common/udf.py
ERROR: Parse error at line 24 column 9:

   16: = object()
   17: 
   18: 
   19: class TileSizeEnum(Enum):
   20:     TILE_SIZE_BEST_FIT = object()
   21: 
   22: 
   23: class TilingPreferences(TypedDict):
  -->      depth: Union[int, TileDepthEnum]
   25:     total_size: Union[float, int]
   26: 
   27: 
   28: class UDFMethod(Enum):
   29:     TILE = 'tile'
   30: 

ERROR: Unable to parse file: /code/src/libertem/common/buffers.py
ERROR: Parse error at line 52 column 9:

   47: 
   48:     size_flat = prod(size)
   49:     dtype = np.dtype(dtype)
   50:     buf = _alloc_aligned(dtype.itemsize * size_flat)
   51: 
  -->      npbuf: np.ndarray = np.frombuffer(buf, dtype=dtype)[:size_flat]
   53:     return npbuf.reshape(size)
   54: 
   55: 
   56: def

ERROR: Unable to parse file: /code/src/libertem/common/progress.py
ERROR: Parse error at line 82 column 23:

   71: topic, msg)
   72:                                 exceptKeyError:
   73:                     pass
   74: 
   75: 
   76: class ProgressState(NamedTuple):
   77:     """
   78:     Container for progress state, used to communicate
   79:     from ProgressManager to ProgressReporter
   80:     """
   81: 
  -->      num_frames_complete: float
   83: 
   84:     num_frames_total: int
   85: 
   86:     num_part_complete: int
   87: 
   88:     num_part_in_progress: int
   89: 
   90:     num_part_total: int
   91: 
   92: 
   93:     progress_id: str
   94: 
   95: 
   96: class ProgressReporter:
   97:     """
   98:     Interface for progress bar display / updating
   99: 
  100:     This class will receive :class:`ProgressState`
  101:     instances to notify it about the start, progression
  102:     and end of a job submitted to the :code:`UDFRunner`.
  103:     The implementation should be adapted to display or
  104:     log the progress as required for the use case.
  105: 
  106:     It is possible that multiple jobs are submitted
  107:     to a single executor at the same time and therefore
  108:     the implementation should ensure that concurrent instances
  109:     of the class display correctly, or that the same instance
  110:     of the class can handle updates from multiple threads
  111:     concurrently. Each :class:`ProgressState` message contains a field
  112:     :code:`progress_id` which is unique to each job, and therefore
  113:     the implementation can use this to distinguish updates from
  114:     multiple sources.
  115:     """

ERROR: Unable to parse file: /code/src/libertem/common/math.py
ERROR: Parse error at line 39 column 7:

   32: )
   33:         else:
   34:             raise ValueError()
   35:         returnresult
   36: 
   37: 
   38: def count_nonzero(array) -> int:
  -->      nnz: int            
   40:     try:
   41:         nnz = np.count_nonzero(array)
   42:     except TypeError:
   43:         sparse_a = assert_sparse(array)
   44:         nnz

ERROR: Unable to parse file: /code/src/libertem/contrib/convert_transposed.py
ERROR: Parse error at line 47 column 16:

   39: flat_sig_origin:flat_sig_origin + n_sig_px
   40:         ] = partition
   41: 
   42: 
   43: def _convert_transposed_ds(
   44:     ctx: 'Context',
   45:     ds: 'DataSet',
   46:     out_path: os.PathLike,
  -->      **run_kwargs,
   48: ):
   49:     ctx.run_udf(
   50:         ds,
   51:         ConvertTransposedDatasetUDF(
   52:             out_path,
   53:         ),
   54:         **run_kwargs,
   55:     )
   56: 
   57: 
   58: def convert_dm4_transposed(
   59:     dm4_path: os.

ERROR: Unable to parse file: /code/src/libertem/analysis/base.py
ERROR: Parse error at line 37 column 8:

   15: .helper import GeneratorHelper
   16:     from libertem.web.rpc import ProcedureProtocol
   17:     import numpy.typing as nt
   18: 
   19: 
   20: class Analysis:
   21:     """
   22:     Abstract base class for Analysis classes.
   23: 
   24:     An Analysis is the interface between a UDF and the Web API, and handles
   25:     visualization of partial and full results.
   26: 
   27:     Passing an instance of an :class:`Analysis` sub-class to
   28:     :meth:`libertem.api.Context.run` will generate an :class:`AnalysisResultSet`.
   29:     The content of this result set is governed by the specific implementation of
   30:     the :code:`Analysis` sub-class.
   31: 
   32:     .. versionadded:: 0.3.0
   33: 
   34:     .. versionchanged:: 0.7.0
   35:         Removed deprecated methods :code:`get_results` and :code:`get_job`
   36:     """
  -->      TYPE: Literal["UDF"] = "UDF"
   38:     registry: dict[str, "type[Analysis]"] = {}
   39: 
   40:     def __init__(self, dataset: DataSet, parameters

ERROR: Unable to parse file: /code/src/libertem/analysis/helper.py
ERROR: Parse error at line 14 column 14:

    1: from typing import Optional
    2: from libertem.web.notebook_generator.template import TemplateBase
    3: 
    4: 
    5: class GeneratorHelper(TemplateBase):
    6:     """
    7:     Helper class for generating code corresponding to analysis.
    8: 
    9:     code for creating and running analysis, saving the result,
   10:     plotting the result, documentation, specific dependencies
   11:     are generated.
   12:     """
   13: 
  -->      short_name: Optional[str] = None
   15:     api: Optional[str] = None
   16: 
   17:     def __init__(self, params):
   18:         self.params

ERROR: Unable to parse file: /code/src/libertem/web/state.py
ERROR: Parse error at line 51 column 28:

   47: : typing.Optional[float] = None,
   48:     ):
   49:         self.executor = None
   50:         self.cluster_params = {}
  -->          self.cluster_details: typing.Optional[list] = None
   52:         self.context: typing.Optional[Context] = None
   53:         self._event_bus = event_bus
   54:         self

ERROR: Unable to parse file: /code/src/libertem/web/dataset.py
ERROR: Parse error at line 102 column 20:

   90: time()
   91: 
   92: 
   93: 
   94: 
   95: 
   96: 
   97: 
   98: 
   99:         log.info("warmup done, took %.3fs", (t1 - t0))
  100: 
  101:     async def put(self, uuid):
  -->          request_data: dict = tornado.escape.json_decode(self.request.body)
  103:         params = request_data['dataset']['params']
  104:         params["type"]

ERROR: Unable to parse file: /code/src/libertem/web/models.py
ERROR: Parse error at line 17 column 6:

   12: from libertem.udf.base import UDFResults
   13:     from libertem.io.dataset.base import DataSet
   14: 
   15: 
   16: class JobInfo(TypedDict):
  -->      id: str
   18:     analysis: str
   19:     dataset: str
   20: 
   21: 
   22: class SerializedJobInfo(TypedDict):
   23:     id: str
   24:     analysis: str
   25: 
   26: 
   27: AnalysisParameters

ERROR: Unable to parse file: /code/src/libertem/io/writers/results/base.py
ERROR: Parse error at line 13 column 12:

    1: from libertem.common.analysis import AnalysisResultSet
    2: 
    3: 
    4: class ResultFormatRegistry(type):
    5:     """
    6:     This is a metaclass to make ResultFormat subclasses register
    7:     themselves. On import of the module the subclass is implemented in,
    8:     the __init__ method is called, which in turn asks the class
    9:     about their ID, a description, ...
   10:     """
   11: 
   12: 
  -->      registry: dict = {}
   14: 
   15:     def __init__(cls, name, args, bases):
   16:         format_info = cls.format_info()
   17:         if format_info

ERROR: Unable to parse file: /code/src/libertem/io/utils.py
ERROR: Parse error at line 41 column 19:

   23: [int] = None
   24: ) -> tuple[int, ...]:
   25:     """
   26:     Calculate partition shape for the given ``target_size_items``
   27: 
   28:     Parameters
   29:     ----------
   30: 
   31:     dataset_shape
   32:         "native" dataset shape
   33: 
   34:     target_size_items
   35:         target partition size in number of items/pixels
   36: 
   37:     min_num
   38:         minimum number of partitions
   39:     """
   40:     sig_size = dataset_shape.sig.size
  -->      current_p_shape: tuple[int, ...] = ()
   42: 
   43:     if min_num is None:
   44:         min_num = 1
   45: 
   46:     target_size_items = min(target_size_items

ERROR: Unable to parse file: /code/src/libertem/io/dataset/raw_csr.py
ERROR: Parse error at line 74 column 15:

   68: :
   69:             data["sync_offset"] = raw_data["sync_offset"]
   70:         return data
   71: 
   72: 
   73: class CSRDescriptor(typing.NamedTuple):
  -->      indptr_file: str
   75:     indptr_dtype: np.dtype
   76:     indices_file: str
   77:     indices_dtype: np.dtype
   78:     data_file: str
   79:     data_dtype: np.dtype
   80: 
   81: 
   82: 

ERROR: Unable to parse file: /code/src/libertem/io/dataset/tvips.py
ERROR: Parse error at line 114 column 11:

  106: ,
  107:     ('DENS_Bias_R', 'float32'),
  108:     ('DENS_Bias_limit_U', 'float32'),
  109:     ('DENS_Bias_limit_I', 'float32'),
  110: ]
  111: 
  112: 
  113: class SeriesHeader(NamedTuple):
  -->      version: int
  115:     xdim: int
  116:     ydim: int
  117:     xbin: int
  118:     ybin: int
  119:     bpp: int
  120:     pixel_size_nm: int
  121:     high_tension_kv: int

ERROR: Unable to parse file: /code/src/libertem/io/dataset/mib.py
ERROR: Parse error at line 735 column 21:

  728:             return np.dtype("u1")
  729: 
  730: 
  731: MIBKind = Literal['u', 'r']
  732: 
  733: 
  734: class HeaderDict(TypedDict):
  -->      header_size_bytes: int
  736:     dtype: "nt.DTypeLike"
  737:     mib_dtype: str
  738:     mib_kind: MIBKind
  739:     bits_per_pixel: int
  740:     image_size: tuple[int, int]
  741:     image_size_bytes:

ERROR: Unable to parse file: /code/src/libertem/io/dataset/dm.py
ERROR: Parse error at line 66 column 10:

   60: raw_data:
   61:                 data[k] = raw_data[k]
   62:                 returndata
   63: 
   64: 
   65: class StackedDMDatasetParams(MessageConverter):
  -->      SCHEMA: dict = {}
   67: 
   68:     def convert_from_python(self, raw_data):
   69:         return super().convert_from_python(raw_data)
   70: 
   71:     def convert_to_python(

ERROR: Unable to parse file: /code/src/libertem/io/dataset/base/backend.py
ERROR: Parse error at line 14 column 12:

    5: numpy as np
    6: from sparseconverter import ArrayBackend
    7: 
    8: from .fileset import FileSet
    9: 
   10: log = logging.getLogger(__name__)
   11: 
   12: 
   13: class IOBackend:
  -->      registry: dict[str, type["IOBackend"]] = {}
   15:     id_: Optional[str] = None
   16: 
   17:     def __init_subclass__(cls, id_:

ERROR: Unable to parse file: /code/src/libertem/io/dataset/base/meta.py
ERROR: Parse error at line 55 column 18:

   51: array_backends = (NUMPY, CUDA)
   52:         self.array_backends = array_backends
   53:         if dtype is None:
   54:             dtype = raw_dtype
  -->          self.dtype: np.dtype = np.dtype(dtype)
   56:         self.raw_dtype: np.dtype = np.dtype(raw_dtype)
   57:         self.image_count

ERROR: Unable to parse file: /code/src/libertem/io/dataset/base/file.py
ERROR: Parse error at line 14 column 15:

    1: from typing import NamedTuple
    2: import numpy as np
    3: 
    4: from libertem.common.math import prod
    5: 
    6: 
    7: class OffsetsSizes(NamedTuple):
    8:     """
    9:     General slicing for slicing the data out of a file
   10:     (removing file header and per-frame headers)
   11:     """
   12: 
   13: 
  -->      file_offset: int                                                        
   15:     skip_end: int                                     
   16: 
   17: 
   18:     frame_offset: int                                                          
   19:     frame_size: int                                  
   20: 
   21: 
   22: class File:
   23:     """
   24:     A description of a file that is part of a dataset. Contains
   25:     information about the internal structure, like sizes
   26:     of headers, frames, frame headers, frame footers, ...
   27: 
   28:     Parameters
   29:     ----------
   30:     path : str
   31:         The path of the file. Interpretation may be backend-specific
   32: 
   33:     start_idx : int
   34:         Start index of signal elements in this file (inclusive),
   35:         in the flattened navigation axis
   36: 
   37:     end_idx : int
   38:         End index of signal elements in this file (exclusive),
   39:         in the flattened navigation axis
   40: 
   41:     native_dtype : np.dtype
   42:         The dtype that is used for reading the data. This may
   43:         match the "real" dtype of data, or in some cases, when
   44:         no direct match is possible (decoding is necessary),
   45:         it falls back to bytes (np.uint8)
   46: 
   47:     sig_shape : Shape | Tuple[int, ...]
   48:         The shape of each signal element
   49: 
   50:     file_header: int
   51:         Number of bytes to ignore at the beginning of the file
   52: 
   53:     frame_header: int
   54:         Number of bytes to ignore before each frame
   55: 
   56:     frame_footer: int
   57:         Number of bytes to ignore after each frame
   58:     """
   59:     def __init__(self, path,

ERROR: Unable to parse file: /code/src/libertem/io/dataset/base/partition.py
ERROR: Parse error at line 62 column 17:

   57: :
   58:         self.meta = meta
   59:         self.slice = partition_slice
   60:         self._io_backend = io_backend
   61:         self._decoder = decoder
  -->          self._idx: Optional[int] = None
   63:         if partition_slice.shape.nav.dims != 1:
   64:             raise ValueError("nav dims should be flat")
   65: 
   66:         @

ERROR: Unable to parse file: /code/src/libertem/io/dataset/base/backend_buffered.py
ERROR: Parse error at line 249 column 11:

  244: = direct_io
  245:         self._buffer_pool = BufferPool()
  246: 
  247:     @contextlib.contextmanager
  248:     def open_files(self, fileset: FileSet):
  -->          cls: type[BufferedFile]
  250:         if self._direct_io:
  251:             cls = DirectBufferedFile
  252:         else:
  253:             cls = BufferedFile
  254:         files = [

ERROR: Unable to parse file: /code/src/libertem/io/dataset/base/backend_mmap.py
ERROR: Parse error at line 169 column 12:

  163: ._handle is None:
  164:             raise RuntimeError("trying to access file handle of closed file")
  165:         return self._handle
  166: 
  167: 
  168: class MMapBackendImpl(IOBackendImpl):
  -->      FILE_CLS: type = MMapFile
  170: 
  171:     def __init__(self, enable_readahead_hints=False):
  172:         super().__init__()
  173:         self._enable_readahead = enable_readahead_hints

ERROR: Unable to parse file: /code/src/libertem/io/dataset/base/dataset.py
ERROR: Parse error at line 28 column 25:

   24: 1024*1024
   25: 
   26:     def __init__(self, io_backend: Optional["IOBackend"] = None):
   27:         self._cores = 1
  -->          self._sync_offset: Optional[int] = 0
   29:         self._sync_offset_info = None
   30:         self._image_count = 0
   31:         self._nav_shape_product = 0
   32:         self._io_backend =

ERROR: Unable to parse file: /code/src/libertem/io/dataset/hdf5.py
ERROR: Parse error at line 89 column 8:

   82: 1)
   83:     else:
   84:         raise ValueError(f'Incompatible nav_shape {nav_shape}')
   85:     return nav_shape
   86: 
   87: 
   88: class HDF5ArrayDescriptor(typing.NamedTuple):
  -->      name: str
   90:     shape: tuple[int, ...]
   91:     dtype: np.dtype
   92:     compression: Optional[str]
   93:     chunks: tuple

ERROR: Unable to parse file: /code/src/libertem/io/dataset/npy.py
ERROR: Parse error at line 67 column 9:

   62: data["sync_offset"] = int(raw_data["sync_offset"])
   63:         return data
   64: 
   65: 
   66: class NPYInfo(typing.NamedTuple):
  -->      dtype: str
   68:     shape: tuple[int, ...]
   69:     count: int
   70:     offset: int
   71: 
   72: 
   73: 
   74: 
   75: 
   76: 
   77: def _read_bytes(fp, size,

ERROR: Unable to parse file: /code/src/libertem/io/dataset/__init__.py
ERROR: Parse error at line 50 column 69:

   45: return ext_map
   46: 
   47: 
   48: @typing.overload
   49: def _auto_load(
  -->      path: str, enable_async: Literal[True], *args, executor, **kwargs,
   51: ) -> typing.Awaitable[DataSet]:
   52:     ...
   53: 
   54: 
   55: @typing.overload
   56: def _auto_load(
   57:     path: str,

ERROR: Unable to parse file: /code/src/libertem/udf/base.py
ERROR: Parse error at line 111 column 13:

  106: ["UDF"],
  107:     dtype: "nt.DTypeLike",
  108:     corrections: Optional[CorrectionSet],
  109:     array_backends: Iterable[ArrayBackend],
  110: ) -> "nt.DTypeLike":
  -->      tmp_dtype: "nt.DTypeLike"
  112:     if corrections is not None and corrections.have_corrections():
  113:         tmp_dtype = np.result_type(np.float32, dtype)
  114: 

ERROR: Unable to parse file: /code/src/libertem/udf/com.py
ERROR: Parse error at line 38 column 6:

   27: RegressionOptionsT = Union[np.ndarray, Literal[-1, 0, 1]]
   28: 
   29: 
   30: class CoMParams(NamedTuple):
   31:     """
   32:     Used to instantiate :class:`~libertem.udf.com.CoMUDF`.
   33: 
   34:     See :meth:`~libertem.udf.com.CoMUDF.with_params`
   35:     for descriptions of each parameter. In most cases use this
   36:     method rather than instantiating this class directly.
   37:     """
  -->      cy: Optional[float] = None
   39:     cx: Optional[float] = None
   40:     r: float = float('inf')
   41:     ri: Union[

INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 3.420s
INFO: Final Memory: 13M/661M
INFO: ------------------------------------------------------------------------
8
radon
radon engine documentation
View output
Running radon3...
9
bandit
bandit engine documentation
View output
[main]	INFO	profile include tests: None
[main]	INFO	profile exclude tests: None
[main]	INFO	cli include tests: None
[main]	INFO	cli exclude tests: None
180 [0.. [node_visitor]	INFO	Unable to find qualified name for module: setup.py
50.. 100.. 150.. ]