Forum Discussion

minh_nguyen's avatar
minh_nguyen
Regular Visitor
2 years ago

VS Code Synapse Extension Kernel unable to load Spark Lighter

I am trying to use the vs code extension to connect to my fabric workspace. I am able to see my workspace, download and open a notebook but when I try to execute any spark commands I get this error in return:

AttributeError: 'NoneType' object has no attribute 'read'
 
My PySparkLighter.log: 
12:54:42,170 root INFO Using synapse remote kernel ...
12:54:42,170 root INFO Should attach session in dev mode False
12:54:42,756 root INFO Starting session 8c486d38-3681-4afa-8ce7-f97646a90a6c...
12:54:42,756 msal.authority INFO Initializing with Entra authority: https://login.windows.net/common
12:54:43,509 root INFO Getting refresh token...
12:54:45,22 root INFO <session_management.SessionStatus object at 0x0000020D3FB2E560>
12:54:45,22 root ERROR Failed to initialize Spark Lighter variables. Create session failed {'code': 'InternalError', 'subCode': 0, 'message': 'An internal error occurred.', 'timeStamp': '2024-07-12T18:54:44.78251Z', 'httpStatusCode': 500, 'hresult': -2147467259, 'details': [{'code': 'RootActivityId', 'message': '69054038-af73-477d-a144-16a758fba666'}, {'code': 'Param1', 'message': 'Response status code does not indicate success: 401 (Unauthorized).'}]}
12:54:45,22 root INFO Registering Spark Lighter magics for IPython...
12:54:45,22 root INFO Registered Spark Lighter magics for IPython.

 

3 Replies