[SOLVED] Deluge Launching ERROR: “cPickle.UnpicklingError: could not find MARK”

I just tried to launch deluge and got the following error:

progname=deluge; RGBA=on
Traceback (most recent call last):
  File "/usr/bin/deluge", line 9, in 
    load_entry_point('deluge==1.2.1', 'console_scripts', 'deluge')()
  File "/usr/lib/pymodules/python2.6/deluge/main.py", line 121, in start_ui
    UI(options, args, options.args)
  File "/usr/lib/pymodules/python2.6/deluge/ui/ui.py", line 128, in __init__
    ui = GtkUI(args)
  File "/usr/lib/pymodules/python2.6/deluge/ui/gtkui/gtkui.py", line 216, in __init__
    self.torrentdetails = TorrentDetails()
  File "/usr/lib/pymodules/python2.6/deluge/ui/gtkui/torrentdetails.py", line 116, in __init__
    state = self.load_state()
  File "/usr/lib/pymodules/python2.6/deluge/ui/gtkui/torrentdetails.py", line 432, in load_state
    state = cPickle.load(state_file)
cPickle.UnpicklingError: could not find MARK

Deluge would just crash and would not show up at all.

I tried searching for a solution, but did not find any. I tried upgrading to the ppa version of deluge with no luck. Then I just removed all the .state (not to be mistaken with state directory) files (peers_tab.state, files_tab.state, torrentview.state, tabs.state, dht.state, session.state and any other file containing .state at the end) from /home/MyUserName/.config/deluge and was able to launch deluge again. You should not remove the state directory because you will lose the torrent list if you do.
After that, you will be able to launch deluge. It is a good idea to recheck (Right click on a torrent file and select Force Recheck) all torrent files after you do this.

Hope this helps.

[SOLVED] cmake error when compiling plasmoid on Ubuntu

I have recently installed kubuntu-desktop (KDE4) on my Karmic Koala installation and tried to install a very cool weather plasmoid called Yet Another Weather Plasmoid but I was unable to do so as I got this error:

CMake Error at /usr/share/cmake-2.6/Modules/FindKDE4.cmake:84 (MESSAGE):
ERROR: cmake/modules/FindKDE4Internal.cmake not found in
Call Stack (most recent call first):
CMakeLists.txt:3 (find_package)

CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as

cmake_minimum_required(VERSION 2.6)

should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!
make: *** No rule to make target `clean'. Stop.
make: *** No targets specified and no makefile found. Stop.
Compilation failed, sorry :-(

I installed kdelibs5-dev and I was able to compile it.

Hope this helps.