Re: [Deskbar] Problems Installing Converter Extension



I ran Deskbar from the terminal which gave me the following error:

10-27 11:37:07 deskbar.core.ModuleLoader ERROR problem in /home/paal/.local/share/deskbar-applet/modules-2.20-compatible/converter.py - <type 'exceptions.SyntaxError'>: Non-ASCII character '\xc2' in file /home/paal/.local/share/deskbar-applet/modules-2.20-compatible/converter.py on line 64, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details (converter.py, line 63)

To fix it, I just replaced the converter.py with the newest version. The file was for some reason was an old version I also tried to use. Now everything works like a charm. Thanks a lot for the help! Why it looks for the file in ~/.local/share/deskbar-applet/modules-2.20-compatible/ I don't know, every resource I've been looking at on the Internet says that it should be ~/.gnome2/<and so on...>. Perhaps it's the Ubuntu version that does it this way? It works for me nonetheless... :)

If anyone is interested, here's the output I got when running /usr/lib/deskbar-applet/deskbar-applet -w -d from the terminal:

10-27 11:37:07 root INFO Starting Deskbar instance: <gnome.applet.Applet object at 0x8c721e4 (PanelApplet at 0x90b8800)> None 10-27 11:37:07 deskbar.core.Keybinder INFO Binding Global shortcut F3 to focus the deskbar 10-27 11:37:07 deskbar.core.CoreImpl INFO Successfully binded Deskbar to F3 10-27 11:37:07 deskbar.core.ModuleLoader ERROR Error loading the file: /home/paal/.local/share/deskbar-applet/modules-2.20-compatible/converter.py. 10-27 11:37:07 deskbar.core.ModuleLoader ERROR problem in /home/paal/.local/share/deskbar-applet/modules-2.20-compatible/converter.py - <type 'exceptions.SyntaxError'>: Non-ASCII character '\xc2' in file /home/paal/.local/share/deskbar-applet/modules-2.20-compatible/converter.py on line 64, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details (converter.py, line 63)
Traceback (most recent call last):
File "/usr/lib/python2.6/dist-packages/deskbar/core/ModuleLoader.py", line 99, in import_module
   mod = pydoc.importfile (filename)
 File "/usr/lib/python2.6/pydoc.py", line 266, in importfile
   raise ErrorDuringImport(path, sys.exc_info())
ErrorDuringImport: problem in /home/paal/.local/share/deskbar-applet/modules-2.20-compatible/converter.py - <type 'exceptions.SyntaxError'>: Non-ASCII character '\xc2' in file /home/paal/.local/share/deskbar-applet/modules-2.20-compatible/converter.py on line 64, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details (converter.py, line 63) 10-27 11:37:07 deskbar.core.ModuleLoader INFO Loading module 'Open location' from file /home/paal/.local/share/deskbar-applet/modules-2.20-compatible/deskbar-open-location.py. 10-27 11:37:07 deskbar.core.ModuleLoader INFO Loading module 'Calculator' from file /home/paal/.local/share/deskbar-applet/modules-2.20-compatible/calculator-1-7.py. 10-27 11:37:07 deskbar.core.ModuleLoader INFO Loading module 'Google Suggest' from file /home/paal/.local/share/deskbar-applet/modules-2.20-compatible/google-suggest.py. 10-27 11:37:07 deskbar.core.ModuleLoader INFO Loading module 'Templates' from file /usr/lib/deskbar-applet/modules-2.20-compatible/templates.py. 10-27 11:37:08 deskbar.core.ModuleLoader INFO Loading module 'Calculator' from file /usr/lib/deskbar-applet/modules-2.20-compatible/calculator.py. 10-27 11:37:08 deskbar.core.ModuleList WARNING You tried to add a module twice. Not adding <CalculatorModule object at 0x9293aa4 (deskbar+interfaces+Module+Module at 0x8dcf2a0)> from /home/paal/.local/share/deskbar-applet/modules-2.20-compatible/calculator-1-7.py 10-27 11:37:08 deskbar.core.ModuleLoader INFO Loading module 'History' from file /usr/lib/deskbar-applet/modules-2.20-compatible/history.py. 10-27 11:37:08 deskbar.core.ModuleLoader INFO Loading module 'Mail (Address Book)' from file /usr/lib/deskbar-applet/modules-2.20-compatible/evolution.py. 10-27 11:37:08 deskbar.core.ModuleLoader WARNING Class BeagleHandler in file /usr/lib/deskbar-applet/modules-2.20-compatible/beagle-static.py has missing requirements. Skipping. 10-27 11:37:08 deskbar.core.ModuleLoader INFO Loading module 'Yahoo! Search' from file /usr/lib/deskbar-applet/modules-2.20-compatible/yahoo.py. 10-27 11:37:08 deskbar.core.ModuleLoader INFO Loading module 'Yahoo! Suggestions' from file /usr/lib/deskbar-applet/modules-2.20-compatible/yahoo.py. 10-27 11:37:08 deskbar.core.ModuleLoader INFO Loading module 'Google Code Search' from file /usr/lib/deskbar-applet/modules-2.20-compatible/googlecodesearch.py. 10-27 11:37:08 deskbar.core.Utils WARNING Icon devhelp Load Error: Icon 'devhelp' not present in theme (or Icon 'devhelp' not present in theme) 10-27 11:37:08 deskbar.core.Utils WARNING Icon `stock_unknown' is not present in theme 10-27 11:37:08 deskbar.core.ModuleLoader WARNING Class DevhelpHandler in file /usr/lib/deskbar-applet/modules-2.20-compatible/programs.py has missing requirements. Skipping. 10-27 11:37:08 deskbar.core.ModuleLoader INFO Loading module 'Programs' from file /usr/lib/deskbar-applet/modules-2.20-compatible/programs.py. 10-27 11:37:08 deskbar.core.ModuleLoader INFO Loading module 'Dictionary' from file /usr/lib/deskbar-applet/modules-2.20-compatible/programs.py. 10-27 11:37:08 deskbar.core.ModuleLoader INFO Loading module 'Files and Folders Search' from file /usr/lib/deskbar-applet/modules-2.20-compatible/programs.py. 10-27 11:37:08 deskbar.core.ModuleLoader INFO Loading module 'Recent Documents' from file /usr/lib/deskbar-applet/modules-2.20-compatible/recent.py. 10-27 11:37:08 deskbar.core.ModuleLoader WARNING Class MozillaBookmarksHandler in file /usr/lib/deskbar-applet/modules-2.20-compatible/mozilla.py has missing requirements. Skipping. 10-27 11:37:08 deskbar.core.ModuleLoader WARNING Class MozillaSearchHandler in file /usr/lib/deskbar-applet/modules-2.20-compatible/mozilla.py has missing requirements. Skipping. 10-27 11:37:08 deskbar.core.ModuleLoader WARNING Class MozillaHistoryHandler in file /usr/lib/deskbar-applet/modules-2.20-compatible/mozilla.py has missing requirements. Skipping. 10-27 11:37:08 deskbar.core.ModuleLoader INFO Loading module 'Google Search' from file /usr/lib/deskbar-applet/modules-2.20-compatible/googlesearch.py. 10-27 11:37:08 deskbar.core.ModuleLoader INFO Loading module 'del.icio.us Bookmarks' from file /usr/lib/deskbar-applet/modules-2.20-compatible/desklicious.py. 10-27 11:37:08 deskbar.core.ModuleLoader INFO Loading module 'Window Switcher' from file /usr/lib/deskbar-applet/modules-2.20-compatible/iswitch-window.py. 10-27 11:37:09 deskbar.core.ModuleLoader INFO Loading module 'Tomboy Notes' from file /usr/lib/deskbar-applet/modules-2.20-compatible/tomboy.py. 10-27 11:37:09 deskbar.core.ModuleLoader INFO Loading module 'Wikipedia Suggest' from file /usr/lib/deskbar-applet/modules-2.20-compatible/wikipedia-suggest.py. 10-27 11:37:09 deskbar.core.ModuleLoader INFO Loading module 'Files, Folders and Places' from file /usr/lib/deskbar-applet/modules-2.20-compatible/files.py. 10-27 11:37:09 deskbar.core.ModuleLoader INFO Loading module 'Computer Actions' from file /usr/lib/deskbar-applet/modules-2.20-compatible/gdmactions.py. 10-27 11:37:09 deskbar.core.ModuleLoader INFO Loading module 'OpenSearch' from file /usr/lib/deskbar-applet/modules-2.20-compatible/opensearch.py. 10-27 11:37:09 deskbar.core.ModuleLoader INFO Loading module 'Web' from file /usr/lib/deskbar-applet/modules-2.20-compatible/web_address.py. 10-27 11:37:09 deskbar.core.ModuleLoader INFO Loading module 'Beagle Live' from file /usr/lib/deskbar-applet/modules-2.20-compatible/beagle-live.py. 10-27 11:37:09 deskbar.core.ModuleLoader WARNING Class EpiphanyBookmarksHandler in file /usr/lib/deskbar-applet/modules-2.20-compatible/epiphany.py has missing requirements. Skipping. 10-27 11:37:09 deskbar.core.ModuleLoader WARNING Class EpiphanyHistoryHandler in file /usr/lib/deskbar-applet/modules-2.20-compatible/epiphany.py has missing requirements. Skipping. 10-27 11:37:09 deskbar.core.ModuleLoader WARNING Class EpiphanySearchHandler in file /usr/lib/deskbar-applet/modules-2.20-compatible/epiphany.py has missing requirements. Skipping. 10-27 11:37:09 deskbar.core.ModuleLoader INFO Loading module 'Twitter' from file /usr/lib/deskbar-applet/modules-2.20-compatible/twitter.py. 10-27 11:37:09 deskbar.core.ModuleLoader INFO Loading module 'identi.ca' from file /usr/lib/deskbar-applet/modules-2.20-compatible/twitter.py.
10-27 11:37:09 deskbar.core.ModuleLoader INFO     Initializing Calculator
10-27 11:37:09 deskbar.core.ModuleLoader INFO     Initializing Open location
10-27 11:37:09 deskbar.core.ModuleLoader INFO     Initializing History
10-27 11:37:09 deskbar.core.ModuleLoader INFO Initializing Recent Documents
10-27 11:37:09 deskbar.core.ModuleLoader INFO     Initializing Programs
10-27 11:37:11 deskbar.core.ModuleLoader INFO Initializing Computer Actions /var/lib/python-support/python2.6/dbus/connection.py:242: DeprecationWarning: object.__init__() takes no parameters
 super(Connection, self).__init__(*args, **kwargs)
10-27 11:37:11 deskbar.core.ModuleLoader INFO Initializing Files and Folders Search 10-27 11:37:11 deskbar.core.DeskbarHistory ERROR Could not restore history 10-27 11:37:11 deskbar.core.DeskbarHistory ERROR Traceback (most recent call last): File "/usr/lib/python2.6/dist-packages/deskbar/core/DeskbarHistory.py", line 119, in load
   saved_history = cPickle.load(file(HISTORY_FILE))
EOFError

(Deskbar icon is now shown in a window)


-Paul

Sebastian Pölsterl wrote:
Pål Levold schrieb:
Hi,

Hi,

I have some problems installing the Converter Extension to Deskbar. When I copy the files to the folder (which seems to be /usr/lib/deskbar-applet/modules-2.20-compatible in my case), I’m able to add the extension and it works fine. The next time I boot my computer however, the extension is gone from the extension list and it's not in the “extensions with errors” list either. The file is still in the folder, but I have to delete it and copy it over again for it to appear in the extension list. I’m using Deskbar-applet 2.26.1 (Ubuntu repository).
Any suggestions on how to fix this?

I never experienced such problem. You may get more information from the debug output if you first remove Deskbar from the panel and start it from the command line with /usr/lib/deskbar-applet/deskbar-applet -w -d




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]