Giter VIP home page Giter VIP logo

Comments (3)

Coolthulhu avatar Coolthulhu commented on May 29, 2024 1

I had the same problem. Ran GloriousEgg version of Proton with waitandrun instead of run option and it printed a log made mostly of:

Threads getting "403 forbidden"

Exception in thread Thread-4:
Traceback (most recent call last):
  File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/home/username/Proton-6.0-GE-1/protonfixes/corefonts.py", line 48, in download_file
    with urllib.request.urlopen(url, files) as font:
  File "/usr/lib/python3.8/urllib/request.py", line 222, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.8/urllib/request.py", line 531, in open
    response = meth(req, response)
  File "/usr/lib/python3.8/urllib/request.py", line 640, in http_response
    response = self.parent.error(
  File "/usr/lib/python3.8/urllib/request.py", line 569, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.8/urllib/request.py", line 502, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.8/urllib/request.py", line 649, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)

For some reason, calling urllib.request.urlopen(url, files) gets a 403 on github links. This reproduces outside of the protonfixes script, with just:

import urllib.request
url = "https://github.com/pushcx/corefonts/raw/master/andale32.exe"
files = []
font = urllib.request.urlopen(url, files)

Changing the files from [] to None seems to have fixed it - the fonts downloaded properly and extracted into some ttf files.

from protonfixes.

simons-public avatar simons-public commented on May 29, 2024

The url https://github.com/pushcx/corefonts/raw/master/ is a 404 and can't be browsed, but corefonts.py downloads the url + font name + 32.exe which is still working from the pushcx/corefonts repo as far as I can tell. For example, it would try https://github.com/pushcx/corefonts/raw/master/andale32.exe first which still downloads for me. Is it possible there's something else blocking the download?

from protonfixes.

simons-public avatar simons-public commented on May 29, 2024

Yeah that makes sense looking at the urllib docs, I'm surprised Github wasn't throwing 403's before. Thanks!

from protonfixes.

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.