It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
I've downloaded gogrepo (as suggested in other topic, "Kalanyr" version), I've also installed Python 2.7.15.

And now I feel completely lost, when I'm clicking RMB on gogrepo.py, there is option "Edit with IDLE", which is openingsome window with content and various options (such as "run"). However, I feel completely lost about content of this file - I don't even know how to refer its content to "guide" on gogrepo's website, at the very beginning there is something about creating "login cookie"...


I feel kinda dumb, but I would be extremely grateful is someone could help me a bit and show step-by-step what am I supposed to do in order to check size of my library and start making backup of the installers on my external hard drive.
This question / problem has been solved by kohlrakimage
You should run the file through python with a command line interface like Command Prompt. I've set mine up with batch files so I just double click the batch file to execute the desired commands.
I'm afraid that I don't understand.


After installing python I've got in start menu three possibilities: Python command line (guessing that's it, but I don't know how to increase font size to make it readable, secondly don't even know how to "move" to gogrepo), IDLE (Python GUI) and Module Docs (but the last one doesn't seem to be the one I'm looking for).

Have no idea how to "move" it further.
avatar
MartiusR: I'm afraid that I don't understand.


After installing python I've got in start menu three possibilities: Python command line (guessing that's it, but I don't know how to increase font size to make it readable, secondly don't even know how to "move" to gogrepo), IDLE (Python GUI) and Module Docs (but the last one doesn't seem to be the one I'm looking for).

Have no idea how to "move" it further.
Here's an example of my batch file for the update process:
@echo off
"E:\python36\python.exe" "G:\Files\GoGRepo\gogrepo.py" update -os windows -lang en -installers standalone -nolog >"G:\Files\GoGRepo\Logs\Update Clean\GoGRepo_Update_CLEAN_Log_%date:~10%%date:~4,2%%date:~7,2%.txt"
exit
This calls a command prompt (in windows) that runs gogrepo on my G:\ and creates my own log in a separate folder (annotated by the date). This call from the script does a full update of all my games in English on Windows. Note, I am not using the most recent version of gogrepo from Kalanyr due to improperly documented changes.

If you're using windows, the way to go is command prompt (cmd.exe) to run the script.
I've tried to launch gogrepo.py from my external hard drive just by typing G:\>gogrepo.py, but it only gives me this error:

"Traceback (most recent call last):
File "G:\gogrepo.py", line 21, in ,module.
import html5lib
ImportError: No module named html5lib

I've got downloaded this html5lib from this site:
https://pypi.org/project/html5lib/#files

I've tried to launch it by cmd, but it only gives me an error about unknown operation. My brother adviced me to use command "pip install html5lib html2text", but it only gives me an error:

"pip" is not recognized as an internal or external command, operable program or batch file

So it doesn't even start to work.
avatar
MartiusR: I've tried to launch gogrepo.py from my external hard drive just by typing G:\>gogrepo.py, but it only gives me this error:

"Traceback (most recent call last):
File "G:\gogrepo.py", line 21, in ,module.
import html5lib
ImportError: No module named html5lib

I've got downloaded this html5lib from this site:
https://pypi.org/project/html5lib/#files

I've tried to launch it by cmd, but it only gives me an error about unknown operation. My brother adviced me to use command "pip install html5lib html2text", but it only gives me an error:

"pip" is not recognized as an internal or external command, operable program or batch file

So it doesn't even start to work.
Right. Basically, the issue is that when you downloaded python, and you open the python file, it can find python, but if you open up the "command prompt" and type "pip" or "python" it can't find it. Try using "cd" or something to get wherever you installed python to, then you can type "pip" and it'll work. Another option, which might be easier, but is also more easy to screw up and cause problems, is adding the location of python to your "path variable."
I've just posted a similar message in the main gogreop thread. Can you find the folder where pip is installed? For me it's "C:\Python27\Scripts\pip.exe" so I would use the command "C:\Python27\Scripts\pip.exe install html5lib html2text".

Edit: Ha beat me to it :-)
Post edited November 18, 2018 by HappyPunkPotato
avatar
MartiusR: I've tried to launch gogrepo.py from my external hard drive just by typing G:\>gogrepo.py, but it only gives me this error:

"Traceback (most recent call last):
File "G:\gogrepo.py", line 21, in ,module.
import html5lib
ImportError: No module named html5lib

I've got downloaded this html5lib from this site:
https://pypi.org/project/html5lib/#files

I've tried to launch it by cmd, but it only gives me an error about unknown operation. My brother adviced me to use command "pip install html5lib html2text", but it only gives me an error:

"pip" is not recognized as an internal or external command, operable program or batch file

So it doesn't even start to work.
avatar
kohlrak: Right. Basically, the issue is that when you downloaded python, and you open the python file, it can find python, but if you open up the "command prompt" and type "pip" or "python" it can't find it. Try using "cd" or something to get wherever you installed python to, then you can type "pip" and it'll work. Another option, which might be easier, but is also more easy to screw up and cause problems, is adding the location of python to your "path variable."
I've tried to copy mentioned html5lib file to my python directory (E:\Python27), then I've tried to add this library, but still "pip" is not recognised.

Probably I'm doing something wrong, but don't know what.

Edit: Hold on, I've read post of HappyPunkPotato, I'll try in this way

Edit2: Ok, it worked, now when I've tried to launch gogrepo.py, I've got error: "No module named requests"

So I'm probably on the good road, but now I need to make some modification I guess.
Post edited November 19, 2018 by MartiusR
avatar
kohlrak: Right. Basically, the issue is that when you downloaded python, and you open the python file, it can find python, but if you open up the "command prompt" and type "pip" or "python" it can't find it. Try using "cd" or something to get wherever you installed python to, then you can type "pip" and it'll work. Another option, which might be easier, but is also more easy to screw up and cause problems, is adding the location of python to your "path variable."
avatar
MartiusR: I've tried to copy mentioned html5lib file to my python directory (E:\Python27), then I've tried to add this library, but still "pip" is not recognised.

Probably I'm doing something wrong, but don't know what.
Of course, what you just said.

"pip" is used to install "dependencies," which is code that is usually not part of the program you're downloading, 'cause it'd be a waste to constantly download the same things every time if other programs already have you doing it. Moving html5lib to E:\Python27 isn't going to make pip visible to the command prompt, 'cause that's not addressing the problem. The problem is that, in windows, %PATH% (type in "echo %PATH%" to see what it represents) is used to determine where windows should look when you type in the name of a program in "command prompt ["cmd"]." When you try to run gogrepo, you're not trying to do it from command prompt, so it finds python. However if you were to type "python" in the same place that you're trying to type "pip" you'll find it can't find python, either. This is because when python installed, it couldn't safely change %PATH% for you, 'cause the way windows works. Now, there's a few ways to go about this. You could either type "cd E:\Python27" (you may have to type "\bin" s well, but i'm not sure since i don't have this installed on a windows computer), or you could add the path to python to your %PATH% variable.

If you have skype or want to use private chat, i might be able to help faster.
avatar
MartiusR: Edit: Hold on, I've read post of HappyPunkPotato, I'll try in this way

Edit2: Ok, it worked, now when I've tried to launch gogrepo.py, I've got error: "No module named requests"

So I'm probably on the good road, but now I need to make some modification I guess.
Ninja...

But yeah, that's kind of right, but that's not an ideal way of going about it. Ideally you want to learn how to use pip properly, otherwise you could end up with issues of "packages being out of date" or something like that.
Post edited November 19, 2018 by kohlrak
You can install the requests module the same way as you installed html5lib and html2text. I think you also need one called pyopenssl.
Thanks a lot, will try in this weekend and let know if I've finally succeeded.

Sad true is, that my older brother could probably help me with all this stuff (since python is his thing), but he doesn't bother too much about sibling' troubles, so I need to literally "force" him to give every single piece of advice (and can't count that he will guide me properly through the whole process by his own will).
avatar
MartiusR: Thanks a lot, will try in this weekend and let know if I've finally succeeded.

Sad true is, that my older brother could probably help me with all this stuff (since python is his thing), but he doesn't bother too much about sibling' troubles, so I need to literally "force" him to give every single piece of advice (and can't count that he will guide me properly through the whole process by his own will).
Read up on the %PATH% variable and how it works. You should know how it is, how it works, and what you're doing. Alot of this stuff isn't hard to learn, and it usually doesn't take long to learn it or much reading, actually. People make these things out to be way scarier than they really are, and that promotes job security.
Stucked again. I've installed "requests" as well as "openssl". Now when I'm trying to launch gogrepo.py, there is something like that:

usage: gogrepo.py [-h] [-v]
{login, update, download, import, backup, verify, clean} ...
gogrepo.py: error: too few arguments

What are those h and v parameters?

I've made successfully gogrepo.py login procedure, so I'm guessing that I'm close now.

I've tried to go with gogrepo.py download
Then I've got this error:

loading game manifest
no game found

edit: Ok, I've found gogrepo.py update is crucial in this case, since it needs to collect data about my games.

Seems that I've finally made the first troublesome steps, hopefully it will go now better.

edit2: - there were some errors during proceeding with "update", but more importantly - now I'm wondering how can I estimate amoung of size necessary to make copy? "verify" seems to be useful only for comparing downloaded content with liberary's entries.
Post edited November 25, 2018 by MartiusR
avatar
MartiusR: Stucked again. I've installed "requests" as well as "openssl". Now when I'm trying to launch gogrepo.py, there is something like that:

usage: gogrepo.py [-h] [-v]
{login, update, download, import, backup, verify, clean} ...
gogrepo.py: error: too few arguments

What are those h and v parameters?

I've made successfully gogrepo.py login procedure, so I'm guessing that I'm close now.

I've tried to go with gogrepo.py download
Then I've got this error:

loading game manifest
no game found

edit: Ok, I've found gogrepo.py update is crucial in this case, since it needs to collect data about my games.

Seems that I've finally made the first troublesome steps, hopefully it will go now better.

edit2: - there were some errors during proceeding with "update", but more importantly - now I'm wondering how can I estimate amoung of size necessary to make copy? "verify" seems to be useful only for comparing downloaded content with liberary's entries.
-h is help, -v is version. You want to do an "update," which for me looks like
gogrepo.py update -os windows linux -lang en jp ru
'cause i want english and linux, s well ass english, japnese, and russian versions. Next i do "download" with the same params (which are redundant, but i'm paranoid). Then you do "verify" to make sure evrerything is in line. You can ignore the 404 errors with update: those are usually just galaxy versions which got removed, but gog keeps the links, anyway, so gogrepo ends up coonfused. "Make clean" looks for files that are no longer registered, which is great if you know you're ready to get rid of old installers that aren't considered the most up to date versions, or to get rid of stray files that gogrepo doesn't manage.
avatar
kohlrak: 'cause i want english and linux, s well ass english, japnese, and russian versions. Next i do "download" with the same params (which are redundant, but i'm paranoid). Then you do "verify" to make sure evrerything is in line. You can ignore the 404 errors with update: those are usually just galaxy versions which got removed, but gog keeps the links, anyway, so gogrepo ends up coonfused. "Make clean" looks for files that are no longer registered, which is great if you know you're ready to get rid of old installers that aren't considered the most up to date versions, or to get rid of stray files that gogrepo doesn't manage.
Thanks! Oh, that's a big relief, thought thatI will need to manually download quite a lot of games later.

Ok, I'm almost ready, made proper "manifest" with parameters I wanted, but now there is one thing I'm unsure:

1.How can I "split" download? I think that it would be wiser to make download in parts, since I've got more than 1000 titles in library.
Post edited November 25, 2018 by MartiusR