Modify

Opened 5 years ago

Closed 5 years ago

Last modified 8 months ago

#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)

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 (0)

Change History (9)

comment:1 Changed 5 years ago by quinox

  • Description modified (diff)

comment:2 Changed 5 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 5 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 5 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 5 years ago by quinox

  • Resolution set to fixed
  • Status changed from new to closed

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 4 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 4 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:

  1. Download the archive labeled "Source"
  2. Extract to anywhere (F.E. your desktop)
  3. Double click on the file "nicotine.py"

You don't need to uninstall 1.2.12

comment:8 Changed 4 years ago by roger3000

thanks quinox for your help :) :)

comment:9 Changed 8 months ago by anonymous

jkggjkgk

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.