I am trying to install TextBlob. As per the official doc, i did this.
> pip install -U textblob
> python -m textblob.download_corpora
The pip command is doing its job. But the other command is giving following error.
[nltk_data] Error loading brown: HTTP Error 405: Not allowed.
[nltk_data] Error loading punkt: HTTP Error 405: Not allowed.
[nltk_data] Error loading wordnet: HTTP Error 405: Not allowed.
[nltk_data] Error loading averaged_perceptron_tagger: HTTP Error 405:
[nltk_data] Not allowed. [nltk_data] Error loading conll2000: HTTP
Error 405: Not allowed. [nltk_data] Error loading movie_reviews: HTTP
Error 405: Not allowed. Finished.
Any help is appreciated. Thank you.
I tried installing textblob last day and it was giving an error. Then I tried other NLP module called nltk. But yesterday somehow it wasn't working for both of them. It was saying error 405 : not allowed. I looked for other posts but could not find anything.
When I tried today, surprisingly it started downloading the submodules. I think it was the server - githubusercontent issue from where it was trying to download the data from.
I am not sure if you'd face such errors but if you do, just try after sometime and hope it works for you too.
python -m textblob.download_corpora
import nltk
nltk.download()
Related
import nltk
nltk.download('punkt')
showing error:
[nltk_data] Error loading punkt: <urlopen error [WinError 10060] A
[nltk_data] connection attempt failed because the connected party
[nltk_data] did not properly respond after a period of time, or
[nltk_data] established connection failed because connected host
[nltk_data] has failed to respond>
I have pip installed nltk and tried downloading the full nltk version for my learning.
# I used this key to download full version
import nltk
nltk.download()
showing the error: WinError 10060
Changing the network to another wifi connection worked for me. The previous connection had some sort of blockers for me. Hope this helps.
When I try to import supplementary visualizations code I got the following:
import visuals as vs
**ModuleNotFoundError: No module named 'visuals'**
I tried to install VPython via the link: https://vpython.org/presentation2018/install.html
and then:
conda install -c vpython vpython
but I got error:
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://conda.anaconda.org/vpython/win-64/current_repodata.json>
Elapsed: -
An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
'https://conda.anaconda.org/vpython/win-64'
I tried again and again but it did not work.
My second try was:
pip install vpython
but I got 'ERROR: No matching distribution found for vpython.'
Do you have any advise how can I import visuals as vs?
Thanks,
If it's python version 3.8, try using pip3 install vpython
I have be getting the following error message while trying to download packages in python 3.4.3 with pip
Command python setup.py egg_info failed with error code 1 in C:\AppData\Local\Temp\pip-build-vm7h4kaq\cx-oracle
I have been getting this error message very often, I am unable to download many packages because of this. Someone please help me to fix this and also explain what this message means.
Here is the code. Any idea what this link isn't working?
from requests import get
InputJson = urllib2.openurl('https://api.cilabs.net/v1/conferences/ws15/info/attendees?page=2')
Here is my error message
SSLError: [Errno 1] _ssl.c:510: error:14077438:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert internal error
I tried setting verify to false, as suggested by a previous post. But to no avail.
My python version is 2.7.8
Try upgrading the following libraries with pip:
pip install --upgrade pyopenssl ndg-httpsclient pyasn1
I installed Scrapy on Fedora 20 and when I tried to create a new project it gives me the following error:
/usr/lib/python2.7/site-packages/Twisted-14.0.0-py2.7-linux-x86_64.egg/twisted/internet/_sslverify.py:184: UserWarning: You do not have the service_identity module installed. Please install it from <https://pypi.python.org/pypi/service_identity>. Without the service_identity module and a recent enough pyOpenSSL tosupport it, Twisted can perform only rudimentary TLS client hostnameverification. Many valid certificate/hostname mappings may be rejected.
I tried searching for the module service_identity but in vain!
Could anyone help me in this regard.
Thanks in advance
Try pip install service_identity to resolve this issue.