Code Monkey home page Code Monkey logo

Comments (10)

aaronsims-netapp avatar aaronsims-netapp commented on June 6, 2024 1

I have hit the same issue (both the invalid type '\x19' and the UnsupportedCompressionMethodError issue.)

I don't have control over the process that's compressing these files. I'm hoping that someone has found a workaround for this.

from pylzma.

mikenye avatar mikenye commented on June 6, 2024

FYI: I tried @Marginal's code (https://github.com/Marginal/pylzma) and still have the issue when opening 7z files created by NetApp's ONTAP operating system (assuming @aaronsims-netapp has the same issue).

  File "/usr/local/lib/python2.7/dist-packages/pylzma-0.4.8_14_gaea5dev-py2.7-linux-x86_64.egg/py7zlib.py", line 612, in read
    raise UnsupportedCompressionMethodError(repr(coder['method']))
py7zlib.UnsupportedCompressionMethodError: '!'

EDIT: the invalid type issue seems to be gone, its just the UnsupportedCompressionMethodError remaining.

from pylzma.

mikenye avatar mikenye commented on June 6, 2024

Further info:

libmagic identifies the 7z file I'm having a problem with as:
body.7z: 7-zip archive data, version 0.4

version 0.3 and prior have no issue.

from pylzma.

mikenye avatar mikenye commented on June 6, 2024

In the ArchiveFile.read(), in the for loop for coder in self._folder.coders:

With both a version 0.3 7z file and a version 0.4 7z file, on first call of the read() function, the coder pointer is:
{'numinstreams': 1, 'numoutstreams': 1, 'method': '\\x03\\x01\\x01', 'properties': ']\\x00`\\x00\\x00'}

On second call of the read() function:

  • version 0.3 is: {'numinstreams': 1, 'numoutstreams': 1, 'method': '\\x03\\x01\\x01', 'properties': ']\\x00`\\x00\\x00'}

  • version 0.4 is: "{'numinstreams': 1, 'numoutstreams': 1, 'method': '!', 'properties': '\\x04'}

This is what's throwing the error.

from pylzma.

mikenye avatar mikenye commented on June 6, 2024

Further information.

The file in question extracts without issue using 7-zip and p7zip version 9.20

from pylzma.

fancycode avatar fancycode commented on June 6, 2024

Could you please provide a small example file that can be used to reproduce the error?

from pylzma.

mikenye avatar mikenye commented on June 6, 2024

Yes, however it might contain confidential information so am I able to send outside of this thread?

from pylzma.

fancycode avatar fancycode commented on June 6, 2024

Sure, you should see my email address in my profile. However a small public file would be great, so I could add it as testcase if/when the problem is solved.

from pylzma.

mikenye avatar mikenye commented on June 6, 2024

I've sent you the confidential one. I'll try to get you one that can be public. Stay tuned.

from pylzma.

mikenye avatar mikenye commented on June 6, 2024

This file has the same issue (was created with Keka for Mac version 1.1.1 (2733).

test-issue-43.7z.zip

Sorry it had to be zipped as GitHub doesn't allow uploading of 7z files.

from pylzma.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.