Giter VIP home page Giter VIP logo

epack's People

Contributors

davemds avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

epack's Issues

cannot import name mime_type_query

On start up we get the following error in a terminal:

epack
cannot import name mime_type_query - Shell backend disabled

Trivial fix either remove the line

from epack.utils import mime_type_query

from the file backend_shell.py or add the function mime_type_query to the file utils.py

Tagged release

Can you please create a tag for a release. It seems to have versions but no tags or release available on Github. Having to pull based on hash, and rather use a tag/version. Thanks!

run with none file

Traceback (most recent call last):
File "/usr/bin/epack.py", line 278, in
FileChooserWin()
File "/usr/bin/epack.py", line 254, in init
fs.mime_types_filter_append(EXTRACT_MAP.keys(), 'Archive files')
TypeError: Argument 'mime_types' has incorrect type (expected list, got dict_keys)

LibarchiveBackend file permission issue

Assuming one is using the libarchive backend which should be the default, a simple illustration of this error:

touch test
chmod 444 test
tar -czvf archive.tar.gz test
epack -x archive.tar.gz 

epack then displays a Permission denied error message, in my test case:

[Errno 13] Permission denied: u'/home/bodhi/test'

Examination of the code reveals the error occurs with line 110 in backend_libarchive.py:

                       with open(path, 'wb') as f:

My hack to fix it which may or may not be acceptable was to change this to:

                        os.chmod(path, 0o664)
                        with open(path, 'wb') as f:

Note in the same fn, latter the program resets the permission of path :

                        # apply correct permission to files
                        os.chmod(path, entry.perm)

Hence my reasoning was this hack shouldn't effect anything else. But admittedly I have not closely examined the code or did much testing.

This is a simple illustration of the error I was trying to tell DaveMDS about today in IRC channel. Unfortunately at that time I hadn't tracked down the exact cause of the error.

Need's updating

Epack no longer runs under EFL 1.18.0:

DEVELOPER WARNING:
Using subprocess (Popen and derivatives) with Ecore is a bad idea.

    Ecore will set some signal handlers subprocess module depends and this
    may cause this module to operate unexpectedly.

    Instead of using subprocess.Popen(), please consider using Ecore's
    Exe() class.

File "/usr/bin/epack", line 31, in
from epack.backend import load_backend
File "", line 969, in _find_and_load
File "", line 958, in _find_and_load_unlocked
File "", line 673, in _load_unlocked
File "", line 665, in exec_module
File "", line 222, in _call_with_frames_removed
File "/usr/lib/python3.5/site-packages/epack/backend.py", line 29, in
from epack.backend_shell import ShellBackend
File "", line 969, in _find_and_load
File "", line 958, in _find_and_load_unlocked
File "", line 673, in _load_unlocked
File "", line 665, in exec_module
File "", line 222, in _call_with_frames_removed
File "/usr/lib/python3.5/site-packages/epack/backend_shell.py", line 21, in
import magic
File "", line 969, in _find_and_load
File "", line 958, in _find_and_load_unlocked
File "", line 673, in _load_unlocked
File "", line 665, in exec_module
File "", line 222, in _call_with_frames_removed
File "/usr/lib/python3.5/site-packages/magic.py", line 20, in
_libraries['magic'] = _init()
File "/usr/lib/python3.5/site-packages/magic.py", line 17, in _init
return ctypes.cdll.LoadLibrary(find_library('magic'))
File "/usr/lib/python3.5/ctypes/util.py", line 240, in find_library
return _findSoname_ldconfig(name) or _get_soname(_findLib_gcc(name))
File "/usr/lib/python3.5/ctypes/util.py", line 232, in _findSoname_ldconfig
env={'LC_ALL': 'C', 'LANG': 'C'}) as p:
cannot import name 'mime_type_query' - Shell backend disabled
Traceback (most recent call last):
File "/usr/bin/epack", line 147, in
app = EpackApplication(args)
File "/usr/bin/epack", line 51, in init
self.main_win = MainWin(self)
File "/usr/lib/python3.5/site-packages/epack/gui.py", line 151, in init
self.update_ui()
File "/usr/lib/python3.5/site-packages/epack/gui.py", line 202, in update_ui
ic = Icon(box, standard='dialog-info', size_hint_min=(24,24))
File "efl/elementary/icon.pxi", line 38, in efl.elementary.init.Icon.init (efl/elementary/init.c:156140)
File "efl.evas_object.pxi", line 209, in efl.evas.Object._set_properties_from_keyword_args (efl/evas/efl.evas.c:51748)
File "efl.eo.pyx", line 276, in efl.eo.Eo._set_properties_from_keyword_args (efl/eo/efl.eo.c:3446)
File "efl/elementary/icon.pxi", line 109, in efl.elementary.init.Icon.standard.set (efl/elementary/init.c:156737)
RuntimeWarning: Setting standard icon failed

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.