[ome-users] Windows installation error

Aleksandra Tarkowska aleksandrat at lifesci.dundee.ac.uk
Tue Apr 21 18:25:31 BST 2009


Hi 

OMERO.web works with SQLite database as default. If you are using Python 2.4, you will need pysqlite. Use version 2.0.3 or higher. Python 2.5 ships with an SQLite wrapper in the standard library, so you do not need to install anything extra in that case. 


Your settings.py contains wrong database details. They need to define OMERO.web local database, not OMERO one. You don't need to modify them unless you wish to work with different one. If you want to do it please follow the instruction on http://docs.djangoproject.com/en/1.0/topics/install/#get-your-database-running

Thanks
Ola
  ----- Original Message ----- 
  From: jtr jacob 
  To: mvalle at cscs.ch ; ome-users at lists.openmicroscopy.org.uk 
  Sent: Tuesday, April 21, 2009 5:53 PM
  Subject: Re: [ome-users] Windows installation error


  Thanks! That helped. The online documentation needs to be updated to say that for newbies like me. I went ahead with the Django web server installation and got this error when running python manage.py syncdb:

  Traceback (most recent call last):
    File "manage.py", line 108, in <module>
      execute_manager(settings)
    File "C:\omero_dist\lib\python\django\core\management\__init__.py", line 340, in execute_manager
      utility.execute()
    File "C:\omero_dist\lib\python\django\core\management\__init__.py", line 295, in execute
      self.fetch_command(subcommand).run_from_argv(self.argv)
    File "C:\omero_dist\lib\python\django\core\management\base.py", line 77, in run_from_argv
      self.execute(*args, **options.__dict__)
    File "C:\omero_dist\lib\python\django\core\management\base.py", line 87, in execute
      translation.activate('en-us')
    File "C:\omero_dist\lib\python\django\utils\translation\__init__.py", line 73, in activate
      return real_activate(language)
    File "C:\omero_dist\lib\python\django\utils\translation\__init__.py", line 43, in delayed_loader
      return g['real_%s' % caller](*args, **kwargs)
    File "C:\omero_dist\lib\python\django\utils\translation\trans_real.py", line 209, in activate
      _active[currentThread()] = translation(language)
    File "C:\omero_dist\lib\python\django\utils\translation\trans_real.py", line 198, in translation
      default_translation = _fetch(settings.LANGUAGE_CODE)
    File "C:\omero_dist\lib\python\django\utils\translation\trans_real.py", line 181, in _fetch
      app = getattr(__import__(appname[:p], {}, {}, [appname[p+1:]]), appname[p+1:])
    File "C:\omero_dist\lib\python\django\contrib\admin\__init__.py", line 1, in <module>
      from django.contrib.admin.options import ModelAdmin, HORIZONTAL, VERTICAL
    File "C:\omero_dist\lib\python\django\contrib\admin\options.py", line 5, in <module>
      from django.contrib.contenttypes.models import ContentType
    File "C:\omero_dist\lib\python\django\contrib\contenttypes\models.py", line 1, in <module>
      from django.db import models
    File "C:\omero_dist\lib\python\django\db\__init__.py", line 16, in <module>
      backend = __import__('%s%s.base' % (_import_path, settings.DATABASE_ENGINE), {}, {}, [''])
    File "C:\omero_dist\lib\python\django\db\backends\postgresql\base.py", line 19, in <module>
      raise ImproperlyConfigured("Error loading psycopg module: %s" % e)
  django.core.exceptions.ImproperlyConfigured: Error loading psycopg module: No module named psycopg

  My settings.py are as follows:
  # Database settings
  DATABASE_ENGINE = 'postgresql'    
  DATABASE_NAME = ''   
  DATABASE_USER = 'omero'             
  DATABASE_PASSWORD = 'omero'         
  DATABASE_HOST = ''            
  DATABASE_PORT = '5432'           

  # Test database name
  TEST_DATABASE_NAME = ''

  Thanks for your help again!

  > Date: Tue, 21 Apr 2009 18:18:16 +0200
  > From: mvalle at cscs.ch
  > To: jtrjacob at hotmail.com
  > Subject: Re: [ome-users] Windows installation error
  > 
  > Do you have defined
  > PYTHONPATH=/Users/mvalle/Ice-3.3.0/py/python:/omero-4.0.1/dist/lib/python
  > to contain the Ice python directory (see above)?
  > Hope it helps
  > mario
  > 
  > jtr jacob wrote:
  > > Hi,
  > > I have been following the instructions to install OME server on a 
  > > Windows box. I got all the pre-req and pre-install done. I have used all 
  > > the default settings. However, when I come to initialize the OME 
  > > database, I get this error when running| bin\omero db script
  > > Traceback (most recent call last):
  > > File "bin\omero", line 67, in <module>
  > > import omero.cli
  > > File "C:\omero_dist\lib\python\omero\__init__.py", line 14, in <module>
  > > import Ice, Glacier2
  > > ImportError: No module named Ice
  > > 
  > > I have tried restarting the machine, re-copying omero_dist etc. The 
  > > error seems to stay put. One of the causes could be that I had 
  > > ActivePython 2.6 running, which I deleted and went back to 2.5.4... and 
  > > then rebooted the machine. Didn't seem to make a difference
  > > 
  > > Appreciate if you can suggest me some directions to troubleshoot
  > > Thanks!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-users/attachments/20090421/ea10ca4e/attachment.html>


More information about the ome-users mailing list