meatballs / DjAxelrod

A repository to reproduce Axelrod's iterated prisoner's dilemma as a Django based web application.
MIT License
5 stars 4 forks source link

Django debug toolbar not installing during provisioning #17

Closed nealedj closed 9 years ago

nealedj commented 9 years ago
  File "/usr/local/lib/python2.7/dist-packages/django/__init__.py", line 18, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/usr/local/lib/python2.7/dist-packages/django/apps/registry.py", line 85, in populate
    app_config = AppConfig.create(entry)
  File "/usr/local/lib/python2.7/dist-packages/django/apps/config.py", line 86, in create
    module = import_module(entry)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
ImportError: No module named debug_toolbar
meatballs commented 9 years ago

That was fixed yesterday, I believe. You may just need to re-provision your vm Commit: 618df4627bd72cc76f644454832ca642e2cb0a06

meatballs commented 9 years ago

I take that back! It's not working on a clean vm either.

mmcardle commented 9 years ago

there is a dev.txt with the debug toolbar requirement in it change the deploy to

pip install -r /vagrant/dev.txt
meatballs commented 9 years ago

Something in requirements.txt is breaking pip completely

meatballs commented 9 years ago

Looks like it's something to do with requests: https://bugs.launchpad.net/ubuntu/+source/python-pip/+bug/1306991

meatballs commented 9 years ago

http://stackoverflow.com/questions/27341064/how-do-i-fix-importerror-cannot-import-name-incompleteread

meatballs commented 9 years ago

Fixed by using eay_install to install pip rather than apt-get. Looks like the ubuntu package for pip is out of date