Page 1 of 1

could not import omero.cli! (DLL load ... error code 193)

PostPosted: Fri Oct 14, 2011 5:15 pm
by dougf
I've downloaded Omero, Ice 3.3.1, Active-Python, PostgreSQL, etc. as called for in
http://www.openmicroscopy.org/site/supp ... ll-windows on my Windows 7
(argh!) system, placing everything where suggested, setting the environment variables,
restarting the system, etc.. I get through most of the instructions, but
receive an error when creating the OMERO database initialization script with
c:\omero_dist> bin\omero db script

It seems that there is a problem with Ice, but I can't determine what it is. The other
problems discussed with non-import of omero.cli don't have this error code (193).

-- doug f

********************************************************************************

ERROR: Could not import omero.cli! (DLL load failed with error code 193)

This means that your installation is incomplete. Contact
the OME mailing lists for more information:

https://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.

********************************************************************************

Debugging Info:
--------------
CWD=C:\omero_dist
VERSION=2.5.6 (r256:88840, Jun 27 2011, 10:23:01) [MSC v.1400 64 bit (AMD64)]
OMERO_HOME=None
PYTHONPATH=['C:\\omero_dist\\lib\\python', 'C:\\omero_dist\\var\\lib', 'C:\\omero_dist\\bin', 'C:\\omero_dist\\lib\\python', 'C:\\Ice-3.3.1\\python', 'C:\\Windows\\system32\\python25.zip', 'C:\\Python25\\DLLs', 'C:\\Python25\\lib', 'C:\\Python25\\lib\\plat-win', 'C:\\Python25\\lib\\lib-tk', 'C:\\Python25', 'C:\\Python25\\lib\\site-packages', 'C:\\omero_dist\\lib\\fallback']

Re: could not import omero.cli! (DLL load ... error code 193

PostPosted: Sat Oct 15, 2011 2:25 pm
by cxallan
The Ice 3.3.1 for Windows builds that we suggest you use must be used with a 32-bit ActiveState Python.

Re: could not import omero.cli! (DLL load ... error code 193

PostPosted: Tue Oct 18, 2011 9:07 pm
by dougf
Thanks. I got a lot further after switching to 32 bit Python. 8)#

I now get an error with access being denied on the
win32service.OpenService(hscm, svc_name, win32service.SC_MANAGER_ALL_ACCESS)
call in admin.py:

C:\omero_dist> bin\omero admin start
No descriptor given using etc\grid\windefault.xml
Traceback (most recent call last):
File "C:\omero_dist\bin\\omero", line 123 in <module>
rv = omero.cli.argv()
File "C:\omero_dist\lib\python\omero\cli.py", line 1172, in argv
stop = self.onecmd(line, previous_args)
File "C:\omero_dist\lib\python\omero\cli.py", line 791, in onecmd
self.execute(line, previous_args)
File "C:\omero_dist\lib\python\omero\cli.py", line 871, in argv
args.func(args)
File "C:\omero_dist\lib\python\omero\plugins\prefs.py", line 67, in open_and_close_config
return func(*args, **kwargs)
File "C:\omero_dist\lib\python\omero\plugins\admin.py", line 417, in start
self.startasync(args, config)
File "C:\omero_dist\lib\python\omero\plugins\prefs.py", line 67, in open_and_close_config
return func(*args, **kwargs)
File "C:\omero_dist\lib\python\omero\plugins\admin.py", line 379, in startasync
output = self._query_service(svc_name)
File "C:\omero_dist\lib\python\omero\plugins\admin.py", line 223, in _query_service
win32service.OpenService(hscm, svc_name, win32service.SC_MANAGER_ALL_ACCESS)
pywintypes.error: (5, 'OpenSCManager', 'Access is denied.')

Re: could not import omero.cli! (DLL load ... error code 193

PostPosted: Wed Oct 19, 2011 11:40 am
by jmoore
Hi Doug,

how have you gone about configuring the rights for the OMERO directory and your current user? I.e. are you running as an administrator? Have you opened the console via "Run as administrator" ? Etc.

Cheers,
~Josh.

Re: could not import omero.cli! (DLL load ... error code 193

PostPosted: Wed Oct 19, 2011 4:10 pm
by dougf
Thanks. I've got it completely installed now.

The MS-DOS window opened during installation had to be opened as an administrator. That was not stated with the "Start the server: " instruction in http://www.openmicroscopy.org/site/supp ... ll-windows . As a number of processes are started during this installation process, it would be useful to specify in the instructions which ones need to be started as administrator.

I'm not sure if it was necessary, but i re-installed everything after switching to the 32-bit Python.

Re: could not import omero.cli! (DLL load ... error code 193

PostPosted: Thu Oct 20, 2011 3:13 pm
by jmoore
Hi Doug,

Thanks for the confirmation. We'll add info on the "Run as administrator" requirement as quickly as possible.

Cheers,
~Josh.

See: https://trac.openmicroscopy.org.uk/ome/ticket/7055