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

Getting error ModuleNotFoundError: No module named 'df2img' #64

Closed
shashikulk opened this issue Dec 7, 2023 · 4 comments
Closed

Getting error ModuleNotFoundError: No module named 'df2img' #64

shashikulk opened this issue Dec 7, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@shashikulk
Copy link

I am trying to use df2img, but getting the said error at

import df2img

I am using Windows 11 laptop. I have upgraded pandas and plotly to latest versions, and have upgraded kaleido to v0.1.0.post1. After that I installed df2img v0.2.16. But still getting this error.

Please help with a solution.

@andreas-vester andreas-vester added the bug Something isn't working label Dec 7, 2023
@andreas-vester
Copy link
Owner

@shashikulk
@walternat1ve
Can you please install df2img==0.2.18? Let me know if this is working on both Windows and Linux.

@shashikulk
Copy link
Author

After upgrading df2img to 0.2.18, the error is gone and my program is executing without any problems!
I have tried on Windows 11 laptop.
Thanks a lot @andreas-vester

I observed that when I upgraded df2img to 0.2.18, the version of kaleido changed from 0.1.0.post1 back to 0.0.3. Is this an expected behavior while installing/upgrading df2img ? My program's output (dataframe converted to image) is on expected lines so far. So, nothing to worry about I guess.

@andreas-vester
Copy link
Owner

andreas-vester commented Dec 8, 2023

I observed that when I upgraded df2img to 0.2.18, the version of kaleido changed from 0.1.0.post1 back to 0.0.3. Is this an expected behavior while installing/upgrading df2img ?

Yes, this is to be expected. kaleido==0.0.3 seemst to be the only version that is compatible with the latest plotly version for both Windows and Linux.

There are several open issues regarding kaleido.
plotly/Kaleido#134
plotly/plotly.py#3744
plotly/plotly.py#4401

@shashikulk Thanks for testing!

@shashikulk
Copy link
Author

shashikulk commented Dec 11, 2023

This issue/bug is resolved for Windows. If it is tested for Linux and working fine, it can be closed.

Thanks @andreas-vester for quickly resolving it! I do have a query about using Devanagari fonts in df2img.plot_dataframe(), will create a separate issue for the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants