Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing error in PL Callback #547

Closed
enochkan opened this issue Mar 7, 2021 · 1 comment · Fixed by #552
Closed

Testing error in PL Callback #547

enochkan opened this issue Mar 7, 2021 · 1 comment · Fixed by #552

Comments

@enochkan
Copy link
Contributor

enochkan commented Mar 7, 2021

Please refer to the issue here

Testing PL Callback results in HTTP error 403 (similar to this issue). There are simple workarounds in test_pl_callback using urllib such as:

def set_header_for(self):
         opener = urllib.request.build_opener()
         opener.addheaders = [("User-agent", "Mozilla/5.0")]
         urllib.request.install_opener(opener)

     def prepare_data(self):
         self.set_header_for()
         # download only
         MNIST(
             "/tmp/keepsake-test-mnist",

However it breaks the overall build, hence further investigation is needed.

@bfirsh
Copy link
Member

bfirsh commented Mar 8, 2021

Thanks! This is the real fix: #551

bfirsh referenced this issue in bfirsh/keepsake Mar 8, 2021
Closes #547
Ref #551

Signed-off-by: Ben Firshman <[email protected]>
bfirsh referenced this issue in bfirsh/keepsake Mar 8, 2021
Closes #547
Ref #551

Signed-off-by: Ben Firshman <[email protected]>
bfirsh added a commit that referenced this issue Mar 8, 2021
Closes #547
Ref #551

Signed-off-by: Ben Firshman <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants