Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ugent Help - Error - Getting -- TemplateSyntaxError: unexpected 'end of statement block' #1500

Open
SamsGitHub1 opened this issue Nov 13, 2023 · 5 comments
Labels
information requested ❔ Cannot reproduce, waiting for minimum reproduction details.

Comments

@SamsGitHub1
Copy link

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)

@rick101777
Copy link

rick101777 commented Nov 14, 2023

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.

@SamsGitHub1
Copy link
Author

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

@SamsGitHub1
Copy link
Author

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

@rick101777
Copy link

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.

@fabclmnt fabclmnt added information requested ❔ Cannot reproduce, waiting for minimum reproduction details. and removed needs-triage labels Dec 4, 2023
@fabclmnt
Copy link
Contributor

fabclmnt commented Dec 4, 2023

Hi @SamsGitHub1 ,

is this solved for you? What is the python version of your virtual environment?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
information requested ❔ Cannot reproduce, waiting for minimum reproduction details.
Projects
None yet
Development

No branches or pull requests

4 participants