python patool and too long names issue under windows?
special characters like accents in folder names inside archive seems to give patoolib.extract_archive(self.input_filename, outdir=extracted_dir, interactive=False) ... Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\patoolib\programs\py_zipfile.py", line 51, in extract_zip raise util.PatoolError(f"error extracting {archive}") from err
What version of patool are you using? Try patool version 3.0.3 which fixes errors with special characters on windows systems. And please post the complete error message using the "-v" verbose option.
hi python.3.12_qbz5n2kfra8p0\localcache\local-packages\python312\site-packages (3.0.3) let me see how to put verbose on python patool options :)
ok I played a bit changing the archive name to shorte name works, is it because total lenght of arch name, folder, file is too long? tried verbosity=1 but not sure I see much more...
ok so the same file in same folder does work on Linux, will try to move thhe file to c:\ see it if shortens... or other issue
actuually the error is displayed .... FileNotFoundError: [WinError 206] The filename or extension is too long:
This looks like a limitation of the zipfile module. Do you get the same error when installing 7-zip and using this instead of the python zipfile module?
In the Windows API (with some exceptions discussed in the following paragraphs), the maximum length for a path is MAX_PATH, which is defined as 260 characters.
tx it also explains that there is another way to increase? Feasible? tx