Join GitHub today
Main program does not load (FileNotFound error) - filename path too long > 260 chars #313
Program suddenly stopped being able to load. Here is the CMD output:
The "file not found" is in fact there. For context, this project was the last one opened in the program and I did not edit the files outside the program.
Here is the info for that MSK's settings.txt in case it's relevant:
Thank you @OlsonAC1 for reporting this issue and providing the console output.
I believe the issue is that the filename path is too long (the one in the console log is 265 characters long). This issue is mentioned in Python Issue18199 - Windows: support path longer than 260 bytes using "\?" prefix.
You might try removing the max path limitation in Windows. However this might not resolve the issue because the PyInstaller package for Windows is built using Python 3.4.4 and the link mentions using Python 3.6+. The reason we use Python 3.4.4 in the Windows PyInstaller package is to maintain compatibility with Windows XP. Of course you could also consider installing Python 3.6+ to Run Manuskript from Source Code on Windows.
Another work-around would be to shorten the path length. This might be accomplished by either renaming/shortening some of the directory names in the path above the project .msk file and directory. Alternatively you might copy all the project files/directories higher up in the directory hierarchy.
Please let us know what you choose to do and if it works.
The issue arises due to a maximum path limitation of 260 characters in Windows.
Thanks for reporting that a shorter name worked. There do appear to be some code work-arounds, but I'm not sure if we can implement these and still retain compatibility with Windows XP.
I found another interesting link regarding maximum path lengths in Windows:
Some of the answers indicate that Windows does not apply extended path work-arounds to all Windows API functions. Hence it might be best to keep folder (chapter) and file (text) name paths short to avoid the 260 character maximum length.
EDIT: This issue is specific to the Windows operating system.