Ugent Help - Error - Getting -- TemplateSyntaxError: unexpected 'end of statement block'
SamsGitHub1 opened this issue · comments
We are getting below error when we are trying to generate HTML report from ydata-profiling
this is pretty urgent , can you please support this bug
TemplateSyntaxError: unexpected 'end of statement block'
sample code below
import ydata_profiling
import pandas as pd
from ydata_profiling import ProfileReport
df = pd.read_csv('C:/TestFile.csv')
profile = ProfileReport(df, title="Test Report", explorative=True)
displayHTML(profile.html)
Hello SamsGitHub1
I ran into a similar problem and found out it was a recent version update to 4.6.1.
Update your dependencies to be:
ydata-profiling==3.5.1
Pillow==10.0.1
This worked for me.
Hello SamsGitHub1
I ran into a similar problem and found out it was a recent version update to 4.6.1.
Update your dependencies to be:
ydata-profiling==3.5.1 Pillow==10.0.1
This worked for me.
Hi @rick101777
I got the below error while trying your solution,
Python interpreter will be restarted.
ERROR: Could not find a version that satisfies the requirement ydata-profiling==3.5.1
ERROR: No matching distribution found for ydata-profiling==3.5.1
WARNING: You are using pip version 21.0.1; however, version 23.3.1 is available.
Is there any other version working for you , can you please help..
Regards,
Sam
Hi @rick101777
Finally got solution ,
Below versions worked
3.5.1 is deprecated I guess, its not present in the repo ( https://pypi.org/project/ydata-profiling/#history )
pip install ydata-profiling==4.0.0
pip install Pillow==10.0.1
Regards,
Sam
Hey @SamsGitHub1
Sorry for the typo in the original post. I believe you can use a newer version of the library.
I meant to call out that we are using version 4.5.1, so doing pip install ydata-profiling==4.5.1
should work.
Hi @SamsGitHub1 ,
is this solved for you? What is the python version of your virtual environment?