I'm working on a tutorial for creating a simple, rate limit aware bot for twitter, using tweepy. The code works fine locally, but on repl.it "import tweepy" throws an exception.

I'm using the Python3 language selection. It appears to work in Python 2.

I found another sample program in someone else's repl... same issue.

Here is the exception:

Python 3.6.1 (default, Dec 2015, 13:05:11)

[GCC 4.8.2] on linux

import tweepy

Traceback (most recent call last):

File "python", line 1, in <module>

File "/goval_modules/python3.6/urllib2.py", line 220

raise AttributeError, attr


SyntaxError: invalid syntax