Giter Site home page Giter Site logo

Bot not running about twitterfollowbot HOT 4 CLOSED

rhiever avatar rhiever commented on September 8, 2024
Bot not running

from twitterfollowbot.

Comments (4)

rhiever avatar rhiever commented on September 8, 2024

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 syntax

Any 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.

JamieLoughnane avatar JamieLoughnane commented on September 8, 2024

I am running Python 2.7.9

from twitterfollowbot.

rhiever avatar rhiever commented on September 8, 2024

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.

rhiever avatar rhiever commented on September 8, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.