Skip to content
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

The save (-s, --savedir) option does not work #2

Closed
shefft opened this issue Oct 11, 2017 · 2 comments
Closed

The save (-s, --savedir) option does not work #2

shefft opened this issue Oct 11, 2017 · 2 comments

Comments

@shefft
Copy link

shefft commented Oct 11, 2017

python ubidump.py -s rfs file.ubi
==> file.ubi <==
1 named volumes found, 2 physical volumes, blocksize=0x20000
== volume rootfs ==
ERROR function takes exactly 1 argument (3 given)

Here's the traceback with verbose mode on:
Traceback (most recent call last):
File "ubidump.py", line 939, in main
processfile(fn, args)
File "ubidump.py", line 899, in processfile
fs.savefile(inum, fh, os.path.join(path))
File "ubidump.py", line 804, in savefile
dat = c.getnode()
File "ubidump.py", line 727, in getnode
return self.fs.readnode(page.branches[ix].lnum, page.branches[ix].offs)
File "ubidump.py", line 646, in readnode
node.parse(nodedata)
File "ubidump.py", line 334, in parse
self.data = decompress(data[self.hdrsize:], self.size, self.compr_type)
File "ubidump.py", line 286, in decompress
return unlzo(data, buflen)
File "ubidump.py", line 278, in unlzo
return lzo.decompress(data, False, buflen)
TypeError: function takes exactly 1 argument (3 given)

@nlitsme
Copy link
Owner

nlitsme commented Oct 12, 2017

See #1 - you are using the wrong version of python-lzo.

Let me know if that solves your problem.

@nlitsme
Copy link
Owner

nlitsme commented Oct 12, 2017

I have added code to make ubidump complain explicitly when the wrong lzo module is installed.

@nlitsme nlitsme closed this as completed Oct 12, 2017
Repository owner deleted a comment Nov 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants