Giter VIP home page Giter VIP logo

Comments (5)

WisdomCode avatar WisdomCode commented on June 25, 2024 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.

eddie3 avatar eddie3 commented on June 25, 2024 3

Thanks. Will fix this.

from gogrepo.

kristroy avatar kristroy commented on June 25, 2024 2

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.

mikomuto avatar mikomuto commented on June 25, 2024

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.

pchristod avatar pchristod commented on June 25, 2024

Worked for me as well on Windows, thanks!

from gogrepo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.