We're Hiring!

Import omero.cli error when try to set up server

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.

Import omero.cli error when try to set up server

Postby Aking » Tue Aug 07, 2012 11:12 am

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
Aking
 
Posts: 19
Joined: Tue Aug 07, 2012 10:50 am

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

Postby cxallan » Tue Aug 07, 2012 11:26 am

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
cxallan
Site Admin
 
Posts: 509
Joined: Fri May 01, 2009 8:07 am

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

Postby Aking » Tue Aug 07, 2012 11:53 am

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!
Aking
 
Posts: 19
Joined: Tue Aug 07, 2012 10:50 am

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

Postby Aking » Tue Aug 07, 2012 11:58 am

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.
Aking
 
Posts: 19
Joined: Tue Aug 07, 2012 10:50 am

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

Postby Aking » Tue Aug 07, 2012 12:24 pm

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
Aking
 
Posts: 19
Joined: Tue Aug 07, 2012 10:50 am

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

Postby cxallan » Thu Aug 09, 2012 8:32 am

Absolutely useful, happy to take whatever you've got and integrate it into the public documentation.
cxallan
Site Admin
 
Posts: 509
Joined: Fri May 01, 2009 8:07 am


Return to Installation and Deployment

Who is online

Users browsing this forum: No registered users and 1 guest