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

Error while running p7zip... #64

Open
leny opened this issue Jul 20, 2014 · 6 comments
Open

Error while running p7zip... #64

leny opened this issue Jul 20, 2014 · 6 comments
Labels

Comments

@leny
Copy link

leny commented Jul 20, 2014

Hi,

I try with no success to use Sublimall.

After installing the plugin (via Package Control), and configuring it (I use the default configuration, with encrypt set to false, when I launch the upload command, I got this :

Error while creating archive

=================================== Traceback ===================================
Traceback (most recent call last):
  File "sublimall.commands.upload_command in /Users/Leny/Library/Application Support/Sublime Text 3/Installed Packages/Sublimall.sublime-package", line 58, in pack_and_send
  File "sublimall.archiver in /Users/Leny/Library/Application Support/Sublime Text 3/Installed Packages/Sublimall.sublime-package", line 203, in pack_packages
  File "sublimall.archiver in /Users/Leny/Library/Application Support/Sublime Text 3/Installed Packages/Sublimall.sublime-package", line 129, in _run_executable
Exception: Error while running p7zip (exit code: 1)
=================================================================================


SublimeText version: 3059
7za path: /usr/local/bin/7za
Sublimall version: 0.0.20
Operating System: Darwin-13.2.0-x86_64-i386-64bit

p7zip has been installed with homebrew. I thought it was because I was just installed it, but after a complete reboot of the computer, the error persist.

Thanks in advance,

@leny
Copy link
Author

leny commented Jul 20, 2014

Problem is fix, I let the solution here in case it can help someone : my packages was symlinked via Dropbox, after removing the symlink and place the packages where they belongs to, the sublimall plugin works well.

@leny leny closed this as completed Jul 20, 2014
@toxinu
Copy link
Owner

toxinu commented Jul 20, 2014

Thank you for your feedback. 😄

@mindcaster
Copy link

Sorry for necroposting... necroissuing? :) but I have the same problem. No symlinks, just dumb and simple file tree.

Sublimall error report
######################

Error while creating archive

=================================== Traceback ===================================
Traceback (most recent call last):
  File "sublimall.commands.upload_command in /home/kim/.config/sublime-text-3/Installed Packages/Sublimall.sublime-package", line 50, in pack_and_send
  File "sublimall.archiver in /home/kim/.config/sublime-text-3/Installed Packages/Sublimall.sublime-package", line 215, in pack_packages
  File "sublimall.archiver in /home/kim/.config/sublime-text-3/Installed Packages/Sublimall.sublime-package", line 133, in _run_executable
Exception: Error while running p7zip (exit code: 1)

=================================================================================


SublimeText version: 3065
7za path: /usr/bin/p7zip
Sublimall version: 0.0.23
Operating System: Linux-3.13.0-24-generic-x86_64-with-debian-jessie-sid

@toxinu
Copy link
Owner

toxinu commented Oct 28, 2014

Hi @mindcaster , can you copy paste your ~/.sublimall.log ?

@mindcaster
Copy link

It is the last event, but previous is the same (i've tried twice: with and without passphrase)

2014-10-28 16:12:44 - INFO - Starting upload
2014-10-28 16:12:44 - INFO - Encrypt enabled
2014-10-28 16:12:44 - INFO - Prompt archive passphrase
2014-10-28 16:12:45 - INFO - Excluded dirs: ['Packages/Sublimall', 'Installed Packages/Sublimall.sublime-package']
2014-10-28 16:12:45 - INFO - 7za_path detected: /usr/bin/p7zip
2014-10-28 16:12:45 - INFO - Command: ['/usr/bin/p7zip', 'a', '-tzip', '-mx=9', '-y', '-x!Packages/Sublimall*', '-x!Installed Packages/Sublimall.sublime-package*', '/tmp/sublime-sync_ea6b110e-3e03-4686-9343-9f25f5933db6.zip', '/home/kim/.config/sublime-text-3/Installed Packages', '/home/kim/.config/sublime-text-3/Packages']
2014-10-28 16:12:45 - ERROR - Error while running p7zip (exit code: 1)
2014-10-28 16:12:45 - ERROR - Command: ['/usr/bin/p7zip', 'a', '-tzip', '-mx=9', '-y', '-x!Packages/Sublimall*', '-x!Installed Packages/Sublimall.sublime-package*', '/tmp/sublime-sync_ea6b110e-3e03-4686-9343-9f25f5933db6.zip', '/home/kim/.config/sublime-text-3/Installed Packages', '/home/kim/.config/sublime-text-3/Packages']
2014-10-28 16:12:45 - ERROR - Output:
 (b'Usage: /usr/bin/p7zip [-d] [-h|--help] [file]\n\n    -h print this help\n    -d decompress file\n\n', b'')
2014-10-28 16:12:45 - INFO - 7za_path detected: /usr/bin/p7zip
2014-10-28 16:12:45 - ERROR - Error while running p7zip (exit code: 1)

@toxinu
Copy link
Owner

toxinu commented Oct 30, 2014

Thank you. I think I have an idea.
Sublimall found p7zip binary like we can see in your log file but I create command line for 7za binary which most work a bit differently.
You can see the code which try to found binaries here: https://github.com/socketubs/Sublimall/blob/4641dad9c92da16caf90d1947924e6477db77a90/sublimall/utils.py#L57-L58

I have to take a look at this bug but as a workaround you can install p7zip-full package if you are using Ubuntu or similar package on another distro which include 7za binary.

@toxinu toxinu reopened this Oct 30, 2014
@toxinu toxinu added the bug label Oct 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants