question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

HTTP 301 when calling FastText()

See original GitHub issue

🐛 Bug

Describe the bug

Calling FastText() results to HTTP Error 301: Moved Permanently

To Reproduce Steps to reproduce the behavior:

from torchtext.vocab import FastText

embeddings = FastText()

Expected behavior Making a call to FastText() should download the FastText embeddings.

Screenshots Schermafbeelding 2020-05-05 om 16 01 14

Environment

PyTorch version: 1.5.0+cu101 Is debug build: No CUDA used to build PyTorch: 10.1

OS: Ubuntu 18.04.3 LTS GCC version: (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0 CMake version: version 3.12.0

Python version: 3.6 Is CUDA available: Yes CUDA runtime version: 10.1.243 GPU models and configuration: GPU 0: Tesla K80 Nvidia driver version: 418.67 cuDNN version: /usr/lib/x86_64-linux-gnu/libcudnn.so.7.6.5

Versions of relevant libraries: [pip3] numpy==1.18.3 [pip3] torch==1.5.0+cu101 [pip3] torchsummary==1.5.1 [pip3] torchtext==0.3.1 [pip3] torchvision==0.6.0+cu101 [conda] Could not collect

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
tejas0809commented, Jul 21, 2020

I upgraded it to 0.6.0 and it worked, thanks! Weird that Google Colab uses a default installation version 0.3.0 for torchtext.

1reaction
zhangguanheng66commented, Jul 21, 2020

Can you check the version of torchtext and bump it up?

Read more comments on GitHub >

github_iconTop Results From Across the Web

python says http-response code is 200, but server says 301
when I use response.getcode() to find the response, it says it's 200. What would cause this discrepancy? Is there another method to check...
Read more >
Node.js Redirect URL - Examples - Tutorial Kart
For example, if you have moved the resource permanently, using 301 HTTP code in the response passes the juice to the redirected URL,...
Read more >
Milestone 2 RTB - Kaggle
FastText was developed by Facebook to overcome the problem of homonyms (word with same spelling and pronounciation but have multiple contexts).
Read more >
Scikit-learn Wrappers for Python FastText - Morioh
fastText works only on text data, which means that it will only use a single column from a dataset which might contain many...
Read more >
Natural Language Processing of German texts - Part 2
TPUStrategy(tpu) else: strategy = tf.distribute.get_strategy() print("REPLICAS: " ... HTTP request sent, awaiting response... 301 Moved ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found