unitedstates / congress

Public domain data collectors for the work of Congress, including legislation, amendments, and votes.
https://github.com/unitedstates/congress/wiki
Creative Commons Zero v1.0 Universal
929 stars 202 forks source link

Error: ImportError: No module named html.entities after the Feb 28th update #271

Closed jacobcrp closed 3 years ago

jacobcrp commented 3 years ago

Morning!

Running into this error after pulling in the newest changes from Feb 28th:

./run govinfo --bulkdata=BILLSTATUS
Traceback (most recent call last):
  File "./run", line 54, in <module>
    import utils
  File "/home/ubuntu/congress3/congress/tasks/utils.py", line 9, in <module>
    import html.entities
ImportError: No module named html.entities

This box is only used for pulling in Bills data but it's possible there was an update to the OS I don't know about that could have thrown a wrench into our processing.

Thanks!

JoshData commented 3 years ago

What version of Python are you running? The package should be available at least since 3.5 (according to the Python docs).

jacobcrp commented 3 years ago

Thanks for getting back to me. Looks like the venv is running 2.7.12. Should we wipe this and start with 3.5+?

JoshData commented 3 years ago

Since October this project now uses Python 3, yeah.

jacobcrp commented 3 years ago

Great, working now. Thanks Josh!