[ome-users] Windows installation error

josh.moore at gmx.de josh.moore at gmx.de
Tue Apr 21 18:18:35 BST 2009


Hi again. (As always, thanks, Mario!)

jtr jacob writes:
 > 
 > 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:

I'm thinking there's been a misunderstanding which we also need to
clear up on the install instructions. Unless you have a particular
need for postgresql from Django, you don't have to change the
DATABASE_* configuration properties. Try with the default values:

# Database settings
DATABASE_ENGINE = 'sqlite3'    # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
DATABASE_NAME = 'db.sqlite3'   # Or path to database file if using sqlite3.
DATABASE_USER = ''             # Not used with sqlite3.
DATABASE_PASSWORD = ''         # Not used with sqlite3.
DATABASE_HOST = ''             # Set to empty string for localhost. Not used with sqlite3.
DATABASE_PORT = ''             # Set to empty string for default. Not used with sqlite3.

and see how things work for you.
~Josh.

 > 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!



More information about the ome-users mailing list