question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exception Value: need more than 1 value to unpack

See original GitHub issue

Hello, i have a some stange issue:

Django Version: 1.3 Exception Type: ValueError Exception Value: need more than 1 value to unpack Exception Location: /home/combatcode/www/somehere/smart_selects/db_fields.py in init, line 16 Python Executable: /usr/local/python2.6/bin/python Python Version: 2.6.1

Model:

class Somemodel(models.Model):
    kategoriagl = models.ForeignKey('self')
    kategorianext = ChainedForeignKey(
        'self', 
        chained_field="kategoriagl",
        chained_model_field="kategoriagl", 
        show_all=False, 
        auto_choose=True
    )

app is installed, and imported to models. Can u tell me what is wrong?

Edit (by blag): Updated to use GFM.

Issue Analytics

  • State:closed
  • Created 12 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
blagcommented, Oct 18, 2016

I’d rather just fix the issue than update the documentation. I’ll have time to do that later this week.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python Error: "ValueError: need more than 1 value to unpack"
youre getting ''ValueError: need more than 1 value to unpack'', because you only gave one value, the script (which is ex14.py in this...
Read more >
ValueError: need more than 1 value to unpack? - Blender Artists
During a multiple value assignment, the ValueError: need more than 2 values to unpack occurs when either you have fewer objects to assign...
Read more >
need more than 1 value to unpack' in Python - Quora
It is an exception that can be raised by any Python code, which signifies that the code received a value which is unexpected....
Read more >
ValueError: need more than 1 value to unpack #703 - GitHub
During a multiple value assignment, the ValueError: need more than 2 values to unpack occurs when either you have fewer objects to assign...
Read more >
Python Error: “ValueError: need more than 1 value to unpack”
Reason of getting THIS value error is probably you didn't provide an argument on the command line . In that case, sys.argv only...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found