Comments (6)
Please attach a sample archive.
from pyeasyarchive.
Please add the constant and test. I'd appreciate you adding a unit-test, too, but, if not, I'll add one if you can attach a sample archive and/or detail how to produce a V5 archive.
https://github.com/libarchive/libarchive/blob/master/libarchive/archive.h#L343
from pyeasyarchive.
I'm afraid I'm away from my main computer right now, so the best I can do is attach a few samples for your reference.
I'll try to do more once I'm back.
GitHub doesn't support RAR attachments, so here's two links:
1
2
from pyeasyarchive.
The issue is your library. If you want to support a newer format than you need to have a newer version of libarchive.
Supported was added in libarchive/libarchive@7b3068c and it was included in https://github.com/libarchive/libarchive/releases/tag/v3.4.0 . Since I don't have an appropriate version of the library (3.1.2) nor have I been provided a procedure for making the archives nor has there been any previous request for this, I'm just closing this for now. Let me know if/when you upgrade your library and want to move forward.
from pyeasyarchive.
Duh, thanks. v3.4.0 is the version distributed in libarchive-dev
as of Ubuntu 19.10.
It looks like the only way to actually create a RAR5 file is through WinRAR, as the format is somewhat proprietary, hence only read support existing in libarchive.
How do you handle the version requirement in this library? I have no problem adding the constant and unit test, I just want to make sure I understand how to make it fail properly on earlier versions (<3.4.0).
from pyeasyarchive.
It will already fail when it doesn't recognize the format value.
The purpose of the library is simply to bridge to a third-party library and marshal the arguments and results. We can streamline some complex patterns as necessary but I don't want to impose any extra interpretations or soft restrictions when the library is already going to fail if it needs to. We can always funnel well-defined error messages into specific exceptions if that looks to be helpful for common error conditions that might be handled a certain way by the caller, but I don't interpret this as being such a case.
from pyeasyarchive.
Related Issues (20)
- __str__ returns bytes when casting entry to string HOT 3
- import libarchive.public error AttributeError: dlsym(0x7fe20861a170, archive_read_open_filename_w): symbol not found HOT 3
- test_read_symlinks fails HOT 4
- UnicodeDecodeError: 'ascii' codec can't decode byte 0xb0 in position 2: ordinal not in range(128) HOT 7
- Cannot import libarchive into Python 3.7.3 on Windows 10 version 1809. Support on Windows? HOT 1
- Finish implementing write-options and read-options into adapters
- custom read functions
- Is it possible to update .7z archive in-place? HOT 1
- sourcepath 50414b9
- Not possible to get information about archive? (solid, ...) HOT 2
- Using unittest instead of nose doesn't work HOT 2
- cannot install libarchive on windows HOT 1
- compression compress big directory to multivolume
- Publish a pypi version (or set tag) whose license is changed to MIT
- installation fails on fresh 21.10 w/ "liblibarchive.so not found", both pip-repo as well as git+https from here HOT 5
- UnicodeDecodeError on files in archive if filename contains non unicode characters (ex: é à etc.)
- UnicodeDecodeError on files in archive if filename contains non-ASCII characters (e.g. CJK characters)
- setup.py : circular import
- ARCHIVE_FORMAT_CPIO_SVR4_CRC not working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyeasyarchive.