dexplo / dataframe_image

A python package for embedding pandas DataFrames as images into pdf and markdown documents
https://dexplo.org/dataframe_image
MIT License
282 stars 41 forks source link

FileNotFoundError: [Errno 2] No such file or directory: #32

Closed LuizEduardo-service closed 1 year ago

LuizEduardo-service commented 2 years ago

Não consigo mais exportar o dataframe para uma imagem depois que compilei meu codigo em .exe com o pyinstaller Apresenta o seguinte erro.

Exception in Tkinter callback Traceback (most recent call last): File "tkinter__init.py", line 1892, in call File "automacao_dash.py", line 352, in atualiza_image File "automacao_dash.py", line 341, in selecao_dash_image File "automacao_dash.py", line 363, in cria_image_png File "dataframe_image_pandas_accessor.py", line 24, in export File "dataframe_image_pandas_accessor.py", line 32, in _export File "dataframe_image_screenshot.py", line 77, in init__ File "dataframe_image_screenshot.py", line 84, in get_css FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\*****\AppData\Local\Temp\_MEI221163\dataframe_image\static\style.css'

redpower5x5 commented 2 years ago

same issue

redpower5x5 commented 2 years ago

this worked for me: I created in dist folder dataframe_image and copied there static folder from package folder of dataframe_image located in Lib/site-packages in my python venv folder