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

windows? #5

Open
Frankthetankk opened this issue Dec 22, 2020 · 7 comments
Open

windows? #5

Frankthetankk opened this issue Dec 22, 2020 · 7 comments

Comments

@Frankthetankk
Copy link

How does someone run this tool using Windows 10?

@cosmin8905
Copy link

  • I've managed to run this on Windows but in Ubuntu subsystem mode : https://www.windowscentral.com/install-windows-subsystem-linux-windows-10

  • Once you're in Ubuntu, you need to install YARN https://phoenixnap.com/kb/how-to-install-yarn-ubuntu

  • When that's all done, download and extract @mattwilson1024 code locally for example in your "Downloads" folder

  • Open up your ubuntu app and navigate to /mnt/c/Users/<>/Downloads/google-photos-exif-master/

  • You should see something like this
    cpopescu@DESKTOP-0GDEJA8:/mnt/c/Users/cosmi/Downloads/google-photos-exif-master$ ls -l total 117 -rwxrwxrwx 1 cpopescu cpopescu 508 Oct 27 21:05 CHANGELOG.md -rwxrwxrwx 1 cpopescu cpopescu 1071 Oct 27 21:05 LICENSE -rwxrwxrwx 1 cpopescu cpopescu 9614 Oct 27 21:05 README.md -drwxrwxrwx 1 cpopescu cpopescu 512 Oct 27 21:05 bin -drwxrwxrwx 1 cpopescu cpopescu 512 Dec 22 16:26 node_modules -rwxrwxrwx 1 cpopescu cpopescu 1370 Oct 27 21:05 package.json -drwxrwxrwx 1 cpopescu cpopescu 512 Oct 27 21:05 src -rwxrwxrwx 1 cpopescu cpopescu 230 Oct 27 21:05 tsconfig.json -rwxrwxrwx 1 cpopescu cpopescu 95342 Oct 27 21:05 yarn.lock

  • Once in the above folder and assuming you've installed yarn from step 2, execute the command "yarn" , an install/compile process should display.

  • When the install process completes execute yarn start --inputDir ../Takeout --outputDir ../output changing the input and output dir with whatever folders you have. This is how I started mine cpopescu@DESKTOP-0GDEJA8:/mnt/c/Users/cosmi/Downloads/google-photos-exif-master$ yarn start --inputDir ../google-photos/Takeout --outputDir ../google-photos/output

@GerritVK
Copy link

GerritVK commented Jan 6, 2021

This command worked for me in Powershell on Windows 10. The directory my terminal was in was this projects folder with siblings of Takeout and Output.
./bin/run.cmd --inputDir ../Takeout --outputDir ../Output

To retain the albums/folders you get from takeout. Run this in powershell

$inputRoot = '../Google Photos'
$outputRoot= '../output'

$dir = Get-ChildItem $inputRoot | ? {$_.PSIsContainer}
$dir | ForEach-Object {./bin/run.cmd --inputDir $(join-path $inputRoot $_) --outputDir $(join-path $outputRoot $_)}

@ugurozturk
Copy link

  1. install node, 2. install yarn, 3.open cmd, 4. run command as suggested.

As a known person about node system. it took 5minutes for me to run.

@adamnoffie
Copy link

If you are using Windows Subsystem for Linux (WSL) Ubuntu to get node.js and npm/yarn working, and you THINK you're following the simple steps to get yarn installed on Ubuntu, know that the steps linked to above where you are adding a repository to pull yarn from are important, or you'll only get error messages about missing scenarios when you run yarn on the project. See this:
yarnpkg/yarn#2821 (comment)

@drgarner36
Copy link

drgarner36 commented Aug 22, 2021

When I execute the code, it gives me an error and says that the input directory must exist. I am new to all this, so if anyone can lend a hand that would be appreciated @adamnoffie @ugurozturk My code is as follows:
/mnt/c/Users/drgar/OneDrive/Documents/GitHub/google-photos-exif$ yarn start --inputDir ../PhotosGoogle --outputDir ../CorrectPhotos --errorDir../FurtherExamination

All the folders are in the google-photos-exif folder to simplify things. It says I failed with exit code 2 in yarn. Additionally, when I execute yarn in the directory, I receive a warning that my project contains locked files generated by tools other than Yarn. Also if I look to see what version of nodejs I have, it says it cannot locate it. But I believe I downloaded it...

@adamnoffie
Copy link

@drgarner36

When I execute the code, it gives me an error and says that the input directory must exist. I am new to all this, so if anyone can lend a hand that would be appreciated @adamnoffie @ugurozturk My code is as follows:
/mnt/c/Users/drgar/OneDrive/Documents/GitHub/google-photos-exif$ yarn start --inputDir ../PhotosGoogle --outputDir ../CorrectPhotos --errorDir../FurtherExamination

Maybe I'm missing something here, but if your input directory is under the google-photos-exif folder, as you say, and you are executing from that directory, wouldn't your input directory be

--inputDir PhotosGoogle

seems like if you do "../PhotosGoogle" you'd but looking for the PhotosGoogle directory one directory "up", in the GitHub folder, since the double-dot means "up one directory"

@robertolopardo
Copy link

robertolopardo commented Jan 8, 2023

Thanks @cosmin8905, it worked a treat in an Ubuntu 22.04 VM

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

7 participants