PyInstaller for script with local file paths

63 views
Skip to first unread message

GIS Ingenjör

unread,
Nov 24, 2021, 5:13:38 AM11/24/21
to PyInstaller
Hello,

I made a script that needs to read a local .csv file. I added the path to the file in the Spec-file under "datas" as a tuple according to the documentation. However I still get the:

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

My code is as simple as using pandas library to open the file:

df1=pd.read_csv('list.csv',sep=',')

I have read the following threads on it, but I am still not sure how to tackle it:

Is there a simple explanation to what I might need to change?

Many thanks!

Reply all
Reply to author
Forward
0 new messages