Page 1 of 1

Errors at startup

PostPosted: Mon Sep 10, 2012 3:07 pm
by ahar
Hi,
I'm trying to upgrade to the latest version and I think I've done everything I need to but I get the following for all the commands I try e.g. omero admin start, omero admin diagnostics, omero config get
Code: Select all
C:\omero_dist\bin>omero admin start
Error loading: C:\omero_dist\lib\python\omero\plugins\admin.py
Traceback (most recent call last):
  File "C:\omero_dist\lib\python\omero\cli.py", line 1127, in loadpath
    execfile( str(pathobj), loc )
  File "C:\omero_dist\lib\python\omero\plugins\admin.py", line 21, in <module>
    import portalocker
  File "C:\omero_dist\lib\python\portalocker.py", line 69, in <module>
    import win32con
ImportError: No module named win32con
Error loading: C:\omero_dist\lib\python\omero\plugins\node.py
Traceback (most recent call last):
  File "C:\omero_dist\lib\python\omero\cli.py", line 1127, in loadpath
    execfile( str(pathobj), loc )
  File "C:\omero_dist\lib\python\omero\plugins\node.py", line 17, in <module>
    from omero.plugins.admin import AdminControl
  File "C:\omero_dist\lib\python\omero\plugins\admin.py", line 21, in <module>
    import portalocker
  File "C:\omero_dist\lib\python\portalocker.py", line 69, in <module>
    import win32con
ImportError: No module named win32con
Error loading: C:\omero_dist\lib\python\omero\plugins\perf.py
Traceback (most recent call last):
  File "C:\omero_dist\lib\python\omero\cli.py", line 1127, in loadpath
    execfile( str(pathobj), loc )
  File "C:\omero_dist\lib\python\omero\plugins\perf.py", line 17, in <module>
    import omero.install.perf_test as perf_test
  File "C:\omero_dist\lib\python\omero\install\perf_test.py", line 22, in <modul
e>
    import omero.util.temp_files
  File "C:\omero_dist\lib\python\omero\util\temp_files.py", line 18, in <module>

    import portalocker
  File "C:\omero_dist\lib\python\portalocker.py", line 69, in <module>
    import win32con
ImportError: No module named win32con
Error loading: C:\omero_dist\lib\python\omero\plugins\prefs.py
Traceback (most recent call last):
  File "C:\omero_dist\lib\python\omero\cli.py", line 1127, in loadpath
    execfile( str(pathobj), loc )
  File "C:\omero_dist\lib\python\omero\plugins\prefs.py", line 16, in <module>
    import portalocker
  File "C:\omero_dist\lib\python\portalocker.py", line 69, in <module>
    import win32con
ImportError: No module named win32con
usage: C:\omero_dist\bin\\omero [-h] [-v] [-d DEBUG] [--path PATH] [-C]
                                [-s SERVER] [-p PORT] [-g GROUP] [-u USER]
                                [-w PASSWORD] [-k KEY]
                                <subcommand> ...
C:\omero_dist\bin\\omero: error: argument <subcommand>: invalid choice: 'admin'

choose from:
        cecog, chgrp, db, delete, download, export, group, help, hql,
        import, ldap, load, login, logout, quit, script, search, server,
        sessions, shell, testengine, upload, user, version, web

C:\omero_dist\bin>


What have I done wrong now?
Thanks

Re: Errors at startup

PostPosted: Mon Sep 10, 2012 6:30 pm
by jmoore
Nothing should have changed with regard to the win32con requirement between OMERO versions. Do you know why that library isn't currently available? Did you re-install Python as well?

Cheers,
~Josh

Re: Errors at startup

PostPosted: Thu Sep 27, 2012 2:11 pm
by ahar
Hi,
Sorry for not getting back to you.It's working now.
I had Python installed but maybe I used an installer that didn't include the component that was missing or I failed to separately install the thing which provided it - I can't quite tell now that the installation instructions I used have been replaced.

Re: Errors at startup

PostPosted: Thu Sep 27, 2012 2:20 pm
by jmoore
Do you know which instructions you used? Perhaps these from OMERO 4.4.2?

~J.