$OpenBSD$
--- src/ovirtcli/platform/posix/spice.py.orig	Mon Nov 16 15:56:08 2015
+++ src/ovirtcli/platform/posix/spice.py	Wed Feb  3 15:30:06 2016
@@ -26,7 +26,7 @@ from cli.messages import Messages
 
 
 # Template to generate the remote viewer configuration file:
-CONFIG_TEMPLATE = """\
+CONFIG_TEMPLATE = u"""\
 [virt-viewer]
 type=spice
 title={title}:%d - Press SHIFT+F12 to Release Cursor
@@ -91,7 +91,7 @@ def launch_spice_client(host, host_subject, port, secp
         return
 
     # No luck, no known command is available:
-    raise Error, Messages.Error.NO_CONSOLE_FOUND % ('spice', 'spice')
+    raise Error, Messages.Error.NO_SPICE_VIEWER_FOUND
 
 
 def launch_spicec(cmd, host, host_subject, port, secport, ticket,
@@ -146,7 +146,7 @@ def launch_remote_viewer(cmd, host, host_subject, port
     )
     config_fd, config_path = tempfile.mkstemp()
     with os.fdopen(config_fd, "w") as config_stream:
-        config_stream.write(config_text)
+        config_stream.write(config_text.encode("utf-8"))
 
     # Run the remote-viewwer command:
     args = ["remote-viewer", config_path]
