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

×
avatar
RawSteelUT: Hey there, guys. I'm new to the gogrepo script. Any way to resolve the error in the attached screenshot?
avatar
Kalanyr: Wooly doesn't seem to be maintaining the original any more. Try my fork located here: https://github.com/Kalanyr/gogrepo
and let me know if you stil have this problem.
I am having the exact same problem when trying to login using your fork.
Thanks.
https://github.com/Kalanyr/gogrepo/tree/dev

Is the above dev branch safe to use or should we still be grabbing from Working2 from below?

https://github.com/Kalanyr/gogrepo/tree/working2

Or is the most stable this guy here:

https://github.com/Kalanyr/gogrepo

Also I'm getting a ton of the 404's now and realized I'm way out of date and needed to update... grabbing the master for now and until i get a reply ;) also thanks for all the hard work, we truly appreciate all you've done for the community here!
Post edited August 11, 2018 by Starkrun
I'm also using Kalanyr's branch, and I have a question (I'm probably missing something here, but I can't figure out what).

I'd like to separate the !orphaned and !downloading folders from the actual save location. Specifically, I want to downlaod and orphan onto a different drive from the actual games drive, because I don't have enough space left on my backup disk.
I tried using the 'savedir' parameter with the download command, but if I specify a different folder form the one I am running the script from (which is the root of my GOG games backup folder), it puts ALL folders (so !orphaned, !downloading, but also the games folders themselves) in the savedir folder, and starts to re-download my entire collection.
I'm using the master branch at: https://github.com/Kalanyr/gogrepo

i get the following error:

PS E:\Gamez\GoG> python gogrepo.py
Traceback (most recent call last):
File "gogrepo.py", line 40, in <module>
import requests
ImportError: No module named requests
PS E:\Gamez\GoG>

... im usinfg python 2.7 is 3.0 required now?
Attachments:
capture.jpg (47 Kb)
avatar
Starkrun: I'm using the master branch at: https://github.com/Kalanyr/gogrepo

i get the following error:

PS E:\Gamez\GoG> python gogrepo.py
Traceback (most recent call last):
File "gogrepo.py", line 40, in <module>
import requests
ImportError: No module named requests
PS E:\Gamez\GoG>

... im usinfg python 2.7 is 3.0 required now?
Its a new requirement that you are missing the requests module
you can use pip to install it "pip install requests"
avatar
Cusith: ...snip
Im an idiot and been out of the scirpt/programing game to long.. that or i should have just used my brain a little.

Ok for anyone searching you need to install:

html5lib
html2text
six
requests
pyopenssl

and use python 3 for the main branch at https://github.com/Kalanyr/gogrepo
Post edited August 11, 2018 by Starkrun
avatar
Cusith: ...snip
avatar
Starkrun: Im an idiot and been out of the scirpt/programing game to long.. that or i should have just used my brain a little.

But its asking for OpenSSL and pip doesn't see it.

PS E:\Gamez\GoG> python gogrepo.py
Traceback (most recent call last):
File "gogrepo.py", line 42, in <module>
import OpenSSL
ModuleNotFoundError: No module named 'OpenSSL'
PS E:\Gamez\GoG> python -m pip install OpenSSL
Collecting OpenSSL
Could not find a version that satisfies the requirement OpenSSL (from versions: )
No matching distribution found for OpenSSL
PS E:\Gamez\GoG>
think its this one pyOpenSSL
avatar
Cusith: ...snip
got it and edited my above for anyone scrolling around. im going to see about making the changes to the readme that packaged with the script to reflect that
Master is the current stable branch , it's mostly backwards compatibility with the original build.

Dev is the working branch for what will be the release of this fork with a new thread , and is less backwards compatible but mostly so (I'm changing some defaults and deprecating some unused commands)

Working2 is long stale.

I'm happy to allow redirection of !orphaned. Given potential issues with actions passed to the OS, I don't think redirecting !downloading is a good idea (it's a scratch directory).

Someone did send me a partially updated readme , I haven't merged yet, if you'd like to update the readme, drop me a line and I'll pass that to you.
avatar
Kalanyr: Wooly doesn't seem to be maintaining the original any more. Try my fork located here: https://github.com/Kalanyr/gogrepo
and let me know if you stil have this problem.
avatar
rgnrk: I am having the exact same problem when trying to login using your fork.
Thanks.
Hmmmm. Your error should definitely be different. I rewrote that code segment. Could you provide the current error dump. It probably does look very similar
Post edited August 11, 2018 by Kalanyr
avatar
Kalanyr: Hmmmm. Your error should definitely be different. I rewrote that code segment. Could you provide the current error dump. It probably does look very similar
User the master branch, this is what I get with the "gogrepo.py login":

02:13:59 | attempting gog login as '<username>' ...
02:14:01 | fatal...
Traceback (most recent call last):
File "I:\GAMES\GOG\gogrepo.py", line 2342, in <module>
main(process_argv(sys.argv))
File "I:\GAMES\GOG\gogrepo.py", line 2236, in main
cmd_login(args.username, args.password)
File "I:\GAMES\GOG\gogrepo.py", line 946, in cmd_login
with request(login_data['auth_url'], delay=0) as page:
File "I:\GAMES\GOG\gogrepo.py", line 235, in request
page = opener.open(req)
File "C:\Python27\lib\urllib2.py", line 421, in open
protocol = req.get_type()
File "C:\Python27\lib\urllib2.py", line 283, in get_type
raise ValueError, "unknown url type: %s" % self.__original
ValueError: unknown url type: undefined
whats up with the files that have the (g) in their title?
avatar
Starkrun: whats up with the files that have the (g) in their title?
Probably installers with the Galaxy stub built in.
avatar
Kalanyr: Hmmmm. Your error should definitely be different. I rewrote that code segment. Could you provide the current error dump. It probably does look very similar
avatar
rgnrk: User the master branch, this is what I get with the "gogrepo.py login":

02:13:59 | attempting gog login as '<username>' ...
02:14:01 | fatal...
Traceback (most recent call last):
File "I:\GAMES\GOG\gogrepo.py", line 2342, in <module>
main(process_argv(sys.argv))
File "I:\GAMES\GOG\gogrepo.py", line 2236, in main
cmd_login(args.username, args.password)
File "I:\GAMES\GOG\gogrepo.py", line 946, in cmd_login
with request(login_data['auth_url'], delay=0) as page:
File "I:\GAMES\GOG\gogrepo.py", line 235, in request
page = opener.open(req)
File "C:\Python27\lib\urllib2.py", line 421, in open
protocol = req.get_type()
File "C:\Python27\lib\urllib2.py", line 283, in get_type
raise ValueError, "unknown url type: %s" % self.__original
ValueError: unknown url type: undefined
Hmmm. GOG has changed the logic of the login page slightly which broke the old way of getting the login URL. A quick fix is easy.

Change:
login_data['auth_url'] = elm.text.split("'")[1]
to
login_data['auth_url'] = elm.text.split("'")[3]


I'll put in some more checking there, so it's more obvious if GOG changes the structure again in future and upload a fix when I get a chance.
avatar
Starkrun: whats up with the files that have the (g) in their title?
avatar
Kalanyr: Probably installers with the Galaxy stub built in.
Supposedly, they got rid of those, though, remember?
avatar
Kalanyr: Probably installers with the Galaxy stub built in.
avatar
kohlrak: Supposedly, they got rid of those, though, remember?
No ? I keep them in my manifest for testing purposes and they've never been removed. GOGrepo update just doesn't get them by default since they aren't much use to most people.