We're Hiring!

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

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.

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

Postby dougf » Fri Oct 14, 2011 5:15 pm

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']
dougf
 
Posts: 3
Joined: Thu Oct 13, 2011 8:07 pm

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

Postby cxallan » Sat Oct 15, 2011 2:25 pm

The Ice 3.3.1 for Windows builds that we suggest you use must be used with a 32-bit ActiveState Python.
cxallan
Site Admin
 
Posts: 509
Joined: Fri May 01, 2009 8:07 am

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

Postby dougf » Tue Oct 18, 2011 9:07 pm

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.')
dougf
 
Posts: 3
Joined: Thu Oct 13, 2011 8:07 pm

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

Postby jmoore » Wed Oct 19, 2011 11:40 am

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.
User avatar
jmoore
Site Admin
 
Posts: 1591
Joined: Fri May 22, 2009 1:29 pm
Location: Germany

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

Postby dougf » Wed Oct 19, 2011 4:10 pm

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.
dougf
 
Posts: 3
Joined: Thu Oct 13, 2011 8:07 pm

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

Postby jmoore » Thu Oct 20, 2011 3:13 pm

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
User avatar
jmoore
Site Admin
 
Posts: 1591
Joined: Fri May 22, 2009 1:29 pm
Location: Germany


Return to Installation and Deployment

Who is online

Users browsing this forum: No registered users and 1 guest