adding poll to djangocms, using tutorial page does not work (for me at least)

184 views
Skip to first unread message

Bojan

unread,
Jul 19, 2014, 12:38:44 PM7/19/14
to djang...@googlegroups.com
adding poll to djangocms, using tutorial page does not work (for me at least)

result: Cannot find command 'git'
Storing debug log for failure in C:\Users\b\pip\pip.log


command: pip install django-polls

result: Successfully installed django-polls
Cleaning up...


command: python manage.py migrate polls

result:    self._run_migration(migration)
  File "D:\apps\djangocms3\install\lib\site-packages\south\migration\migrators.py", line 164, in _run_migration
    for name, db in south.db.dbs.iteritems():
AttributeError: 'dict' object has no attribute 'iteritems'


Any suggestions?

I am using djangocms version 3.


Thanks.


btw, someone should add instructions how to install virtualenv to tutorial.

Bojan

unread,
Jul 22, 2014, 4:25:00 PM7/22/14
to djang...@googlegroups.com
possible solution:
http://stackoverflow.com/questions/24529618/why-does-django-south-1-0-use-iteritems

"I've fixed it by replacing two occurrences of iteritems() by items()."

thor.a

unread,
Jul 24, 2014, 9:40:30 AM7/24/14
to djang...@googlegroups.com
According to https://github.com/divio/django-cms-tutorial/pull/39 it's necessary to use: 


(instead of git+ssh)


Thorsten

Sebastian Weiß

unread,
Aug 13, 2014, 6:48:13 AM8/13/14
to djang...@googlegroups.com
Or if you want to install pip on Windows and with Python 2.7 (reccommed as python 3 ist not yet compatible with the south system django is using)

River Martinez

unread,
Dec 22, 2014, 4:30:04 PM12/22/14
to djang...@googlegroups.com
I have the following error:

/home/river/workdirectory/django-cms/lib/python2.7/site-packages/pip/pep425tags.py:62: RuntimeWarning: invalid Python installation: unable to open /home/river/workdirectory/django-cms/local/include/python2.7/pyconfig.h (No such file or directory)
  warnings.warn("{0}".format(e), RuntimeWarning)
Obtaining django-polls from git+http://g...@github.com/divio/django-polls.git#egg=django-polls
  Updating /home/river/workdirectory/django-cms/src/django-polls clone
WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-6VYiXN/pkcs11: No such file or directory
  Running setup.py (path:/home/river/workdirectory/django-cms/src/django-polls/setup.py) egg_info for package django-polls
    
  Installing extra requirements: 'egg'
Installing collected packages: django-polls
  Running setup.py develop for django-polls
    error: None
    Complete output from command /home/river/workdirectory/django-cms/bin/python -c "import setuptools, tokenize; __file__='/home/river/workdirectory/django-cms/src/django-polls/setup.py'; exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" develop --no-deps:
    running develop

error: None

----------------------------------------
Cleaning up...
Command /home/river/workdirectory/django-cms/bin/python -c "import setuptools, tokenize; __file__='/home/river/workdirectory/django-cms/src/django-polls/setup.py'; exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" develop --no-deps failed with error code 1 in /home/river/workdirectory/django-cms/src/django-polls
Storing debug log for failure in /home/river/.pip/pip.log


Have some idea of this error?

Regards!
Reply all
Reply to author
Forward
0 new messages