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 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.
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.