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

Add a requirements.txt #3

Open
sjqtentacles opened this issue Apr 6, 2017 · 5 comments
Open

Add a requirements.txt #3

sjqtentacles opened this issue Apr 6, 2017 · 5 comments

Comments

@sjqtentacles
Copy link

Getting a weird module version issue with tensorflow and the method 'unpack' not being an attribute. Would be helpful if a requirements.txt file was included to use with virtualenv.

@dribnet
Copy link

dribnet commented Apr 6, 2017

I'm similarly having trouble with the html dependency - cannot run the code because html.unescape is not found (even after installing html via pip).

edit: aha, this seems to imply python3. so it would be good to note that.

update: code now works fine for me with Python 3.5.3 and tensorflow (0.12.1).

@bitliner
Copy link

bitliner commented Apr 9, 2017

@dribnet for python 2 you can use text=HTMLParser.HTMLParser().unescape(text)

@Nixonite you might run it in anaconda, that would make it easier to make it work I think

@dthiagarajan
Copy link

Using HTMLParser doesn't work exactly like you would want it to - I think you found this in #2 as well. I'm not sure what the way to fix it is in python 2 is, though.

@igauravsehrawat
Copy link

Use python3 and pip3.

Added requirements.txt in this PR. #43

@hoangcuong2011
Copy link

This should work well with python 3.6, but not python 2.7.

I did a mistake with html.unescape(). Because I use python 2.7, I did change the code to

HTMLParser.HTMLParser().unescape(text)

After I import HTMLParser

This turned out to be a bad idea.

So again, my recommendation is to use python 3.6 to run this amazing work.

Hope this helps other people who have this problem as well.

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

6 participants