12
Parser process id: 12
codeclimate-parser socket not present
waiting 1s...
I, [2024-04-08T00:40:54.001922 #1] INFO -- : Skipping file ./sxm/http.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
sxm: SXMClientAsync, precache: bool = True
^
SyntaxError: invalid syntax
I, [2024-04-08T00:40:54.003176 #1] INFO -- : Skipping file ./sxm/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 11
..., "--username", "-U", help="SXM username", prompt=True, envvar="SXM_USERNAME"
^
SyntaxError: invalid syntax
I, [2024-04-08T00:40:54.012949 #1] INFO -- : Skipping file ./sxm/client.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 100
last_renew: Optional[float]
^
SyntaxError: invalid syntax
I, [2024-04-08T00:40:54.023459 #1] INFO -- : Skipping file ./sxm/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 35
def parse_xm_datetime(dt_string: str):
^
SyntaxError: invalid syntax
|
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: 22 files indexed
ERROR: Unable to parse file: /code/sxm/http.py
ERROR: Parse error at line 31 column 13:
16: = True
17: ) -> Callable[[web.Request], Coroutine[Any, Any, web.Response]]:
18: """
19: Creates and returns a configured `aiohttp` request handler ready to be used
20: by a :meth:`aiohttp.web.run_app` instance with your :class:`SXMClient`.
21:
22: Really useful if you want to create your own HTTP server as part
23: of another application.
24:
25: Parameters
26: ----------
27: sxm : :class:`SXMClient`
28: SXM client to use
29: """
30:
--> aac_cache: Dict[str, bytes] = {}
32: playlist_cache: Dict[str, str] = {}
33: active_channel_id: Optional[str] =
ERROR: Unable to parse file: /code/sxm/client.py
ERROR: Parse error at line 100 column 14:
49: ):
50: """SXM Authentication failed, renew session"""
51:
52: pass
53:
54:
55: class SegmentRetrievalException(SXMError):
56: """failed to get HLS segment, renew session"""
57:
58: pass
59:
60:
61: class SXMClientAsync:
62: """Class to interface with SXM api and access HLS
63: live streams of audio
64:
65: Parameters
66: ----------
67: username : :class:`str`
68: SXM username
69: password : :class:`str`
70: SXM password
71: region : :class:`str` ("US" or "CA")
72: Sets your SXM account region
73: user_agent : Optional[:class:`str`]
74: User Agent string to use for making requests to SXM. If `None` is
75: passed, it will attempt to generate one based on real browser usage
76: data. Defaults to `None`.
77: update_handler : Optional[Callable[[:class:`dict`], `None`]]
78: Callback to be called whenever a playlist updates and new
79: Live Channel data is retrieved. Defaults to `None`.
80:
81: Attributes
82: ----------
83: is_logged_in : :class:`bool`
84: Returns if account is logged into SXM's servers
85: is_session_authenticated : :class:`bool`
86: Returns if session is valid and ready to use
87: sxmak_token : :class:`str`
88: Needs documentation
89: gup_id : :class:`str`
90: Needs documentation
91: channels : List[:class:`XMChannel`]
92: Retrieves and returns a full list of all :class:`XMChannel`
93: available to the logged in account
94: favorite_channels : List[:class:`XMChannel`]
95: Retrieves and returns a full list of all :class:`XMChannel`
96: available to the logged in account that are marked
97: as favorite
98: """
99:
--> last_renew: Optional[float]
101: password: str
102: region: RegionChoice
103: update_handler: Optional[Callable[[dict], None]]
104: update_interval:
ERROR: Unable to parse file: /code/sxm/models.py
ERROR: Parse error at line 57 column 8:
48:
49:
50:
51: class RegionChoice(str, Enum):
52: US = "US"
53: CA = "CA"
54:
55:
56: class XMArt(BaseModel):
--> name: Optional[str]
58: url: str
59: art_type: str
60:
61: @staticmethod
62: def from_dict(data: dict) -> XMArt:
63:
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 0.240s
INFO: Final Memory: 6M/295M
INFO: ------------------------------------------------------------------------
|