toxinu / Sublimall

Synchronize your SublimeText configuration
Other
541 stars 33 forks source link

Error while running p7zip... #64

Open leny opened 10 years ago

leny commented 10 years ago

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 commented 10 years ago

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.

toxinu commented 10 years ago

Thank you for your feedback. :smile:

mindcaster commented 9 years ago

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 commented 9 years ago

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

mindcaster commented 9 years ago

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 commented 9 years ago

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.