Forum Discussion
VS Code Synapse integration not working
- Anonymous2 years ago
Hi paatrickd
Thanks for using Fabric Community.
Can you please follow the below troubleshooting steps and provide the details:
1) Right click the ipython notebook.2) Open the python log file:
../../logs/${NOTEBOOK_ARTIFACT_ID}/PySparkLighter.logand check the session failure reason.
Please provide the error details so that I can help you better.Thank you.
- Anonymous2 years ago
Hi paatrickd
Thanks for the update.
Maybe you have installed conda, but forgot to set the environment variable. Please check that.
After creating the conda environment, it will install the spark-lighter-lib whl package from blob. The whl package will be automatically upgraded when the version in the conda environment does not match the minimum required version of the extension. If there is any issue with the upgration, you could run the below code :conda activate ${CONDA_ENV_NAME} pip uninstall spark-lighter-lib pip install https://path/to/spark-lighter-lib.whl
Also try these steps.- Open the VS Code command palette and select/type 'Python: Create Terminal'
- In the terminal, run the following command: conda install pyspark
- Restart VS Code and try again.
Hope this helps. Please let me know if you have any further questions. - Anonymous2 years ago
Hi,
Thank you for your response.
However, I do not have any logs. When following your troubleshooting steps the directory does not contain any log folder.
Hi paatrickd
Thanks for the update.
Maybe you have installed conda, but forgot to set the environment variable. Please check that.
After creating the conda environment, it will install the spark-lighter-lib whl package from blob. The whl package will be automatically upgraded when the version in the conda environment does not match the minimum required version of the extension. If there is any issue with the upgration, you could run the below code :
conda activate ${CONDA_ENV_NAME}
pip uninstall spark-lighter-lib
pip install https://path/to/spark-lighter-lib.whl
Also try these steps.
- Open the VS Code command palette and select/type 'Python: Create Terminal'
- In the terminal, run the following command: conda install pyspark
- Restart VS Code and try again.
Hope this helps. Please let me know if you have any further questions.
- BiJoe2 years agoHelper II
This answer solved my problem not being able to install runtime Apache Spark runtime 1.2, which is installed automatically after runtime 1.1. The Conda environment had no pyspark library due to a wheel download error. In PowerShell I activated the 1.2 runtime Conda environment, then
pip install https://tridentvscodeextension.blob.core.windows.net/spark-lighter-lib/spark34/spark_lighter_lib-34.0.0.3-py3-none-any.whltook approximately 10 minutes. After the download completed, Synapse Pyspark was installed successfully.
- GalRabin2 years ago
Microsoft Employee
Hello,
I'm reaching out for assistance regarding an issue I've encountered, which is similar to the one described in the VS Code extension overview - Microsoft Fabric | Microsoft Learn. Despite following all the steps mentioned in the tutorial, I'm facing a problem. I tried to locate the logs that should have been created in the parent directory of the notebook, as per the instructions, but there were no logs to be found.
Would you be able to help me resolve this issue?
Thank you.
- ramonsuarez2 years agoAdvocate II
I'm on an Ubuntu machine and spark-lighter-lib is not installed. I cannot find it with Pip, Conda, and APT. Searching for it in Google only directs to two tickets here. Where can I find the wheel or how can I install the package?
Thanks - l-man2 years agoFrequent Visitor
I have been able to follow the recommendations up until this point. When I try to activate the environment, I get the following error:
CondaError: Run 'conda init' before 'conda activate'Running conda init does nothing, the last console log is "No action taken".
I also tried uninstalling spark-lighter-lib but it was not installed.I insalled spark-lighter-lib using the pip command suggested by BiJoe below, this did not fix the problem.