-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Spyper cannot read yahoo stock price #2569
Comments
I debug it, the code analysis says: |
I don't understand. How exactly did you debug this problem? And what can we do to solve it? |
in the Spyder screen, I click the debug and click run the file which I installed Spyder through installation of Anaconda, should I reinstalled On Tue, Jul 28, 2015 at 2:38 PM, Carlos Cordoba [email protected]
|
When I run the same command lines at Wakari IPython console it works very On Tue, Jul 28, 2015 at 2:38 PM, Carlos Cordoba [email protected]
|
I believe some thing wrong with the Spyder IPython Console On Tue, Jul 28, 2015 at 3:26 PM, Israel Kang [email protected] wrote:
|
The failure comes from a http request. I'd be surprised if this was due to the Spyder console. Can you make the request on your browser? Also, does the code still not work in Spyder? It's not uncommon for some sites to occasionally not work and for the requests to go through at later times (due to a temporary server outage or high load). Wakari on the other hand is running on a remote server and sending the results back to you. If for some reason your network was blocking data from yahoo I'd expect Wakari to work and Spyder to not. You could also try looking at what the http status code is that is being returned. It not being a "200" is rather vague (see pandas\io\data.py", line 185, in _retry_read_url). Regarding Pandas being imported but not used, that is simply a reference to the fact that you imported the Pandas module but never refer to it in the code.
Just remove the first line. It isn't causing any harm but it looks weird.
|
Hi Jim, I click on the link It still does not work from Spyder Ipython console. Thanks for the comment It could possibly my company's server block me accessing the data from Do you have any ways to suggest me to verify this is the case? Thanks a lot Israel On Tue, Jul 28, 2015 at 5:59 PM, Jim Hokanson [email protected]
|
If you use a browser on the same computer from which you are running Spyder, that should be a good enough check. If the browser works then it is something in the way that the call is being made. I would recommend debugging at the call point and seeing what the actual http response is, not the cleaned up error that pandas is providing. |
How exactly I should debug at the call point? I am new to Python. |
Sorry but this problem has really nothing to do with spyder, so I'm closing the issue. |
I recently installed Spyder, however, I cannot fetch stock price from Yahoo using IPhython console.
However, when I use separate IPhython console, I could do it successfully.
What steps will reproduce the problem?
run the folowing scripts:
What is the expected output? What do you see instead?
when I use separate IPhython console, I could do it successfully.
Please provide any additional information below
Version and main components
Spyder 2.3
Python 2.7.10 |Anaconda 2.3.0 (64-bit)| (default, May 28 2015, 16:44:52) [MSC v.1500 64 bit (AMD64)] on win32
IPython >=1.0 : 3.2.0 (OK)
jedi >=0.8.1 : 0.8.1 (OK)
matplotlib >=1.0: 1.4.3 (OK)
pandas >=0.13.1 : 0.16.2 (OK)
pep8 >=0.6 : 1.6.2 (OK)
pyflakes >=0.5.0: 0.9.2 (OK)
pygments >=1.6 : 2.0.2 (OK)
pylint >=0.25 : None (NOK)
rope >=0.9.2 : 0.9.4 (OK)
sphinx >=0.6.6 : 1.3.1 (OK)
sympy >=0.7.3 : 0.7.6 (OK)
zmq >=2.1.11 : 14.7.0 (OK)
The text was updated successfully, but these errors were encountered: