fmoralesc / pastie

a simple *nix clipboard manager with application-indicator support
46 stars 7 forks source link

Cannot run... #4

Closed jhpark70 closed 14 years ago

jhpark70 commented 14 years ago

Hi. Thank you for your great software. I really appreciate it.

I am using Lucid(64bit), and when I downloaded 0.3.0 of pastie, it works fine. However, I have heard that you set up a PPA, I added it, also update the system.

After all, pastie does not run...

Here is the result..

$ pastie

Traceback (most recent call last):

File "/usr/bin/pastie", line 57, in

clipboard_protector = protector.ClipboardProtector(indicator)

File "/usr/lib/python2.6/dist-packages/pastie/protector.py", line 44, in init

self.history.set_payload(self.recover_history())

File "/usr/lib/python2.6/dist-packages/pastie/protector.py", line 56, in recover_history

history_tree = tree.parse(os.path.expanduser(input_file))

File "/usr/lib/python2.6/xml/etree/ElementTree.py", line 862, in parse

tree.parse(source, parser)

File "/usr/lib/python2.6/xml/etree/ElementTree.py", line 587, in parse

self._root = parser.close()

File "/usr/lib/python2.6/xml/etree/ElementTree.py", line 1254, in close

self._parser.Parse("", 1) # end of data

xml.parsers.expat.ExpatError: no element found: line 1, column 0

Can you help me to get my(your? ^^) pastie back? Thanks in advance!

fmoralesc commented 14 years ago

If is still not working (maybe on a second run it took off), can you send me the contents of your .clipboard_history file?

Also, was it the first time you ran pastie after the installation? Do you remember having or not having anything copied into the clipboard?

Thanks for your report, I'm working on it. Also, I really appreciate your feedback.

fmoralesc commented 14 years ago

On checking, it seems that you are still running the 0.3 deb version. It seems that pastie hasn't updated from the PPA (that still doesn't solve the issue, though).

jhpark70 commented 14 years ago

Dear Felipe Morales. I figured out what was wrong.

If .clipboard_history exists and contains nothing (when file size is zero), those errors occur. I removed .clipboard_history and rerun it, and it works, you know, like a charm. Maybe you could add some code to check the file..

BTW, yesterday there were some problems on my Lucid so I had to turn off the computer forcefully, during that disaster, I think .clipboard_history set to empty.. I do not know what happened exactly..

Thank you for your Pastie, I love it.

fmoralesc commented 14 years ago

OK, i'll add the check and roll a release asap. Thanks.

fmoralesc commented 14 years ago

Fixed in c2e4514398d61313852372f66561fafea50e4a9a Changes are uploaded to PPA. Closing.