danielmagnussons / orgmode

orgmode is for keeping notes, maintaining TODO lists, planning projects, and authoring documents with a fast and effective plain-text system.
MIT License
753 stars 70 forks source link

FileNotFoundError: [Errno 2] No such file or directory: '/opt/sublime_text/Settings/orgmode-store.bin.gz' #56

Closed lianghu closed 6 years ago

lianghu commented 9 years ago

Traceback (most recent call last): File "/opt/sublime_text/sublime_plugin.py", line 320, in on_deactivated callback.on_deactivated(v) File "~/.config/sublime-text-3/Packages/orgmode/orgmode_store.py", line 41, in on_deactivated self.save(view, 'on_deactivated') File "~/.config/sublime-text-3/Packages/orgmode/orgmode_store.py", line 90, in save with GzipFile(self.store, 'wb') as f: File "./gzip.py", line 184, in init FileNotFoundError: [Errno 2] No such file or directory: '/opt/sublime_text/Settings/orgmode-store.bin.gz'

yoyosan commented 8 years ago

To temporarily solve this just copy the file from /home/user/.config/sublime-text-3/Packages/Settings/orgmode_store.bin.gz into /opt/sublime_text/Settings/orgmode-store.bin.gz. Also, give it permissions so that the user you're running Sublime with can access it.

LE: If the folder doesn't exist, just do this:

sudo mkdir /opt/sublime-text-3/Settings
sudo touch /opt/sublime-text-3/Settings/orgmode_store.bin.gz
sudo chown user: /opt/sublime-text-3/Settings/orgmode_store.bin.gz

and restart Sublime.

That's all.

danielmagnussons commented 6 years ago

Hopefully this fixes it: fa487b1a493afcaabae4a640671b66170b814fb4