Cx_Freeze with FastF1

18 views Asked by At

i cannot import the library fastf1 when I create an executable file with cx_Freeze. This lib is in the built folder, but for some reason when I use cx_Freeze it's not find this lib.

Someone can help me?

My files to create the executable with Cx_Freeze:

setup.py:

from cx_Freeze import setup, Executable

executables = [Executable("run.py", base="Win32GUI", icon="icon.ico")]

setup(
    name="FTS F1",
    version="1.0",
    description="Software to analyze F1 data.",
    executables=executables,
)

run.py:

import streamlit as st
import subprocess

if __name__ == '__main__':
    subprocess.run("python -m streamlit run main.py")    

And main.py is my project.

0

There are 0 answers