mitsuhiko / unp Goto Github PK
View Code? Open in Web Editor NEWUnpacks things.
License: Other
Unpacks things.
License: Other
extracting a zip format file resulting in error:
Unpacking "/home/shiva/Desktop/abc.zip" with unzip
Traceback (most recent call last):
File "/usr/local/bin/unp", line 9, in
load_entry_point('unp==0.2', 'console_scripts', 'unp')()
File "/usr/local/lib/python3.4/dist-packages/click-3.3-py3.4.egg/click/core.py", line 610, in call
return self.main(_args, *_kwargs)
File "/usr/local/lib/python3.4/dist-packages/click-3.3-py3.4.egg/click/core.py", line 590, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.4/dist-packages/click-3.3-py3.4.egg/click/core.py", line 782, in invoke
return ctx.invoke(self.callback, *_ctx.params)
File "/usr/local/lib/python3.4/dist-packages/click-3.3-py3.4.egg/click/core.py", line 416, in invoke
return callback(_args, **kwargs)
File "/usr/local/lib/python3.4/dist-packages/unp-0.2-py3.4.egg/unp.py", line 565, in cli
File "/usr/local/lib/python3.4/dist-packages/unp-0.2-py3.4.egg/unp.py", line 210, in unpack
File "/usr/local/lib/python3.4/dist-packages/unp-0.2-py3.4.egg/unp.py", line 243, in real_unpack
File "/usr/local/lib/python3.4/dist-packages/unp-0.2-py3.4.egg/unp.py", line 71, in process
TypeError: can't use a string pattern on a bytes-like object
Hello.
Trying to use unp on my old Nokia n810.
unp from debian stretch repository.
`[3|user@/]perl -v
This is perl, v5.8.3 built for arm-linux-gnueabi-thread-multi
Copyright 1987-2003, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using man perl' or
perldoc perl'. If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.
[3|user@/]unp
Can't locate File/Basename.pm in @inc (@inc contains: /etc/perl /usr/local/lib/perl/5.8.3 /usr/local/share/perl/5.8.3 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /usr/bin/unp line 28.
BEGIN failed--compilation aborted at /usr/bin/unp line 28.
`
How to fix? Thanks.
Is there a flag to tell unp to overwrite. Example, if we are uncomrpessing abc.zip(unp abc) it will result in a folder abc under current working directory. If we execute same command again, it will uncompress to abc1 or something like that, without overwriting abc. Is there a flag to force overwrite ?
I am reading your codes and i an confused about the modules click
I use pip search click and import click
, but the python tell me
ModuleNotFoundError: No module named 'click'
@mitsuhiko is this tool still maintained?
It is a great usability benefit for command-line users, so it would be sad to see it die slowly. I am mainly wondering, as I was thinking about packaging it for NixOS.
Not really an issue but more of a question; is there any particular reason you implemented a which()
function yourself over using distutils.spawn.find_executable()
?
unp
aims to be a smart program. Could it skip __MACOSX crap while unpacking zips by default? That would be a great feature.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.