1

When running nosetests, using Flask-test I keep getting this error:

File "/app/env/local/lib/python2.7/site-packages/twill/browser.py", line 33, in __init__
    cpl.HTTPConnectionPool.old_http = cpl.HTTPConnectionPool.ConnectionCls
AttributeError: type object 'HTTPConnectionPool' has no attribute 'ConnectionCls'

Also when trying to run twill-sh I get the same error.

2
  • Can you post the code also instead of just the stacktrace? Commented May 13, 2014 at 17:35
  • The code thats making the error is from Twill, it's open source: pastebin.com/iJLZkj5Y Commented May 14, 2014 at 16:20

1 Answer 1

1

The problem is that the version of twill that you are currently using requires a more up-to-date version of the requests library. You should either upgrade requests, via

pip install requests --upgrade

Or downgrade twill, via:

pip uninstall twill
pip install -e git+https://github.com/ctb/twill/@79fa302814715a51e6b117eeee0defd2942af3b6#egg=twill
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.