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

Error when running pip install pyteaser #57

Open
jafetmorales opened this issue Aug 22, 2018 · 9 comments
Open

Error when running pip install pyteaser #57

jafetmorales opened this issue Aug 22, 2018 · 9 comments

Comments

@jafetmorales
Copy link

This is the output when running pip install pyteaser

Collecting pyteaser
  Downloading https://files.pythonhosted.org/packages/d4/7a/310592c6e7998440e56a8650446ecf3ded076431415c60f0f3b946b54462/pyteaser-2.0.tar.gz (40kB)
Requirement already satisfied: Pillow in c:\users\jmorales\appdata\roaming\python\python35\site-packages (from pyteaser) (5.2.0)
Requirement already satisfied: lxml in c:\users\jmorales\appdata\roaming\python\python35\site-packages (from pyteaser) (4.2.3)
Requirement already satisfied: cssselect in c:\users\jmorales\appdata\local\programs\python\python35\lib\site-packages (from pyteaser) (1.0.3)
Requirement already satisfied: jieba in c:\users\jmorales\appdata\roaming\python\python35\site-packages (from pyteaser) (0.39)
Collecting beautifulsoup (from pyteaser)
  Downloading https://files.pythonhosted.org/packages/1e/ee/295988deca1a5a7accd783d0dfe14524867e31abb05b6c0eeceee49c759d/BeautifulSoup-3.2.1.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\jmorales\AppData\Local\Temp\pip-install-69mmyqv0\beautifulsoup\setup.py", line 22
        print "Unit tests have failed!"
                                      ^
    SyntaxError: Missing parentheses in call to 'print'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\jmorales\AppData\Local\Temp\pip-install-69mmyqv0\beautifulsoup\

This is my setup:

Python version: 3.5
OS: Windows 10 Home
System Type: 64-bit Operating System, x64-based processor
Processor: AMD A10-8700P Radeon R6

@vvssttkk
Copy link

vvssttkk commented Oct 17, 2018

I have this error too, you fixed them?
I install this library to python 3

@SuryaChandrasekaran
Copy link

I think this is happening because the module tries to install beautifulsoup which is no longer supported by python. It should be beautifulsoup4 instead.

@jafetmorales
Copy link
Author

jafetmorales commented Nov 27, 2018

@vtrokhymenko I don't think I fixed since I was just automatically testing hundreds of github packages and automatically posting the detected issues. But indeed it probably has something to do with your version of python since it says you gotta use Python 2.7 in the readme. Maybe you can port it by using beautifulsoup4 instead. So those are probably your two choices.

@SuryaChandrasekaran
Copy link

SuryaChandrasekaran commented Nov 27, 2018

Also, I think the package is getting the BeautifulSoup-3.2.1 module while installing. Maybe the error is on that. I am not sure how can we install pyteaser with beautifulsoup4. We have bs4 dependency in the setup file.

Collecting beautifulsoup (from pyteaser)
  Downloading https://files.pythonhosted.org/packages/1e/ee/295988deca1a5a7accd783d0dfe14524867e31abb05b6c0eeceee49c759d/BeautifulSoup-3.2.1.tar.gz
    Complete output from command python setup.py egg_info:

@jafetmorales
Copy link
Author

jafetmorales commented Nov 27, 2018

@SuryaChandrasekaran I've never done that but this is what I would tray:

  1. Change that dependency to beautifulsoup4
  2. Run the installation (which also runs tests.py)
  3. Fix any tests that are not passed
  4. After that I would assume that it works and proceed to use it normally until it breaks

@ahlixinjie
Copy link

don't use the sudo pip install pyteaser, just type the pip install pyteaser, easy fix it

@jafetmorales
Copy link
Author

jafetmorales commented Dec 6, 2018

@vtrokhymenko @SuryaChandrasekaran can you verify @ahlixinjie 's fix?

@ahlixinjie
Copy link

@jafetmorales I just saw your error log, yours is different from mine.
Here is my suggestion:
Don't use the python3.x, your error log indicates the SyntaxError cause you're using python3! You should use the pyenv to mange different python versions(better use the pyenv-virtualenv to create virtual environments to manage the modules' version for each project). Switch to python2 then pip install pyteaser.

@ahlixinjie
Copy link

@jafetmorales This project is fantastic, cause it can get summarization from web directly, which saves pounds of time of parsing the web content to pure text. It's worth to try what i said above.

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

4 participants