We're Hiring!

database initialization

Having a problem deploying OMERO? Please ask new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

The OMERO.server installation documentation begins here and you can find OMERO.web deployment documentation here.

database initialization

Postby gilles » Thu Sep 10, 2009 12:35 pm

Hi there,
I'm new to OMERO
I actually try to install Omero.server on my pc (windows xp) as localhost.
I follow the installation procedure as describe on the site (http://www.openmicroscopy.org/site/supp ... ll-windows)
everything seems to be alright, I get no error, but when I finally try to initialize the omero database with the command line "bin\omero db script" I have the following message :
" File "bin\omero", line 19
print "OMERO directories belong to root"

syntaxError: invalid syntax

does anyone know where is the problem ?

Thanks
gilles
 
Posts: 13
Joined: Thu Sep 10, 2009 12:33 pm

Re: database initialization

Postby jmoore » Thu Sep 10, 2009 2:32 pm

Hi gilles,

this is quite odd. What version of python do you have installed?
Code: Select all
python -V


And what happens if you try to run:
Code: Select all
python bin\omero db script


Cheers, ~Josh.
User avatar
jmoore
Site Admin
 
Posts: 1591
Joined: Fri May 22, 2009 1:29 pm
Location: Germany

Re: database initialization

Postby gilles » Thu Sep 10, 2009 3:38 pm

hi,
first I've installed python 2.5.4.4 but the error was :

Traceback <most recent call last>:
File "bin\omero", line 67, in <module>
import omero.cli
File "C:\omero_dist\lib\python\omero\__init__.py", line 14, in <module>
import Ice, Glacier2

ImportError: No module named Ice

...
So I've installed the 3.1.1.2 version... :?
gilles
 
Posts: 13
Joined: Thu Sep 10, 2009 12:33 pm

Re: database initialization

Postby jmoore » Thu Sep 10, 2009 3:54 pm

What Ice version did you install? The most current is 3.3.1. Are things working for you now?
User avatar
jmoore
Site Admin
 
Posts: 1591
Joined: Fri May 22, 2009 1:29 pm
Location: Germany

Re: database initialization

Postby gilles » Fri Sep 11, 2009 7:09 am

my ice version is 3.3.1
there is no evolution... shall I do reinstall python2.5.4.4 or 2.6.2.2 ? If I find the ice module it will be alright no ?
gilles
 
Posts: 13
Joined: Thu Sep 10, 2009 12:33 pm

Re: database initialization

Postby cblackburn » Fri Sep 11, 2009 10:38 am

Hi Gilles,

It's important that the PYTHONPATH which points to the Ice Python libs is a System environment variable (and not a User one) Can you check you have that System variable set?

Colin
cblackburn
 
Posts: 85
Joined: Mon May 25, 2009 9:03 pm

Re: database initialization

Postby gilles » Fri Sep 11, 2009 11:11 am

Hi Colin,
my system variables are :

path
C:\Python31\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Fichiers communs\Roxio Shared\DLLShared\;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft Visual Studio 8\VC\vcpackages;C:\Program Files\QuickTime\QTSystem\;%VDMSPath%\;C:\Ice-3.3.1\bin

pythonpath
C:\Ice-3.3.1\bin
gilles
 
Posts: 13
Joined: Thu Sep 10, 2009 12:33 pm

Re: database initialization

Postby cblackburn » Fri Sep 11, 2009 12:38 pm

Hi Gilles,

Can you check whether the PYTHONPATH is System or User variable?

Settings --> Control Panel, open it and navigate to the Advanced Tab. Click Environment Variables. Is PYTHONPATH specified in the lower System panel or the upper User Panel? It needs to be set in the lower one.

Cheers,

Colin
cblackburn
 
Posts: 85
Joined: Mon May 25, 2009 9:03 pm

Re: database initialization

Postby gilles » Fri Sep 11, 2009 1:28 pm

I confirm,
the PYTHONPATH is in System variable

pythonpath
C:\Ice-3.3.1\bin
gilles
 
Posts: 13
Joined: Thu Sep 10, 2009 12:33 pm

Re: database initialization

Postby gilles » Fri Sep 11, 2009 1:37 pm

that 's an extract of the file omero_dist\bin\omero :

#!/usr/bin/env python

"""

:author: Josh Moore <josh@glencoesoftware.com>

Python driver for OMERO
Copyright (c) 2007, Glencoe Software, Inc.
See LICENSE for details.

"""
import sys, os, stat

def not_root(omero):
try:
if os.geteuid() == 0:
owner = os.stat(omero)[stat.ST_UID]
if owner == 0:
print "OMERO directories belong to root"

the error occurs at this last line. "syntaxError: invalid syntax"
gilles
 
Posts: 13
Joined: Thu Sep 10, 2009 12:33 pm

Next

Return to Installation and Deployment

Who is online

Users browsing this forum: No registered users and 1 guest