yeti / manticore-django

Utility functionality for a Manticore Django project
MIT License
5 stars 4 forks source link

vagrant.clone django settings module not found #1

Closed gregorynicholas closed 10 years ago

gregorynicholas commented 10 years ago

i'll providing some of my bash history to help context.

going through the setup docs for an existing project (http://wiki.yetibuilt.com/Development/Vagrant/#existing-project), here is what my local python env looks like:

$ python --version
Python 2.7.6

$ which python
/usr/local/bin/python

$ vagrant --version
Vagrant 1.4.3

$ VBoxManage --version
4.3.6r91406

the clone script fails at the django setup on the vagrant box, here's the output for re-creating the issue after ssh'ng onto the box:

$ vagrant ssh
Linux squeeze64 2.6.32-5-amd64 #1 SMP Sun Sep 23 10:07:46 UTC 2012 x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Feb 13 22:08:06 2014 from 10.0.2.2
vagrant@squeeze64:~$ . /home/vagrant/playground/bin/activate
(playground)vagrant@squeeze64:~$ cd /vagrant/playground/
(playground)vagrant@squeeze64:/vagrant/playground$ ls
decorators.py  displayclient       fabric_settings.pyc  kiosk              local_settings.pyc  manifest.json  settings.py   urls.py
deploy         fabric_settings.py  __init__.py          local_settings.py  manage.py           requirements   settings.pyc  wsgi.py
(playground)vagrant@squeeze64:/vagrant/playground$ pip freeze
Django==1.5.5
Mezzanine==1.4.16
Pillow==2.2.2
South==0.8.4
Twisted==13.2.0
autobahn==0.7.4
bleach==1.2.2
django-appconf==0.6
django-compressor==1.3
filebrowser-safe==0.2.31
grappelli-safe==0.2.23
gunicorn==18.0
html5lib==0.95
oauthlib==0.6.0
psycopg2==2.5.1
python-memcached==1.53
pytz==2013.8
requests==1.2.3
requests-oauthlib==0.3.3
setproctitle==1.1.8
six==1.4.1
ujson==1.33
ws4py==0.3.2
wsaccel==0.6.2
wsgiref==0.1.2
zope.interface==4.0.5
(playground)vagrant@squeeze64:/vagrant/playground$ which python
/home/vagrant/playground/bin/python
(playground)vagrant@squeeze64:/vagrant/playground$ python --version
Python 2.6.6
(playground)vagrant@squeeze64:/vagrant/playground$ python man
manage.py      manifest.json  
(playground)vagrant@squeeze64:/vagrant/playground$ python manage.py createdb --noinput --nodata
Traceback (most recent call last):
  File "manage.py", line 28, in <module>
    execute_from_command_line(sys.argv)
  File "/home/vagrant/playground/lib/python2.6/site-packages/django/core/management/__init__.py", line 453, in execute_from_command_line
    utility.execute()
  File "/home/vagrant/playground/lib/python2.6/site-packages/django/core/management/__init__.py", line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/vagrant/playground/lib/python2.6/site-packages/django/core/management/__init__.py", line 263, in fetch_command
    app_name = get_commands()[subcommand]
  File "/home/vagrant/playground/lib/python2.6/site-packages/django/core/management/__init__.py", line 107, in get_commands
    from django.conf import settings
ImportError: cannot import name settings
(playground)vagrant@squeeze64:/vagrant/playground$ 
gregorynicholas commented 10 years ago

something in my dotfiles was conflicting, i'll try to track down the specific item to specify the prob for future use.

kyle seemed to be running into the same set of issues i encountered, so i think this might be a worthy endeavour to help increase compatibility with existing dev environments.