Comments (4)
Are you running it on Python 2? On your command line, type:
python --version
On Tue, Jun 9, 2015 at 4:24 PM, john023 [email protected] wrote:
Hi, whenever I try to run the bot I get the following error:
Traceback (most recent call last):
File "my_bot.py", line 1, in
from TwitterFollowBot import TwitterBot
File "/home/TwitterFollowBot-master/TwitterFollowBot/init.py", line 99
"before continuing.", file=sys.stderr)
^SyntaxError: invalid syntaxAny idea why this is happening?
—
Reply to this email directly or view it on GitHub
#42.
Randal S. Olson, Ph.D.
E-mail: [email protected] | Twitter: @randal_olson
https://twitter.com/randal_olson
http://www.randalolson.com
from twitterfollowbot.
I am running Python 2.7.9
from twitterfollowbot.
Huh. I think the Python 2 print statements don't take that file
parameter to the print
statements: https://github.com/rhiever/TwitterFollowBot/blob/master/TwitterFollowBot/__init__.py#L99
You can either remove those file
parameters from the print
statements to fix it, or upgrade to Python 3. I recommend the latter.
from twitterfollowbot.
Another option is to run v1.0 of the bot, which should run fine on Python 2: https://github.com/rhiever/TwitterFollowBot/releases/tag/v1.0
but doesn't have the latest features.
from twitterfollowbot.
Related Issues (20)
- Need help with installation please HOT 1
- auto_unfollow_nonfollowers() crashes for certain suspended user HOT 4
- Why my already-followed.txt is empty HOT 1
- twitterfollowbot 2.0.2 requires twitter==1.17.0, which is not installed. HOT 1
- Erreur de Syntaxe detectées dans les clés API
- probleme lors del'execution du programme python
- How to make the bot auto retweet the latest tweet? HOT 1
- Unfollow only X people that don't follow back?
- FYI - API wrapper methods out-dated; Project non-functional HOT 2
- Hello help me this problem not starting tweet bot
- dear author
- Automatically add users tweeting about something to one of your list
- Help with setting up a Twitter bot HOT 1
- a
- Can't run the bot HOT 2
- i am having this problem with irclib
- TwitterFollowBot
- T
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twitterfollowbot.