Python with Turbogears2 : ValueError: invalid literal for int() with base 10: 'DONE'

208 Views Asked by At

I'm installing a project. I run theses commands but the 4th always give me this error...

  • python setup.py develop

  • python setup.py bdist_egg (create .egg)

  • paster setup-app development.ini (create devdata.db)

  • paster shell development.ini

    (tg2) root@istc-test:/var/www/tg2/tg2# paster shell development.ini
    Traceback (most recent call last):
      File "/var/www/tg2/bin/paster", line 11, in <module>
        sys.exit(run())
      File "/var/www/tg2/local/lib/python2.7/site-packages/paste/script/command.py", line 102, in run
        invoke(command, command_name, options, args[1:])
      File "/var/www/tg2/local/lib/python2.7/site-packages/paste/script/command.py", line 141, in invoke
        exit_code = runner.run(args)
      File "/var/www/tg2/local/lib/python2.7/site-packages/paste/script/command.py", line 236, in run
        result = self.command()
      File "/var/www/tg2/local/lib/python2.7/site-packages/pylons/commands.py", line 499, in command
        request_id = int(tresponse.body)
    

    ValueError: invalid literal for int() with base 10: 'DONE'

I really dont know what to do... when I import paste.script.command it works

Thank you for your help

1

There are 1 best solutions below

0
amol On

If you are installing a TurboGears project prior to 2.3 the dependency management was mostly demanded to the project itself and you were required to use a private index to have reproducible installs of the project.

Make sure you install your environment with $ easy_install -i http://www.turbogears.org/2.2/downloads/current/index tg.devtools and only after you run python setup.py develop in your project. Otherwise you will end up with an environment that has totally incompatible packages.

NOTE: Replace 2.2 with 2.1 if you need a prior TG version for your project to work