64 bit installation

Asked by vinca

Hi, i've tried to install entertainer on a 64 bit platform. I have used the entertainer-backend.py from release 213 that Mr. Hummer made. The backend server seems to start fine, displaying the message "Entertainer backend starting..." and then giving the command prompt. Then, after initializing the backend, when typing ./entertainer-frontend.py it says

"Couldn't connect to the backend server. Execution aborted!
Make sure that Entertainer backend server is up and running."

Here is the entertainer-backend.py that I used (I had to type it out because the download link didn't work)

#!/usr/bin/env python

__licence__ = "GPLv2"
__copyright__ = "2007, Lauri Taimila"
__author__ = "Lauri Taimila <email address hidden>"
__version__= "0.1"

import ctypes
import gobject
import os
import sys

from backend.backend_server import BackendServer

def daemonize(stdin='/dev/null', stdout='/dev/null', stderr='/dev/null'):
    '''Fork the backend server process'''
    try:
        pid = os.fork()
  if pid > 0:
      sys.exit(0) # Exit first parent
    except OSError, e:
 sys.stderr.write("First fork failed: (%d) %s\n" % (e.errno, e.strerror))
 sys.exit(1)
    # Decouple from parent environment
    os.chdir("/")
    os.umask(0)
    os.setsid()
    # Perform the second fork
    try:
 pid = os.fork()
  if pid > 0:
     sys.exit(0) # Exit second parent
    except OSError, e:
      sys.stderr.write("Second fork failed: (%d) %s\n" % (e.errno, e.strerror))
            sys.exit(1)
    # The process is now daemonize, appart from scaring children it'll now run as a daemon
    for f in sys.stdout, sys.stderr: f.flush()
    si = file(stdin, 'r')
    so = file(stdout, 'a+')
    se = file(stderr, 'a+')
    os.dup2(si.fileno(), sys.stdin.fileno())
    os.dup2(so.fileno(), sys.stdout.fileno())
    os.dup2(se.fileno(), sys.stderr.fileno())

if __name__ == "__main__":
    if len(sys.argv) > 1 and (sys.argv[1] == "--help" or sys.argv[1] == "-h"):
  print "Entertainer backend " + str(__version__) + ", Copyright (c) " + str(__copyright__)
  print ""
  print "Usage:"
  print " --help - This help listing"
  print " --foreground - Run backend as foreground process"
  sys.exit(0)

    if len(sys.argv) > 1 and sys.argv[1] == "--foreground":
  backend = BackendServer()
    else:
  print "Entertainer backend starting..."
  libc = ctypes.CDLL('libc.so.6')
        libc.prctl(15, 'EntertainerBackend', 0, 0, 0)
  daemonize()
        backend = BackendServer()

Okay thanks in advance all! if you need more info let me know....

Question information

Language:
English Edit question
Status:
Solved
For:
Entertainer Media Center Edit question
Assignee:
No assignee Edit question
Solved by:
vinca
Solved:
Last query:
Last reply:
Revision history for this message
Matt Layman (mblayman) said :
#1

vinca, it looks like you have a rev of Entertainer that is up-to-date enough to incorporate Paul's fix for 64 bit processors. Have you copied the 'cfg' directory to '~/.config/entertainer'?

If that's not your problem, then can you check the log files in the ~/.config/entertainer directory and report the errors in a bug report? In the bug report, we would need any information that you could provide (which linux distribution, error messages, and code tracebacks, for example).

I hope this is helpful for you.

Revision history for this message
vinca (jcarr-scienceprousa) said :
#2

This solved my problem. I copied the ~/.entertainer/cfg to ~/.config/cfg. Now, i have the black screen prob, but that was "fixed" in another thread...

Revision history for this message
vinca (jcarr-scienceprousa) said :
#3

I just read that thread, the level of the comment Geoff made about SVN and RPM or something was too high for me, but i'm sure that included the answer, could someone simplify?

Revision history for this message
vinca (jcarr-scienceprousa) said :
#4

I have tried compiling the latest version of clutter from source, but the problem persists. The latest is 0.6.4, and 0.6.3 was mentioned in the one by Geoff. I'll try 0.6.3 now.

Revision history for this message
vinca (jcarr-scienceprousa) said :
#5

It seems that the 0.6.3 verson of pycutter isn't out yet. Do you think that this issue will be fixed in the release this month?

Revision history for this message
Matt Layman (mblayman) said :
#6

vinca, I can't pretend to know the release schedule for the clutter development team. You may want to check their IRC channel or mailing list (information can be found at their website http://clutter-project.org/).

Sorry and good luck.

Revision history for this message
vinca (jcarr-scienceprousa) said :
#7

I meant of Entertainer on the fourteenth, will this problem be fixed in that release?

Revision history for this message
Matt Layman (mblayman) said :
#8

Oh, sorry, I misunderstood.

No, we will be using the same version of clutter for the release on the 14th (it's the stable version, we dealt with the development version in the past and it caused all sorts of trouble for us.)