Skip to content

Fixed an Unhandled exception due to long Windows file path #36

Open
pradyumnac wants to merge 2 commits intovisualcurrent:masterfrom
pradyumnac:master
Open

Fixed an Unhandled exception due to long Windows file path #36
pradyumnac wants to merge 2 commits intovisualcurrent:masterfrom
pradyumnac:master

Conversation

@pradyumnac
Copy link
Copy Markdown

The original issue. This is due to windows long path limitation
This fix addresses an unhandled "FileNotFound" exception in the situation that the temporary extract file path length is too long for windows and was silently not getting extracted

Solution:
To ignore such error but keep a track of such files separately and print out these error at the end
The ProblemFiles.MD mechanism captures these unhandled filepaths in the log

scr 1662279011
scr 1662278892

A. Modification to N2O.py to handle a file open where fil was not being found. This is due to windows long path limitation
B. Also added pip requirements.txt file for easy virtyual env suport
C. Modified Gitignore

  1. pycache folder should be fully gitignored safely.
    Otherwise, the .pyc cache file for each new python version will be pulled into repo
    scr 1662281196
  2. Added virtual env folder to gitignore

For each version of python, the earlier gitignore would not work
2. Added gitignore entry for virtualenv folder
3. Added requiremnents file  for easy install through pip
@pradyumnac
Copy link
Copy Markdown
Author

#33 A follow up fix for This PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants