Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while unzipping File PathNotFoundException #172

Closed
shlomis1 opened this issue Feb 8, 2023 · 9 comments
Closed

Error while unzipping File PathNotFoundException #172

shlomis1 opened this issue Feb 8, 2023 · 9 comments

Comments

@shlomis1
Copy link

shlomis1 commented Feb 8, 2023

On Windows, running the latest v3.3.2
After selecting all the .zips from Google Takeout, selecting an output folder, and choosing the default method getting the below error:

Error while unzipping File: 'F:\Downloads\takeout-20230207T165218Z-001.zip' :(
PathNotFoundException: Cannot create file, path = 'F:\New folder\.gpth-unzipped\Takeout/Google Photos/Design /metadata.json' (OS Error: The system cannot find the path specified.
, errno = 3)
[gpth quitted :( (code 69) - press enter to close]

Full output below:

GooglePhotosTakeoutHelper v3.3.2
Hi there! This tool will help you to get all of your photos from Google Takeout to one nice tidy folder

(If any part confuses you, read the guide on:
https://github.com/TheLastGimbus/GooglePhotosTakeoutHelper )

First, select all .zips from Google Takeout (use Ctrl to select multiple)
[press enter to continue]

Cool!

Now, select output folder - all photos will be extracted there
[press enter to continue]

Cool!

Do you want your photos in one big chronological folder, or divided to folders by year/month?
[1] (default) - one big folder
[2] - year/month folders
(Type 1 or 2 or press enter for default):

Okay, one big it is!

(Note: everything will take ~218.47 GiB of disk space - you have 2.21 TiB free so should be fine :)
[press enter to continue]


gpth will now unzip all of that, process it and put everything in the output folder :)
[press enter to continue]

Unzipping takeout-20230207T165218Z-001.zip...
Error while unzipping File: 'F:\Downloads\takeout-20230207T165218Z-001.zip' :(
PathNotFoundException: Cannot create file, path = 'F:\New folder\.gpth-unzipped\Takeout/Google Photos/Design /metadata.json' (OS Error: The system cannot find the path specified.
, errno = 3)
[gpth quitted :( (code 69) - press enter to close]
@TheLastGimbus
Copy link
Owner

honestly dont have any good idea why 🤷 - maybe try on different disk?

@shlomis1
Copy link
Author

shlomis1 commented Feb 9, 2023

I think it has to do with the way the code handles trailing spaces, the file 'takeout-20230207T165218Z-001.zip' contains 3 folders:

  1. 'Design' <-- No spaces
  2. 'Design ' <-- Single trailing space character at the end
  3. 'Design(1)'

From the error, it seems to be failing on accessing the path with the 2nd folder: (i.e. 'Design ')

PathNotFoundException: Cannot create file, path = 'F:\New folder\.gpth-unzipped\Takeout/Google Photos/Design /metadata.json' (OS Error: The system cannot find the path specified.
, errno = 3)

@tribulete
Copy link

Hello. I have the same issue:

C:\temporal>.\gpth-windoza.exe
GooglePhotosTakeoutHelper v3.3.2
Hi there! This tool will help you to get all of your photos from Google Takeout to one nice tidy folder

(If any part confuses you, read the guide on:
https://github.com/TheLastGimbus/GooglePhotosTakeoutHelper )

First, select all .zips from Google Takeout (use Ctrl to select multiple)
[press enter to continue]

Cool!

Now, select output folder - all photos will be extracted there
[press enter to continue]

Cool!

Do you want your photos in one big chronological folder, or divided to folders by year/month?
[1] (default) - one big folder
[2] - year/month folders
(Type 1 or 2 or press enter for default):
1
Okay, one big it is!

(Note: everything will take ~292.69 GiB of disk space - you have 689.12 GiB free so should be fine :)
[press enter to continue]


gpth will now unzip all of that, process it and put everything in the output folder :)
[press enter to continue]

Unzipping takeout-20230131T115153Z-001.zip...
Error while unzipping File: 'D:\takeout\takeout-20230131T115153Z-001.zip' :(
PathNotFoundException: Cannot create file, path = 'D:\takeout\out\.gpth-unzipped\Takeout/Google Photos/Viaje Colombia /metadata.json' (OS Error: El sistema no puede encontrar la ruta especificada.
, errno = 3)


[gpth quitted :( (code 69) - press enter to close]

In my case, the directory named "Viaje Colombia" not contain spaces in the zip file. The folder exists in the output folder created by the app, but , for some reason, the path that appears the error have a space.

@TheLastGimbus
Copy link
Owner

oh my god, i see it:

D:\takeout\out\.gpth-unzipped\Takeout/Google Photos/Viaje Colombia /metadata.json

D:\takeout\... ... /something/something

the archive guy didn't consider windoza 🤦

will try to contact them...

but i don't understand... does this mean windoza version wasn't working all of this time? when does it work and when it doesn't???

TheLastGimbus added a commit to TheLastGimbus/archive that referenced this issue Feb 9, 2023
.name got us "folder/folder/file.smth", and it was breaking windoza

TheLastGimbus/GooglePhotosTakeoutHelper#172
@TheLastGimbus
Copy link
Owner

will get fixed when new version with brendan-duncan/archive#244 gets released

@tribulete
Copy link

Hello. I'm a bit of a novice on github flow.

When will the new release of "archive" be published and fix this issue?

@TheLastGimbus
Copy link
Owner

When @brendan-duncan merges it

@TheLastGimbus
Copy link
Owner

forgot i can just use git in pubspec 🤦

fixed in v3.3.4 🎉

@omlet05
Copy link

omlet05 commented Feb 22, 2023

not merged correctly?

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

No branches or pull requests

4 participants