Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I am encountering an issue with initializing the Synapse Spark Environment using the Synapse VS Code extension due to the presence of a Polish character in my username. The extension fails to retrieve the correct path to the .ipython/profile_default/startup/init_lighter.py script, resulting in an error. While I am able to edit notebooks locally, I cannot set up a proper Spark environment for working with Fabric notebooks locally, which prevents me from running them effectively.
Here’s the error log for reference:
I’ve tried the following without success:
This issue is particularly frustrating, especially considering that the web version of Fabric does not yet have a dark theme, making the local setup even more important for usability.
Does anyone know of a workaround for this issue? Any suggestions would be greatly appreciated!
Hi @kacperroczen
I wanted to check if you had the opportunity to review the information provided. Please feel free to reach us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.
Hi @kacperroczen
May I ask if you have resolved this issue? If so, please accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.
Thank you.
Hi @kacperroczen
Thank you for reaching out to us on the Microsoft Fabric Community Forum.
It looks like the issue is related to the special character in your username, which is causing problems for the Synapse VS Code extension when it tries to locate and initialize the necessary files. Here are a few steps you can try to work around this issue:
Create a Shortcut (Symbolic Link) for Your User Folder:
Open Command Prompt as Administrator.
Run this command:
mklink /D c:\users\exampleuser c:\users\exampleuser�
This creates an alternate path (e.g., c:\users\exampleuser) that doesn’t include the special character, which the Synapse extension might handle better.
Check if the Synapse extension allows you to specify file paths or configurations manually. If it does, point it to a folder path without special characters.
Download the init_lighter.py script from the URL mentioned in the error message or from Microsoft’s official repository.
Save it in the appropriate folder, typically:
c:\users\exampleuser�\.ipython\profile_default\startup\
While changing your current username may not be an option, you could create a second local account without special characters in the username. Use this account specifically for Synapse-related work in VS Code.
If the issue persists despite these steps,please raise a support ticket
To raise a support ticket for Fabric , kindly follow the steps outlined in the following guide:
How to create a Fabric and Power BI Support ticket - Power BI | Microsoft Learn
If this solution helps, please consider giving us Kudos and accepting it as the solution so that it may assist other members in the community.