Posts: 3
Joined: Wed Apr 12, 2017 9:41 am

Python 3 and Twython

Wed Apr 12, 2017 9:46 am


I am trying to create some fun resources for a few Raspberry Pi workshops that I want to run next half term but keep hitting brick walls. My current problem is that I would like to use Tywthon. I have installed it using pip-3.2 and it is definitely there.
When I try to run from twython import Tywthon I am told that there is a syntax error on line 169 of pyopenssl.py. The line is:
for prefix in [u'*.', u'.']:

Please can anyone help?


User avatar
Posts: 33805
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: Python 3 and Twython

Wed Apr 12, 2017 8:19 pm

Does it work with python2?
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

2012-18: 1B*5, 2B*2, B+, A+, Z, ZW, 3Bs*3, 3B+

Any DMs sent on Twitter will be answered next month.

Posts: 35
Joined: Tue Jul 28, 2015 10:21 pm

Re: Python 3 and Twython

Wed Apr 26, 2017 6:58 am

Please can you print all the lines of the error message ?.

Return to “Staffroom, classroom and projects”

Who is online

Users browsing this forum: No registered users and 1 guest