python -m snappy -d raises TypeError: cannot unpack non-iterable function object
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
Research direction
Start in snappy/__main__.py at the unpacking call on line 79, then compare it with the return behavior of get_decompress_function() in snappy_formats.py. Run the reported python3 -m snappy -d real.snappy reproduction; done when decompression through the CLI succeeds without the TypeError while compression and the library API remain unaffected.
Written by the indexing model from the issue text.
Description
python -m snappy -d file.snappy fails with TypeError: cannot unpack non-iterable function object in 0.7.3.
Steps (Ubuntu, Python 3.14, python-snappy 0.7.3 from pip):
python3 -m snappy -c plain.txt real.snappy
python3 -m snappy -d real.snappy
Result of the second command:
TypeError: cannot unpack non-iterable function object
Cause: in snappy/__main__.py line 79, method, read_chunk = formats.get_decompress_function(args.target_format, args.infile) unpacks two values, but get_decompress_function() in snappy_formats.py returns a single function (return decompress_func / return _DECOMPRESS_METHODS[specified_format]). Compression works. Decompressing with the library API directly (snappy.stream_decompress(src, dst)) works for the same file.
- Dominant language
- Python
- Stars
- 490
- Forks
- 104
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from intake/python-snappy
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
intake/python-snappy#152 · 3 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
intake/python-snappy#151 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
intake/python-snappy#150 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
intake/python-snappy#147 · 3 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
intake/python-snappy#140 · 1 comment · 1 reaction ·
All issues in intake/python-snappy
Similar issues
-
defect from-review v0.9.2
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
khuisman/mcp-gee-sweet#926 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 Under an hour Newbie friendliness 84/100
EtanHey/brainlayer#1164 ·
Maintainers usually reply within 1 day
-
bug security
Difficulty 1/5 Under an hour Newbie friendliness 88/100
yunaremaia/vibeguard#141 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
PrismorSec/prismor#599 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day