stat157 / recent-quakes

Stat 157 Homework 2 due on Monday 2013-10-21 at 11:59pm
0 stars 20 forks source link

For those who get an error for using read_json #10

Open GalaxyNight-day opened 10 years ago

GalaxyNight-day commented 10 years ago

The problem is that you need pandas version 0.12 to use read_json. So first, check whether you have most current version of pandas or not. If not, I recommend you to do following steps.

sudo pip install python-dateutil --upgrade -this sudo code will install package that you will need for updating pandas sudo easy_install --upgrade pytz -this sudo code will install package that you will need for updating pandas sudo apt-get build-dep python-lxml -this sudo code will install package that you will need for updating pandas sudo easy_install --upgrade scipy -this sudo code will install package that you will need for updating pandas sudo easy_install --upgrade statsmodels -this sudo code will install package that you will need for updating pandas

sudo easy_install --upgrade pandas -this will upgrade your pandas package

aculich commented 10 years ago

@taywon Great trouble-shooting skills! How did you figure out this solution?

GalaxyNight-day commented 10 years ago

Thanks! I used typical problem solving method which is combination of stackoverflow and google search.

  1. tried to interpret error output
    ->easy. copy the error output. paste on google search box and put additional word "stackoverflow"
  2. realized that my pandas package is not current version ->easy. google "check pandas version stackoverflow"
  3. find out a way to upgrade pandas package ->easy. google "upgrade pandas sudo command"
  4. notified that I need to upgrade other packages ->easy. google "python pandas manual guide"
aculich commented 10 years ago

Seeing the troubleshooting process from your point of view is very helpful. Thanks for spending the time to write it up.