We're Hiring!

OMERO.cli fails to load with presumably correct PYTHONPATH

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.

OMERO.cli fails to load with presumably correct PYTHONPATH

Postby kmdouglass » Thu Mar 20, 2014 1:23 pm

Hi all,
I am attempting to install the OMERO server on a Windows machine. I am at the step where I must configure the omero.properties file using the batch scripts provided with the server distribution. Unfortunately, I am receiving errors concerning the dll that contains the OMERO.cli module, despite the fact that I have set up the environment variable PYTHONPATH as instructed. The console reports that my OMERO installation is incomplete.

I suspect it might be related to the PYTHONPATH because of this section in the troubleshooting guide: https://www.openmicroscopy.org/site/support/omero5/sysadmins/troubleshooting.html#import-error-when-running-bin-omero

I've included all details, including system setup, software versions, and console output below. I am working in a command prompt with administrator rights. Could anyone point out the mistake I'm making?

Thanks!

Kyle

----------

Code: Select all
C:\OMERO.server>bin\omero config set omero.db.name omero_database
****************************************************************************


        ERROR: Could not import omero.cli! (DLL load failed: The specified modul
e could not be found.)

        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.server
        VERSION=2.7.6 (default, Nov 10 2013, 19:24:24) [MSC v.1500 64 bit (AMD64
)]
        OMERO_HOME=None
        PYTHONPATH=['C:\\OMERO.server\\lib\\python', 'C:\\OMERO.server\\var\\\lib
', 'C:\\OMERO.server\\bin', 'C:\\Python27\\lib\\site-packages\\pillow-2.3.1-py2.
7-win-amd64.egg', 'C:\\OMERO.server\\lib\\python', 'C:\\ZeroC\\Ice-3.4.2\\python
\\x64', 'C:\\OMERO.server', 'C:\\Windows\\system32\\python27.zip', 'C:\\Python27
\\DLLs', 'C:\\Python27\\lib', 'C:\\Python27\\lib\\plat-win', 'C:\\Python27\\lib\
\lib-tk', 'C:\\Python27', 'C:\\Python27\\lib\\site-packages', 'C:\\Python27\\lib
\\site-packages\\win32', 'C:\\Python27\\lib\\site-packages\\win32\\lib', 'C:\\Py
thon27\\lib\\site-packages\\Pythonwin', 'C:\\OMERO.server\\lib\\fallback']


----------

I installed ice at
Code: Select all
C:\ZeroC\Ice-3.4.2


My relevant system environment variables are:
Code: Select all
PYTHONPATH = C:\ZeroC\Ice-3.4.2\python\x64;

PATH = C:\Python27;C:\Program Files (x86)\GnuWin32\bin;%INTEL_DEV_REDIST%redist\ia32\mpirt;%INTEL_DEV_REDIST%redist\ia32\compiler;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft Windows Performance Toolkit\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files (x86)\MiKTeX 2.9\miktex\bin\;C:\Program Files\MATLAB\R2013b\runtime\win64;C:\Program Files\MATLAB\R2013b\bin;C:\ZeroC\Ice-3.4.2\bin\x64;


Strangely, after I attempt to run the script, I get the following output from the console:
Code: Select all
C:\OMERO.server>echo %PYTHONPATH%
C:\OMERO.server\lib\python;C:\ZeroC\Ice-3.4.2\python\x64;


However, if I access my environment variables through the control panel, I don't see the entry about C:\OMERO.server\lib\python.

----------

Software
    OMERO.server 5.0.0-Ice 3.4-b19
    Ice 3.4.2
    JDK 7u51 64 bit
    Python 2.7.6 64 bit
    PostgreSQL 9.3.3 64 bit

Hardware
    Dell Precision T7500
    Windows Server 2008 R2 Enterprise w/Service Pack 1, 64 bit
    Intel Xeon X5690 @ 3.47 GHz (2 processors)
    48.0 GB RAM

----------

Special notes
I was having some issues with the setpythonpath.bat batch file working with directories containing spaces in their names. Specifically, the default install of Ice went to C:\Program Files (x86). I fixed this by installing to a directory with no spaces.
kmdouglass
 
Posts: 17
Joined: Mon Mar 10, 2014 2:00 pm
Location: Lausanne, Switzerland

Re: OMERO.cli fails to load with presumably correct PYTHONPA

Postby manics » Thu Mar 20, 2014 2:30 pm

Hi Kyle

Could you check whether you can load the Ice module in python:
Code: Select all
python -c "import Ice"


Thanks, Simon
User avatar
manics
Team Member
 
Posts: 261
Joined: Mon Oct 08, 2012 11:01 am
Location: Dundee

Re: OMERO.cli fails to load with presumably correct PYTHONPA

Postby kmdouglass » Thu Mar 20, 2014 2:41 pm

Hi Simon,

manics wrote:Hi Kyle

Could you check whether you can load the Ice module in python:
Code: Select all
python -c "import Ice"


Thanks, Simon


No, I cannot load the Ice module.

Code: Select all
C:\OMERO.server>python -c "import Ice"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\ZeroC\Ice-3.4.2\python\x64\Ice.py", line 47, in <module>
    import IcePy
ImportError: DLL load failed: The specified module could not be found.


I'll poke around Ice.py and see if I can find any hints.

Kyle
kmdouglass
 
Posts: 17
Joined: Mon Mar 10, 2014 2:00 pm
Location: Lausanne, Switzerland

Re: OMERO.cli fails to load with presumably correct PYTHONPA

Postby kmdouglass » Thu Mar 20, 2014 2:53 pm

I can also verify that IcePy.pyd exists in C:\ZeroC\Ice-3.4.2\python\x64\.
kmdouglass
 
Posts: 17
Joined: Mon Mar 10, 2014 2:00 pm
Location: Lausanne, Switzerland

Re: OMERO.cli fails to load with presumably correct PYTHONPA

Postby manics » Thu Mar 20, 2014 2:56 pm

I've just noticed you're running Python 2.7.6. The binary distributions of Zeroc Ice are tied to particular versions of Python, Ice 3.4.2 will only work with the 2.6 series: https://www.openmicroscopy.org/site/sup ... 6-or-later

Other than re-compiling Ice from scratch, there's not much we can do about this.

Simon
User avatar
manics
Team Member
 
Posts: 261
Joined: Mon Oct 08, 2012 11:01 am
Location: Dundee

Re: OMERO.cli fails to load with presumably correct PYTHONPA

Postby kmdouglass » Thu Mar 20, 2014 3:09 pm

manics wrote:I've just noticed you're running Python 2.7.6. The binary distributions of Zeroc Ice are tied to particular versions of Python, Ice 3.4.2 will only work with the 2.6 series: https://www.openmicroscopy.org/site/sup ... 6-or-later


Ah, perfect.

I actually misread the title of this section of the install. It says Python 2 (2.6 or later), which I took to mean that 2.7 would work as well :)

Thanks!
kmdouglass
 
Posts: 17
Joined: Mon Mar 10, 2014 2:00 pm
Location: Lausanne, Switzerland


Return to Installation and Deployment

Who is online

Users browsing this forum: No registered users and 1 guest