Skip to content
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

BeautifulSoup4 may need to be upgraded #44

Closed
esagara opened this issue Feb 27, 2017 · 3 comments
Closed

BeautifulSoup4 may need to be upgraded #44

esagara opened this issue Feb 27, 2017 · 3 comments

Comments

@esagara
Copy link
Collaborator

esagara commented Feb 27, 2017

I just tried bootstrapping the pycar repo using pip install -r requirements.txt. When importing BeautifulSoup it throws an error - ImportError: cannot import name 'HTMLParseError'. This is fixed by running pip install --upgrade beautifulsoup4. Apparently this has been an issue since Python 3.5. Do we need to update requirements.txt?

@tommeagher
Copy link
Collaborator

I'm assuming you used pip3 install beautifulsoup4?

I haven't had that issue, but if it's common, we should address it. Do you want to update requirements.txt?

It shouldn't be a problem in the class, since it's already installed on the machines, but will be good for the repo to work for folks when they get home.

@esagara
Copy link
Collaborator Author

esagara commented Feb 27, 2017

I've been using pyenv to manage my python versions, so I did not need the pip3 command. Is there a reason for the version requirement? I don't want to alter it and break something down the road.

@rdmurphy
Copy link
Collaborator

rdmurphy commented Feb 27, 2017

pip3 (and python3) are where Python 3 lives in scenarios where both versions have been installed. Main reason is to avoid breaking all the things where python is expected to be v2 in build chains. Dunno what computers y'all are using for the class, but I know this is the case with Homebrew and MacOS.

If you use something like pyenv or virtualenv to create a Python 3 environment, it'll point pip at pip3 (and python at python3) for you because you've safely left the land of "system" Python.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants