Ticket #478 (closed task: fixed)
SearchResult: unpack requires a string argument of length 4
| Reported by: | quinox | Owned by: | quinox |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | nicotine | Version: | 1.2.12 |
| Keywords: | Cc: |
Description (last modified by quinox) (diff)
Sat 00:00 pynicotine.slskmessages.FileSearchResult unpack requires a string
argument of length 4 trying to unpack <type 'int'> at '''' at
53702883/154
<pynicotine.slskmessages.FileSearchResult instance at 0x28fb488> {'freeulslots': None, 'fileindex': None, 'geoip': None, 'list': None, 'pos': 53702883, 'token': 1287580511, 'user': 'studio271', 'fifoqueue': None, 'ulspeed': None, 'conn': <pynicotine.slskproto.PeerConnection instance at 0x28fc488>, 'inqueue': None}
Message contents: '\t\x00\x00\x00studio271_\xeb\xbeL\x01\x00\x00\x00\x01P\x00\x00\x00\\home\\drew\\MUSIC\\Kid 606\\Why I Love Life\\02kid 606-when i want something new.mp38I5\x00\x03\x00\x00\x00mp3\x03\x00\x00\x00\x00\x00\x00\x00\xa0\x00\x00\x00\x01\x00\x00\x00\xaf\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x01{\n\x00\x00\x00\x00\x00\x00'
unpack requires a string argument of length 4
Sat 00:00 Exception during parsing FileSearchResult: unpack requires a string
argument of length 4
Attachments
Change History
comment:2 Changed 4 years ago by Nick Voronin <elfy.nv@…>
Can't add new ticket, so I put it here, as it seems related.
Search does not work since rev. 1180 (win32, python 2.6.2).
Changing <Q modifiers back to <I in getObject() brings it back, but I don't understand why. The code which used getObject with types.LongType? was really strange before rev.1180 as well. And I can't see this particular branch of code running on when doing a search. A mystery. :) Please look into this.
comment:3 Changed 4 years ago by anonymous
About the tickets: I'll ask the guy running the site to look into it (I ran into it myself the other day)
About the problem: Discussion going on in #486
comment:4 Changed 4 years ago by fain182
i have this problem too:
14:20:07 pynicotine.slskmessages.FileSearchResult unpack requires a string argument of length 4 trying to unpack <type 'int'> at '''' at 53702977/1776 14:20:07 Exception during parsing FileSearchResult: unpack requires a string argument of length 4
comment:5 Changed 4 years ago by quinox
- Status changed from new to closed
- Resolution set to fixed
Most users pack file length in 8 bytes, some in 4 bytes. The code now first tries 8 bytes, if it fails it tries 4 bytes. Fixed with r1289.
comment:6 Changed 3 years ago by roger3000
Hi there, I come here for a very noob question. I was looking for a solution for this "pynicotine.slskmessages.FileSearchResult? unpack requires a string argument of length 4" problem I have using Nicotine+ 1.2.12 on Ubuntu 9.10. I saw there is a fix for this issue: r1289. But... what do I do with that? I download it, I guess, and then... unpack in /.nicotine? somewhere else?... Thanks for your help :) cheeres
comment:7 Changed 3 years ago by quinox
@roger3000:
You could hack r1289 into your current nicotine+ installation, but I'd suggest you download 1.2.15 and use that instead. Much easier.
On Ubunutu it's really easy:
- Download the archive labeled "Source"
- Extract to anywhere (F.E. your desktop)
- Double click on the file "nicotine.py"
You don't need to uninstall 1.2.12
