Git Product home page Git Product logo

Comments (12)

guoguo12 avatar guoguo12 commented on July 18, 2024

Hey, thanks for posting this! I can't reproduce this on my machine. Can I get some info on your OS and Python version, and also how you're running this? (Are you in IPython?)

from billboard-charts.

dataframing avatar dataframing commented on July 18, 2024

Sure thing:

OS: OSX 10.11.13
Python 3.4.4

The error occurs in both IPython and the REPL.

After some further inspection, it seems like this runs Python 2 under the hood – would a virtual environment help?

from billboard-charts.

guoguo12 avatar guoguo12 commented on July 18, 2024

Don't think so. It should work on either Python 2 or 3.

Can you access this page in your web browser?

from billboard-charts.

dataframing avatar dataframing commented on July 18, 2024

Not sure if you meant to link to

https://github.com/guoguo12/billboard-charts/issues/www.billboard.com/charts/hot-100#/charts/hot-100

or just

www.billboard.com/charts/hot-100#/charts/hot-100

If the former, no. If the latter, yes.

from billboard-charts.

guoguo12 avatar guoguo12 commented on July 18, 2024

Oops... typo.

Hmm... I'm stumped. Try on a different computer? I'll let you know if I think of anything.

from billboard-charts.

guoguo12 avatar guoguo12 commented on July 18, 2024

On second thought, try installing via pip instead of just cloning the repo. Maybe you have an unsupported version of BeautifulSoup or Requests.

from billboard-charts.

guoguo12 avatar guoguo12 commented on July 18, 2024

Any luck @dannyFig? :)

from billboard-charts.

guoguo12 avatar guoguo12 commented on July 18, 2024

Closing due to lack of response. Feel free to reopen if this happens again!

from billboard-charts.

jackbeckwith avatar jackbeckwith commented on July 18, 2024

Also having this issue @guoguo12...

I'm getting the same error trace as above, with the error message "TypeError: 'NoneType' object is not callable". Any suggestions?

Looks to me as though line 178 is causing the issue, likely because beautiful soup is finding nothing with the given selector:
selector = 'div.chart-row__' + rowName + ' .chart-row__value'

from billboard-charts.

emo-eth avatar emo-eth commented on July 18, 2024

@jackbeckwith are you installing billboard.py from pip? I'm not able to reproduce the error on either python 2.7.12 or 3.5.2 (minimum-required requests/bs4 on python2 and latest on python3). If you've installed via pip, maybe try upgrading bs4 and requests.

from billboard-charts.

jackbeckwith avatar jackbeckwith commented on July 18, 2024

Thanks @jameswenzel - issue is solved. For me, updating all packages worked.

python 2.7.10 -> python 2.7.12
bs4 4.3.2 -> bs4 4.4.1
requests 2.9.1 -> 2.10.0

from billboard-charts.

guoguo12 avatar guoguo12 commented on July 18, 2024

Interesting! I'll bump the version numbers of the dependencies up. Thanks, @jameswenzel and @jackbeckwith!

from billboard-charts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.