Comments (5)
Just as a quick fix for anyone having this problem, at least on linux systems, find the line and replace 'rU' with 'r' (simply remove the U), and it should work again.
On other OSses, the keyword newline might be necessary (something like
codecs.open(MANIFEST_FILENAME, 'r', 'utf-8', newline="\r\n") as r:
may be needed in windows, untested!)
from gogrepo.
Thanks. Will fix this.
from gogrepo.
Just tried the fix from @WisdomCode on my Windows10 system and found that removing the U was enough; adding a newline argument returned TypeError: open() got an unexpected keyword argument 'newline'
. Hope this helps!
from gogrepo.
Full error generated with Python 3.11:
E:\GOG Games>gogrepo.py update
13:06:14 | loading local manifest...
13:06:14 | fatal...
Traceback (most recent call last):
File "E:\GOG Games\gogrepo.py", line 1170, in
main(process_argv(sys.argv))
File "E:\GOG Games\gogrepo.py", line 1145, in main
cmd_update(args.os, args.lang, args.skipknown, args.updateonly, args.id)
File "E:\GOG Games\gogrepo.py", line 607, in cmd_update
gamesdb = load_manifest()
^^^^^^^^^^^^^^^
File "E:\GOG Games\gogrepo.py", line 257, in load_manifest
with codecs.open(MANIFEST_FILENAME, 'rU', 'utf-8') as r:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 906, in open
ValueError: invalid mode: 'rUb'
from gogrepo.
Worked for me as well on Windows, thanks!
from gogrepo.
Related Issues (20)
- Game download randomly stops HOT 5
- [enhancement] Skip already verified HOT 2
- Python3 support HOT 2
- Download only new/updated HOT 1
- Unable to Verify games with Windows directory specified HOT 2
- "Skip games marked as hidden" function not working HOT 8
- Multiple directories / hard-drives HOT 2
- Unknown threading error HOT 1
- xml parsing error occurred trying to get md5 data for .... HOT 12
- XML Parsing Error HOT 3
- Login always fails with "cannot continue, gog is asking for a reCAPTCHA :( try again in a few minutes." HOT 14
- XML error has reappeared HOT 2
- Add a flag to not download/save patch files HOT 5
- Download/Unicode error HOT 2
- SyntaxError: EOL while scanning string literal
- Extras in separete folder
- Enhancement request: treat files that begin "patch_" differently from files that begin "setup_" HOT 1
- gogrepo uploading files?
- can't login anymore - "ValueError: unknown url type: 'None'" HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gogrepo.