eddie3 / gogrepo

Python-based tool for downloading all your GOG.com game and bonus collections to your local computer for full offline enjoyment.
481 stars 114 forks source link

Unknown threading error #62

Closed ToxiClay closed 2 years ago

ToxiClay commented 2 years ago

I have two separate copies of GOGRepo, on two separate drives. E: is an internal 2TB platter drive, and I: is an external WD Black 8TB platter drive. There is no other difference.

I can run GOGRepo from E with no issue, but I fails, and I'm not understanding the traceback. I'm hoping someone here can help me. Python 2.7.18 is the only Python I have installed, as I am unable to convert GOGRepo to 3.

E:\GOG Repository>gogrepo.py download -id fates_of_ort
16:39:30 | loading local manifest...
16:39:30 | {fates_of_ort}
16:39:30 |      download   setup_fates_of_ort_1.3.1_(64bit)_(49376).exe
16:39:30 |      download   setup_fates_of_ort_1.3.1_(32bit)_(49376).exe
16:39:30 | ------------------------------------------------------------
16:39:32 |    284.0MB 39.3MB/s  1x  fates_of_ort/setup_fates_of_ort_1.3.1_(64bit)_(49376).exe
16:39:32 | 576.3MB remaining
16:39:33 |    278.7MB 20.5MB/s  1x  fates_of_ort/setup_fates_of_ort_1.3.1_(32bit)_(49376).exe
16:39:33 |    244.4MB 39.3MB/s  1x  fates_of_ort/setup_fates_of_ort_1.3.1_(64bit)_(49376).exe
16:39:33 | 523.1MB remaining
16:39:34 |    257.5MB 20.9MB/s  1x  fates_of_ort/setup_fates_of_ort_1.3.1_(32bit)_(49376).exe
16:39:34 |    223.3MB 20.8MB/s  1x  fates_of_ort/setup_fates_of_ort_1.3.1_(64bit)_(49376).exe
16:39:34 | 480.8MB remaining
16:39:35 |    237.9MB 19.3MB/s  1x  fates_of_ort/setup_fates_of_ort_1.3.1_(32bit)_(49376).exe
16:39:35 |    203.5MB 19.5MB/s  1x  fates_of_ort/setup_fates_of_ort_1.3.1_(64bit)_(49376).exe
16:39:35 | 441.4MB remaining
16:39:36 |    218.4MB 19.3MB/s  1x  fates_of_ort/setup_fates_of_ort_1.3.1_(32bit)_(49376).exe
16:39:36 |    188.0MB 15.4MB/s  1x  fates_of_ort/setup_fates_of_ort_1.3.1_(64bit)_(49376).exe
16:39:36 | 406.4MB remaining
16:39:37 |    193.4MB 24.7MB/s  1x  fates_of_ort/setup_fates_of_ort_1.3.1_(32bit)_(49376).exe
16:39:37 |    170.3MB 17.6MB/s  1x  fates_of_ort/setup_fates_of_ort_1.3.1_(64bit)_(49376).exe
16:39:37 | 363.6MB remaining
16:39:38 |    162.5MB 30.4MB/s  1x  fates_of_ort/setup_fates_of_ort_1.3.1_(32bit)_(49376).exe
16:39:38 |    146.9MB 22.8MB/s  1x  fates_of_ort/setup_fates_of_ort_1.3.1_(64bit)_(49376).exe
16:39:38 | 309.5MB remaining
16:39:39 |    125.6MB 36.2MB/s  1x  fates_of_ort/setup_fates_of_ort_1.3.1_(32bit)_(49376).exe
16:39:39 |    120.0MB 26.4MB/s  1x  fates_of_ort/setup_fates_of_ort_1.3.1_(64bit)_(49376).exe
16:39:39 | 245.5MB remaining
16:39:40 |     85.7MB 39.2MB/s  1x  fates_of_ort/setup_fates_of_ort_1.3.1_(32bit)_(49376).exe
16:39:40 |     90.4MB 29.1MB/s  1x  fates_of_ort/setup_fates_of_ort_1.3.1_(64bit)_(49376).exe
16:39:40 | 176.1MB remaining
16:39:41 |     53.8MB 31.6MB/s  1x  fates_of_ort/setup_fates_of_ort_1.3.1_(32bit)_(49376).exe
16:39:41 |     73.0MB 17.3MB/s  1x  fates_of_ort/setup_fates_of_ort_1.3.1_(64bit)_(49376).exe
16:39:41 | 126.7MB remaining
16:39:42 |     24.5MB 28.9MB/s  1x  fates_of_ort/setup_fates_of_ort_1.3.1_(32bit)_(49376).exe
16:39:42 |     55.4MB 17.3MB/s  1x  fates_of_ort/setup_fates_of_ort_1.3.1_(64bit)_(49376).exe
16:39:42 | 79.9MB remaining
16:39:43 |         0B 29.9MB/s  1x  fates_of_ort/setup_fates_of_ort_1.3.1_(32bit)_(49376).exe
16:39:43 |     34.8MB 20.3MB/s  1x  fates_of_ort/setup_fates_of_ort_1.3.1_(64bit)_(49376).exe
16:39:43 | 34.8MB remaining
16:39:44 |      9.3MB 25.0MB/s  1x  fates_of_ort/setup_fates_of_ort_1.3.1_(64bit)_(49376).exe
16:39:44 | 9.3MB remaining
16:39:45 | --
16:39:45 | total time: 0:00:15.277000
16:39:45 | exiting...

However, when running the command from I:

I:\Games\GOG Repository>gogrepo.py download -id fates_of_ort
16:39:33 | loading local manifest...
16:39:33 | {fates_of_ort}
16:39:33 |      download   setup_fates_of_ort_1.3.1_(64bit)_(49376).exe
16:39:33 |      download   setup_fates_of_ort_1.3.1_(32bit)_(49376).exe
16:39:33 | ------------------------------------------------------------
Exception in thread Thread-2:
Traceback (most recent call last):
  File "C:\Python27\lib\threading.py", line 801, in __bootstrap_inner
    self.run()
  File "C:\Python27\lib\threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "I:\Games\GOG Repository\gogrepo.py", line 929, in worker
    hdr = page.headers['Content-Range'].split()[-1]
  File "C:\Python27\lib\rfc822.py", line 393, in __getitem__
    return self.dict[name.lower()]
KeyError: u'content-range'

Exception in thread Thread-1:
Traceback (most recent call last):
  File "C:\Python27\lib\threading.py", line 801, in __bootstrap_inner
    self.run()
  File "C:\Python27\lib\threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "I:\Games\GOG Repository\gogrepo.py", line 929, in worker
    hdr = page.headers['Content-Range'].split()[-1]
  File "C:\Python27\lib\rfc822.py", line 393, in __getitem__
    return self.dict[name.lower()]
KeyError: u'content-range'

16:39:36 | --
16:39:36 | total time: 0:00:03.122000
16:39:36 | exiting...

Two null files are generated, but it can't download the data from GOG.

ToxiClay commented 2 years ago

I've been running GOGRepo from my I: drive for a while now with no issue. I'm not entirely clear what happened.