Skip to content

Unpack error #97

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
GoogleCodeExporter opened this issue May 18, 2015 · 0 comments
Open

Unpack error #97

GoogleCodeExporter opened this issue May 18, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

When I try to run the rtmpclient.py file using this command:

python rtmpclient.py rtmp://dmgradio.cdn.on.net/20036/ newfile.flv -d

I get this error:

struct.error: unpack requires a string argument of length 9

I'm using Ubuntu 12.04 by the way.

Here is the debug output:

Traceback (most recent call last):
  File "rtmpclient.py", line 405, in <module>
    multitask.run()
  File "/home/max/Downloads/rtmplite/multitask.py", line 1202, in run
    get_default_task_manager().run()
  File "/home/max/Downloads/rtmplite/multitask.py", line 897, in run
    self.run_next()
  File "/home/max/Downloads/rtmplite/multitask.py", line 962, in run_next
    output = task.throw(*exc_info)
  File "rtmpclient.py", line 309, in copy
    s  = yield open(src, 'r')
  File "/home/max/Downloads/rtmplite/multitask.py", line 962, in run_next
    output = task.throw(*exc_info)
  File "/home/max/Downloads/rtmplite/multitask.py", line 185, in throw
    return self.task.throw(type, value, traceback)
  File "rtmpclient.py", line 304, in open
    r = yield types[type + '-' + mode]().open(url=url)
  File "/home/max/Downloads/rtmplite/multitask.py", line 964, in run_next
    output = task.send(input)
  File "/home/max/Downloads/rtmplite/multitask.py", line 182, in send
    return self.task.send(value)
  File "rtmpclient.py", line 259, in open
    self.fp = FLV().open(u.path)
  File "/home/max/Downloads/rtmplite/rtmp.py", line 671, in open
    magic, version, flags, offset = struct.unpack('!3sBBI', self.fp.read(9))
struct.error: unpack requires a string argument of length 9

Original issue reported on code.google.com by cluckyfe...@gmail.com on 28 Sep 2013 at 5:00

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant