[ome-users] OMERO.server4.4.4 Settings Configuration (Could not import omero.cli! No module named Ice)

UNAI LORENZO SIERRA ulorenzo001 at ikasle.ehu.es
Wed Nov 14 12:08:43 GMT 2012


Dear Blazej,

Thanks for your e-mail. I created, by mistake, an enviroment variable  
called "PYTONPATH" instead of "PYTHONPATH". That's the reason of the  
error.

I changed that variable and configured the settings for the database.
Apparently, I was also able to create the database initialization  
script, and initialize the database via SQL Shell.

But something is wrong and now I can't start the server with the  
command 'bin\omero admin start'.

Could you please take a look at the command line? I have also attached  
the 'admin diagnostics' command, in case you need it.


O:\omero_dist>bin\\omero admin diagnostics

================================================================================

OMERO Diagnostics 4.4.4-ice34-b3099
================================================================================


Commands:   java -version                  1.7.0      
(C:\Windows\system32\java.E
XE)
Commands:   python -V                      2.6.6     (C:\Python26\python.EXE)
Commands:   icegridnode --version          3.4.2     (C:\Program  
Files\ZeroC\Ice
-3.4.2\bin\icegridnode.EXE)
Commands:   icegridadmin --version         3.4.2     (C:\Program  
Files\ZeroC\Ice
-3.4.2\bin\icegridadmin.EXE)
Commands:   psql --version                 not found

Server:     icegridnode                    not started

Log dir:    O:\omero_dist\var\log          exists

Log files:  Blitz-0.log                    n/a
Log files:  DropBox.log                    n/a
Log files:  FileServer.log                 n/a
Log files:  Indexer-0.log                  n/a
Log files:  MonitorServer.log              n/a
Log files:  OMEROweb.log                   n/a
Log files:  Processor-0.log                n/a
Log files:  Tables-0.log                   n/a
Log files:  TestDropBox.log                n/a
Log files:  Total size                     0.00 MB

Error while parsing logs

Environment:OMERO_HOME=(unset)
Environment:OMERO_NODE=(unset)
Environment:OMERO_MASTER=(unset)
Environment:PATH=C:\Windows\system32\cmd.exe;C:\Program  
Files\ZeroC\Ice-3.4.2\bi
n;C:\Python26;C:\Program  
Files\PHP\;C:\Windows\system32;C:\Windows;C:\Windows\Sy
stem32\Wbem;C:\Program Files\Intel\DMIX;C:\Windows\System32\Windows  
System Resou
rce Manager\bin;C:\Program Files\MySQL\MySQL Server 5.1\bin;C:\Program  
Files\Pan
da  
Security\WaAgent\Common;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Window
s\system32\cmd.exe
Environment:ICE_HOME=(unset)
Environment:LD_LIBRARY_PATH=(unset)
Environment:DYLD_LIBRARY_PATH=(unset)

OMERO data dir: 'P:\OMERO'      Exists? True    Is writable? True
OMERO.web status... [NOT STARTED]


O:\omero_dist>bin\\omero admin start
No descriptor given. Using etc\grid\windefault.xml
Traceback (most recent call last):
   File "O:\omero_dist\bin\\omero", line 123, in <module>
     rv = omero.cli.argv()
   File "O:\omero_dist\lib\python\omero\cli.py", line 1184, in argv
     cli.invoke(args[1:])
   File "O:\omero_dist\lib\python\omero\cli.py", line 734, in invoke
     stop = self.onecmd(line, previous_args)
   File "O:\omero_dist\lib\python\omero\cli.py", line 803, in onecmd
     self.execute(line, previous_args)
   File "O:\omero_dist\lib\python\omero\cli.py", line 883, in execute
     args.func(args)
   File "O:\omero_dist\lib\python\omero\plugins\prefs.py", line 68, in  
open_and_c
lose_config
     return func(*args, **kwargs)
   File "O:\omero_dist\lib\python\omero\plugins\admin.py", line 419, in start
     self.startasync(args, config)
   File "O:\omero_dist\lib\python\omero\plugins\prefs.py", line 68, in  
open_and_c
lose_config
     return func(*args, **kwargs)
   File "O:\omero_dist\lib\python\omero\plugins\admin.py", line 381,  
in startasyn
c
     output = self._query_service(svc_name)
   File "O:\omero_dist\lib\python\omero\plugins\admin.py", line 225,  
in _query_se
rvice
     hscm = win32service.OpenSCManager(None, None,  
win32service.SC_MANAGER_ALL_AC
CESS)
pywintypes.error: (5, 'OpenSCManager', 'Acceso denegado.')


Thanks,
Unai




Blazej Pindelski <b.pindelski at dundee.ac.uk> escribió:

>> Hi everybody,
>
> Hi Unai,
>
>> I'm trying to install OMERO.server-4.4.4 on a Windows Server  
>> Standard computer, 32 bits, Service Pack 2.
>>
>> First of all, I installed the following components before starting  
>> the configuration of the database:
>>
>> - Java Development Kit 1.7
>> - Python 2.6.6
>> - pywin32-218.win32
>> - postgresql-9.2.1-1-windows
>> - Ice-3.4.2
>>
>> Then I followed the steps indicated in here:
>> https://www.openmicroscopy.org/site/support/omero4/sysadmins/windows/server-installation.html
>>
>> When trying to configurate the database settings, I get the following error:
>>
>>
>> O:\omero_dist>bin\omero config set omero.db.name omero_database
>> ********************************************************************************
>>
>>
>>        ERROR: Could not import omero.cli! (No module named Ice)
>>
>>        This means that your installation is incomplete. Contact
>>        the OME mailing lists for more information:
>>
>>        http://www.openmicroscopy.org/site/community
>>
>>        If you are building from source, please supply the build log
>>        as well as which version you are building from. If you
>>        downloaded a distribution, please provide which link you
>>        used.
>>
>> ********************************************************************************
>
> That error indicates that bin\omero (and ultimately your Python installation)
> isn't able to access the Ice module.
>
>>
>>        Debugging Info:
>>        --------------
>>        CWD=O:\omero_dist
>>        VERSION=2.6.6 (r266:84297, Aug 24 2010, 18:46:32) [MSC  
>> v.1500 32 bit (In
>> tel)]
>>        OMERO_HOME=None
>>        PYTHONPATH=['O:\\omero_dist\\lib\\python',  
>> 'O:\\omero_dist\\var\\lib', '
>> O:\\omero_dist\\bin', 'O:\\omero_dist\\lib\\python',  
>> 'O:\\omero_dist', 'C:\\Wind
>> ows\\system32\\python26.zip', 'C:\\Python26\\DLLs',  
>> 'C:\\Python26\\lib', 'C:\\Py
>> thon26\\lib\\plat-win', 'C:\\Python26\\lib\\lib-tk',  
>> 'C:\\Python26', 'C:\\Python
>> 26\\lib\\site-packages', 'C:\\Python26\\lib\\site-packages\\win32',  
>> 'C:\\Python2
>> 6\\lib\\site-packages\\win32\\lib',  
>> 'C:\\Python26\\lib\\site-packages\\Pythonwin
>> ', 'O:\\omero_dist\\lib\\fallback']
>>
>>
>> The enviroment variables seem to be correctly set:
>>
>> O:\omero_dist>echo %PYTONPATH%
>> C:\Program Files\ZeroC\Ice-3.4.2\python
>
> This looks ok. One thing I noticed (and maybe it would be worth  
> trying out) is that
> on Windows Python sometimes doesn't like when Ice is installed into  
> a folder with
> a hyphen ("-") character present in the name. I tend to install Ice  
> to a top-level folder
> (e.g. C:\ice).
>
> What happens when you try this in your command prompt:
>
> C:\>python
> Python 2.6.6 (r266:84297, Aug 24 2010, 18:46:32) [MSC v.1500 32 bit  
> (Intel)] on
> win32
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import Ice
>
>
>> O:\omero_dist>echo %Path%
>> C:\Windows\system32\cmd.exe;C:\Program  
>> Files\ZeroC\Ice-3.4.2\bin;C:\Python26;C:\
>> Program  
>> Files\PHP\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Pr
>> ogram Files\Intel\DMIX;C:\Windows\System32\Windows System Resource  
>> Manager\bin;C
>> :\Program Files\MySQL\MySQL Server 5.1\bin;C:\Program Files\Panda  
>> Security\WaAge
>> nt\Common;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\system32\cmd.ex
>> e
>>
>> Can anybody help me with this problem?
>>
>> Thanks in advance,
>> Unai
>
> Regards,
> Blazej
>
> The University of Dundee is a registered Scottish Charity, No: SC015096
>
>







More information about the ome-users mailing list