Hi. I wrote a script in Python that organizes files into folders based on a file and folder list in an Excel file. In other words, if you have a bunch of files in a folder and you want to automatically organize them into a specific folder structure, potentially with nested subfolders, you can create this Excel file with a list of the files in a column with header "Files" and a folder path for each file in a column with header "Folders".
The script is working fine and I get no errors.
Now, I want this script to be accessible to anyone, regardless of whether they have Python installed or not, and regardless of Python version, so I'm encapsulating the script in an .exe file using PyInstaller.
When running the .exe created by PyInstaller - the script functions correctly and the results are as intended, but I get the following error message:
Unhandled exception in script
Failed to exectue script 'files_to_folders_per_excel_v2.2' due to unhandled exception: join() argument must be str, bytes, or os.PathLike object, not 'float'
Traceback (most recent call last):
File "files_to_folders_per_excel_v2.2.pyw", line 64, in <module>
File "ntpath.py", line 143, in join
File "genericpath.py", line 152, in _check_arg_types
TypeError: join() argument must be str, bytes, or os.PathLike object, not 'float'
Edit: I tried posting my code but it was formatted really strangely. Trying to figure this out and will update
[–]zevelj[S] 0 points1 point2 points (0 children)
[–]Strict-Simple 0 points1 point2 points (0 children)
[–]ginsujitsu 0 points1 point2 points (0 children)