You are on page 1of 3

Mon Jul 11 06:00:16 2022 Python shell started with PID 1268 and guid

abdd7070ee8243dea253bc3fbdb3fef7
Mon Jul 11 06:00:16 2022 Initialized gateway on port 36369
Mon Jul 11 06:00:18 2022 Python shell executor start
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<command-1800430790253872> in <module>
----> 1 sparkDF.display()

NameError: name 'sparkDF' is not


defined---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<command-1800430790253948> in <module>
1 for item in list_response_data:
2 list_of_records = [flatten_json.flatten(record,'_') for record in item]
----> 3 print("LINEA: "+list_of_records)

TypeError: can only concatenate str (not "list") to


str---------------------------------------------------------------------------
IndexError Traceback (most recent call last)
<command-1800430790253948> in <module>
1 for item in list_response_data:
2 #list_of_records = [flatten_json.flatten(record,'_') for record in
item]
----> 3 print(item[1])
4
5 #list_of_records[0]

IndexError: list index out of range File "<command-1800430790253948>", line 5


#list_of_records[0]
^
SyntaxError: unexpected EOF while parsing
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<command-1800430790253948> in <module>
1 for item in list_response_data:
2 #list_of_records = [flatten_json.flatten(record,'_') for record in
item]
----> 3 print(type(item[0].customWorktagRef))
4
5 #list_of_records[0]

AttributeError: 'dict' object has no attribute


'customWorktagRef'-----------------------------------------------------------------
----------
NameError Traceback (most recent call last)
<command-1800430790253948> in <module>
1 for item in list_response_data:
2 #list_of_records = [flatten_json.flatten(record,'_') for record in
item]
----> 3 print(type(item[0][customWorktagRef]))
4
5 #list_of_records[0]

NameError: name 'customWorktagRef' is not


defined---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<command-1800430790253948> in <module>
1 for item in list_response_data:
2 #list_of_records = [flatten_json.flatten(record,'_') for record in
item]
----> 3 print(item[0].customWorktag)
4
5 #list_of_records[0]

AttributeError: 'dict' object has no attribute


'customWorktag'--------------------------------------------------------------------
-------
NameError Traceback (most recent call last)
<command-1800430790253948> in <module>
1 for item in list_response_data:
2 #list_of_records = [flatten_json.flatten(record,'_') for record in
item]
----> 3 print(item[0][customWorktag])
4
5 #list_of_records[0]

NameError: name 'customWorktag' is not defined File "<command-1800430790253948>",


line 3
print(item[0].[customWorktag])
^
SyntaxError: invalid syntax
File "<command-1800430790253948>", line 3
print(item[0]{customWorktag})
^
SyntaxError: invalid syntax
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<command-1800430790253948> in <module>
8 StructField("inactiveCustomWorktag", StringType(), True),
9 StructField("worktagValue", StringType(), True),
---> 10 StructField("created_date", Datetime(), True),
11 StructField("updated_date", Datetime(), True),
12 ]

NameError: name 'Datetime' is not definedMon Jul 11 06:38:59 2022 Python shell
started with PID 2377 and guid 4eb19f91f7d84e6089b4a507465a4c57
Mon Jul 11 06:38:59 2022 Initialized gateway on port 36083
Mon Jul 11 06:39:00 2022 Python shell executor start
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
<command-1800430790253948> in <module>
15
16 for item in list_response_data:
---> 17 print(item[0]['customWorktagData']['customWorktagRef'])
18 customWorktagRef_WID = item[0]['customWorktagData']['customWorktagRef']
19 customWorktagRef_ID = item[0]['customWorktagData']['customWorktagRef']

KeyError: 'customWorktagRef'Mon Jul 11 06:41:40 2022 Python shell started with PID
2491 and guid e443040e58904a98815e052fca5e4343
Mon Jul 11 06:41:40 2022 Initialized gateway on port 41065
Mon Jul 11 06:41:41 2022 Python shell executor start
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<command-1800430790253948> in <module>
15
16 for item in list_response_data:
---> 17 print(item[0]['customWorktag']['customWorktagRef']['id'])
18 customWorktagRef_WID = item[0]['customWorktag']['customWorktagRef']
19 customWorktagRef_ID = item[0]['customWorktag']['customWorktagRef']

TypeError: list indices must be integers or slices, not str

You might also like