1

I run pip install builtwith and when I imported this module, I faced this issue:

>>> import builtwith
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/begueradj/flaskDev/lib/python3.5/site-packages/builtwith/__init__.py", line 43
    except Exception, e:
                    ^
SyntaxError: invalid syntax

Which is the same issue described here where the answers suggest this is not compatible with Python3.

But I am asking again because I read from here that support for Python3 is added, so I do not understand why I am facing this issue ... any hints?

Billal Begueradj
  • 20,717
  • 43
  • 112
  • 130
  • 1
    The package at PyPI was last updated in 2015. https://pypi.python.org/pypi/builtwith/1.3.2 – vaultah Nov 11 '17 at 18:47
  • 2
    Glad to know someone is using this - have pushed a new version: https://pypi.python.org/pypi/builtwith/1.3.3 – hoju Nov 13 '17 at 21:33
  • I found your work in a book (about web scrapping), so you are more popular than you may think :) Good job @hoju – Billal Begueradj Nov 14 '17 at 05:46

1 Answers1

4

As of 2017-11-13, the release on PyPI is now Python 3 compatible, and correctly includes the six dependency in setup.py. Old answer below.


The release on PyPI is too old; it dates from 2015:

Uploaded on
2015-11-24

This release is not Python 3 compatible.

The source repository indeed has merged in a pull request updating to support Python 3, so you'll have to tell pip to install that version:

pip install hg+https://bitbucket.org/richardpenman/builtwith#egg=builtwith

The change added a dependency on the six library but did not add this to the setup.py metadata; install it manually.

Martijn Pieters
  • 1,048,767
  • 296
  • 4,058
  • 3,343