WebFaction
Community site: login faq

I am having an issue with logins on my site. I am getting the following error:

ValueError at /account/login/

too many values to unpack

Request Method:     POST
Request URL:    http://www.icollct.com/account/login/
Django Version:     1.3.1
Exception Type:     ValueError
Exception Value:

too many values to unpack

Exception Location:     /home/greg0274/webapps/project/mysite-env/lib/python2.7/site-packages/django/contrib/auth/models.py in check_password, line 42
Python Executable:  /home/greg0274/webapps/project/mysite-env/bin/python
Python Version:     2.7.3
Python Path:

['/home/greg0274/webapps/project/catalog/apps',
 '/home/greg0274/webapps/project',
 '/home/greg0274/webapps/project/catalog',
 '/home/greg0274/webapps/project/mysite-env/lib/python2.7/site-packages/pinax',
 '/home/greg0274/webapps/project/mysite-env/lib/python2.7/site-packages/pinax/apps',
 '/home/greg0274/webapps/project/mysite-env/lib/python2.7/site-packages/ajax_validation',
 **'/home/greg0274/lib/python2.7',**
 '/home/greg0274/webapps/project/mysite-env/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg',
 '/home/greg0274/webapps/project/mysite-env/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg',
 '/home/greg0274/webapps/project/mysite-env/lib/python2.7/site-packages/django_microblogging-0.1.2-py2.7.egg',
 '/home/greg0274/webapps/project/mysite-env/lib/python2.7/site-packages/django_uni_form-0.6.0-py2.7.egg',
 '/home/greg0274/webapps/project/mysite-env/lib/python27.zip',
 '/home/greg0274/webapps/project/mysite-env/lib/python2.7',
 '/home/greg0274/webapps/project/mysite-env/lib/python2.7/plat-linux2',
 '/home/greg0274/webapps/project/mysite-env/lib/python2.7/lib-tk',
 '/home/greg0274/webapps/project/mysite-env/lib/python2.7/lib-old',
 '/home/greg0274/webapps/project/mysite-env/lib/python2.7/lib-dynload',
 **'/usr/local/lib/python2.7',
 '/usr/local/lib/python2.7/plat-linux2',
 '/usr/local/lib/python2.7/lib-tk',**
 '/home/greg0274/webapps/project/mysite-env/lib/python2.7/site-packages',
 '/home/greg0274/webapps/project/mysite-env/lib/python2.7/site-packages/PIL']

Server time:    Sat, 2 Feb 2013 00:08:22 -0500

From my investigation it appears this is due to a difference between encryption of the password in Django 1.4 and 1.3. I am running the site in a virtual environment and created a new db expecting this to resolve the issue, but it has not. It appears that although I am using a virtual-env with Django 1.3 that when I create the db it is using Django 1.4 outside the environment. I think I have an error in my pythonpath, but cannot located it, you see 4 lines in the above error were directories outside the virt-env are reference.

Any thoughts?

Thanks, Greg

asked 02 Feb '13, 08:07

greg0274
113
accept rate: 0%

edited 12 Mar '16, 01:12

seanf
12.2k41836


Django 1.4 introduced a new password storage system (see the release notes and how to select which password hasher to use), so if you've created your django app on one version and your virtual enviroment runs on an other, a mix up might be possible that could cause this.

You should check the full traceback and see where the unpacking happens. That might give you a clue.

Feel free to update your question with it, or open a ticket, for us to give a more thorough look.

permanent link

answered 02 Feb '13, 10:33

iliasr ♦♦
2.1k14
accept rate: 35%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×909
×15
×13

question asked: 02 Feb '13, 08:07

question was seen: 4,131 times

last updated: 12 Mar '16, 01:12

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM