hartleybrody/public-amazon-crawler

Is it not support py3 ? SyntaxError: Missing parentheses in call to 'print'

Closed this issue · 1 comments

suoba commented

-- Win7 64bit / Python 3.4 32bit --

D:\study\mysite\public-amazon-crawler
λ virtualenv amazon
Using base prefix 'c:\python34'
New python executable in D:\study\mysite\public-amazon-crawler\amazon\Scripts\python.exe
Installing setuptools, pip, wheel...done.

D:\study\mysite\public-amazon-crawler
λ amazon\Scripts\activate

(amazon) D:\study\mysite\public-amazon-crawler
λ pip install -r requirements.txt
Collecting BeautifulSoup==3.2.1 (from -r requirements.txt (line 1))
Downloading BeautifulSoup-3.2.1.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\ADMINI~1\AppData\Local\Temp\pip-build-c3q7qqty\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\ADMINI~1\AppData\Local\Temp\pip-build-c3q7qqty\BeautifulSoup\

I believe the version of the BeautifulSoup library I used doesn't support python 3. And you're correct, my code was written for python 2.7. Not sure if there's a specific bug or feature request here. Feel free to fork it and get it working on python 3+