16
Parser process id: 16
codeclimate-parser socket not present
waiting 1s...
I, [2025-03-06T04:05:14.464671 #1] INFO -- : Skipping file lessons/lesson_1/main.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 9
LED: Pin = Pin(6, Pin.OUT)
^
SyntaxError: invalid syntax
I, [2025-03-06T04:05:14.464871 #1] INFO -- : Skipping file lessons/lesson_3_and_4/main.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
def get_val(n_val) -> int:
^
SyntaxError: invalid syntax
I, [2025-03-06T04:05:14.475757 #1] INFO -- : Skipping file lessons/lesson_6/main.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
PIN_N: int = 14
^
SyntaxError: invalid syntax
I, [2025-03-06T04:05:14.476438 #1] INFO -- : Skipping file lessons/lesson_5/main.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 9
PIN_READ: machine.ADC = machine.ADC(28)
^
SyntaxError: invalid syntax
I, [2025-03-06T04:05:14.486673 #1] INFO -- : Skipping file lessons/lesson_9_and_10/main.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 __init__(self, message) -> None:
^
SyntaxError: invalid syntax
I, [2025-03-06T04:05:14.488709 #1] INFO -- : Skipping file lessons/lesson_13/main.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
pot_red: ADC = ADC(26)
^
SyntaxError: invalid syntax
I, [2025-03-06T04:05:14.503248 #1] INFO -- : Skipping file lessons/lesson_12/main.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 9
colors: dict = {'red': (255, 0, 0),
^
SyntaxError: invalid syntax
I, [2025-03-06T04:05:14.523022 #1] INFO -- : Skipping file lessons/lesson_11/main.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
potentiometer: ADC = ADC(28)
^
SyntaxError: invalid syntax
I, [2025-03-06T04:05:14.528649 #1] INFO -- : Skipping file lessons/lesson_7_and_8/main.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
Pins: dict = {
^
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: Invalid character encountered in file '/code/docs/_static/logo.jpeg' 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/_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/img/Raspberry-Pi-Pico-Case.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/img/pi_logo.jpeg' 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/img/TestAutomationPyramid.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/img/sphinxdoclogo.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/img/component_vs_unit.webp' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: 44 files indexed
ERROR: Unable to parse file: /code/lessons/lesson_1/main.py
ERROR: Parse error at line 9 column 3:
1: """
2: Raspberry Pi Pico W LESSON 1: Write Your First Program for Absolute Beginners
3: https://www.youtube.com/watch?v=SL4_oU9t8Ss&list=PLGs0VKk2DiYz8js1SJog21cDhkBqyAhC5
4: """
5:
6: import time
7: from machine import Pin
8:
--> LED: Pin = Pin(6, Pin.OUT)
10: IS_ON: int = 0
11:
12:
13: def check_toggle_val(val: int) -> None:
14:
ERROR: Unable to parse file: /code/lessons/lesson_6/main.py
ERROR: Parse error at line 8 column 5:
1: """
2: Raspberry Pi Pico W LESSON 6: Understanding If Statements in MicroPython
3: https://www.youtube.com/watch?v=mS4YcJ0FcOU&list=PLGs0VKk2DiYz8js1SJog21cDhkBqyAhC5&index=6
4: """
5:
6: from machine import Pin
7:
--> PIN_N: int = 14
9: LED: Pin = Pin(PIN_N, Pin.OUT)
10:
11:
12: if __name__ == '__main__':
13: LED.value(0
ERROR: Unable to parse file: /code/lessons/lesson_5/main.py
ERROR: Parse error at line 9 column 8:
1: """
2: Raspberry Pi Pico W LESSON 5: Reading Analog Voltages Using a Potentiometer
3: https://www.youtube.com/watch?v=ODWwErH_iGA&list=PLGs0VKk2DiYz8js1SJog21cDhkBqyAhC5&index=5
4: """
5:
6: from time import sleep
7: import machine
8:
--> PIN_READ: machine.ADC = machine.ADC(28)
10:
11: X_MIN: int = 96
12: X_MAX: int = 65535
13:
14: V_MAX: float = 3.3
15:
ERROR: Unable to parse file: /code/lessons/lesson_9_and_10/main.py
ERROR: Parse error at line 27 column 7:
14: """
15: Custom exception.
16: Raises an error in regard to voltage input.
17: """
18:
19: def __init__(self, message) -> None:
20: """
21: Call the base class constructor with the parameters it needs
22: :param message:
23: """
24: super().__init__(message)
25:
26:
--> PIN_NUM: int = 16
28: analogOut: PWM = PWM(Pin(PIN_NUM))
29: analogOut.freq(1000)
30: analogOut.duty_u16(0)
ERROR: Unable to parse file: /code/lessons/lesson_13/main.py
ERROR: Parse error at line 10 column 7:
1: """
2: Raspberry Pi Pico W LESSON 13: User Specified RGB LED Colors Using Micropython
3: https://www.youtube.com/watch?v=FLMPjwXqXVw&list=PLGs0VKk2DiYz8js1SJog21cDhkBqyAhC5&index=14
4: """
5:
6: from time import sleep
7: from machine import (PWM, Pin, ADC)
8:
9:
--> pot_red: ADC = ADC(26)
11: pot_green: ADC = ADC(27)
12: pot_blue: ADC = ADC(28)
13:
14: led_red: PWM =
ERROR: Unable to parse file: /code/lessons/lesson_12/main.py
ERROR: Parse error at line 9 column 6:
1: """
2: Raspberry Pi Pico W LESSON 12: Understanding and Controlling an RGB LED in MicroPython
3: https://www.youtube.com/watch?v=yZkx-KWbATY&list=PLGs0VKk2DiYz8js1SJog21cDhkBqyAhC5&index=15
4: """
5:
6: from time import sleep
7: from machine import (Pin, PWM)
8:
--> colors: dict = {'red': (255, 0, 0),
10: 'green': (0, 128, 0),
11: 'blue': (0, 0
ERROR: Unable to parse file: /code/lessons/lesson_7_and_8/main.py
ERROR: Parse error at line 13 column 4:
1: """
2: Raspberry Pi Pico W LESSON 7: Controlling 3 LED with a Potentiometer in Micropython
3: https://www.youtube.com/watch?v=YqvcSnGd_HQ&list=PLGs0VKk2DiYz8js1SJog21cDhkBqyAhC5&index=7
4:
5: Raspberry Pi Pico W LESSON 8: Compound Conditionals and If Statements in MicroPython
6: https://www.youtube.com/watch?v=uTwm3ydI69w&list=PLGs0VKk2DiYz8js1SJog21cDhkBqyAhC5&index=8
7: """
8: from time import sleep
9: from machine import Pin, ADC
10:
11:
12:
--> Pins: dict = {
14: 'READ': 28,
15: 'GREEN': 10,
16: 'YELLOW': 11,
17: 'RED': 12,
18: }
19:
20:
21: COLORS: dict = {
22: 'GREEN': range
ERROR: Unable to parse file: /code/lessons/lesson_11/main.py
ERROR: Parse error at line 11 column 13:
1: """
2: Raspberry Pi Pico W LESSON 11: Controlling a Dimmable LED with a Potentiometer
3: https://www.youtube.com/watch?v=MCo5nXAKyUU&list=PLGs0VKk2DiYz8js1SJog21cDhkBqyAhC5&index=11
4: """
5:
6: from time import sleep
7: from machine import (PWM, Pin, ADC)
8:
9:
10:
--> potentiometer: ADC = ADC(28)
12:
13:
14: PIN_NUM: int = 16
15: analogOut: PWM = PWM(Pin(PIN_NUM))
16: analogOut.freq(
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 0.522s
INFO: Final Memory: 6M/295M
INFO: ------------------------------------------------------------------------
|