Page 1 of 1

Import omero.cli error when try to set up server

PostPosted: Tue Aug 07, 2012 11:12 am
by Aking
Hi,
Could anyone help me troubleshoot set up of omero on Windows 7 Pro 64bit or is it only Windows Server 2008 that is recommended?
Thanks in advance
Andy

I've used the guide on http://www.openmicroscopy.org/site/supp ... ll-windows.
with OMERO.server-4.4.1-ice34-b3035. I get the following error on running bin\omero

c:\Omero_dist>bin\omero
********************************************************************************


ERROR: Could not import omero.cli! (No module named omero.cli)

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.

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


Debugging Info:
--------------
CWD=c:\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=['c:\\Omero_dist\\lib\\python', 'c:\\Omero_dist\\var\\lib', '
c:\\Omero_dist\\bin', 'c:\\Omero_dist\\lib\\python', 'C:\\Ice3.4.2\\python', 'c:
\\Omero_dist', 'C:\\Windows\\system32\\python26.zip', 'C:\\Python26\\DLLs', 'C:\
\Python26\\lib', 'C:\\Python26\\lib\\plat-win', 'C:\\Python26\\lib\\lib-tk', 'C:
\\Python26', 'C:\\Python26\\lib\\site-packages', 'C:\\Python26\\lib\\site-packag
es\\PIL', 'C:\\Python26\\lib\\site-packages\\win32', 'C:\\Python26\\lib\\site-pa
ckages\\win32\\lib', 'C:\\Python26\\lib\\site-packages\\Pythonwin', 'c:\\Omero_d
ist\\lib\\fallback']


c:\Omero_dist> python -c "import Ice; print Ice.stringVersion()"
3.4.2

Re: Import omero.cli error when try to set up server

PostPosted: Tue Aug 07, 2012 11:26 am
by cxallan
Odd one. What happens if you run the following in a Python interpreter?

Code: Select all
import sys
sys.path.append('C:\\Omero_dist\\lib\\python')
import omero.cli

Re: Import omero.cli error when try to set up server

PostPosted: Tue Aug 07, 2012 11:53 am
by Aking
I get:
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 sys
>>> sys.path.append('C\\Omero_dist\\lib\\python')
>>> import omero.cli
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named omero.cli
>>>

Thanks for the prompt response!

Re: Import omero.cli error when try to set up server

PostPosted: Tue Aug 07, 2012 11:58 am
by Aking
Just checked the unzipped folder for the python folder and versus the zipped version and its only got part of the content for some reason I'll fix that and let you know if it works.

Re: Import omero.cli error when try to set up server

PostPosted: Tue Aug 07, 2012 12:24 pm
by Aking
Well unsurprisingly having the files required actually helps it work! No idea how only half of it got extracted from the zip. Apologies for wasting your time.
I came across some file permissions issues setting up. I'd be happy to write up the solutions I found from googling around if you think it would be useful for other people installing on Windows.
Cheers
Andy

Re: Import omero.cli error when try to set up server

PostPosted: Thu Aug 09, 2012 8:32 am
by cxallan
Absolutely useful, happy to take whatever you've got and integrate it into the public documentation.