Site Network:

problem creating the database

When I am running the folowing command. I face below error and database is not created.

 

Could you please tell me what exactly is the problem?

C:\ProjectHQ>paster setup-app config.ini
C:\Python26\lib\site-packages\sqlalchemy-0.6beta3-py2.6.egg\sqlalchemy\types.py:
486: SADeprecationWarning: The Binary type has been renamed to LargeBinary.
  return typeobj()
Running setup_config() from projecthq.websetup
Traceback (most recent call last):
  File "C:\Python26\Scripts\paster-script.py", line 9, in <module>
    load_entry_point('pastescript==1.7.3', 'console_scripts', 'paster')()
  File "C:\Python26\lib\site-packages\pastescript-1.7.3-py2.6.egg\paste\script\c
ommand.py", line 84, in run
    invoke(command, command_name, options, args[1:])
  File "C:\Python26\lib\site-packages\pastescript-1.7.3-py2.6.egg\paste\script\c
ommand.py", line 123, in invoke
    exit_code = runner.run(args)
  File "C:\Python26\lib\site-packages\pastescript-1.7.3-py2.6.egg\paste\script\a
ppinstall.py", line 68, in run
    return super(AbstractInstallCommand, self).run(new_args)
  File "C:\Python26\lib\site-packages\pastescript-1.7.3-py2.6.egg\paste\script\c
ommand.py", line 218, in run
    result = self.command()
  File "C:\Python26\lib\site-packages\pastescript-1.7.3-py2.6.egg\paste\script\a
ppinstall.py", line 456, in command
    self, config_file, section, self.sysconfig_install_vars(installer))
  File "C:\Python26\lib\site-packages\pastescript-1.7.3-py2.6.egg\paste\script\a
ppinstall.py", line 598, in setup_config
    mod.setup_app, command, filename, section, vars)
  File "C:\Python26\lib\site-packages\pastescript-1.7.3-py2.6.egg\paste\script\a
ppinstall.py", line 612, in _call_setup_app
    func(command, conf, vars)
  File "C:\Python26\lib\site-packages\projecthq-0.1.3dev-py2.6.egg\projecthq\web
setup.py", line 31, in setup_app
    load_environment(conf.global_conf, conf.local_conf)
  File "C:\Python26\lib\site-packages\projecthq-0.1.3dev-py2.6.egg\projecthq\con
fig\environment.py", line 64, in load_environment
    engine = engine_from_config(config, 'sqlalchemy.')
  File "C:\Python26\lib\site-packages\sqlalchemy-0.6beta3-py2.6.egg\sqlalchemy\e
ngine\__init__.py", line 255, in engine_from_config
    return create_engine(url, **opts)
  File "C:\Python26\lib\site-packages\sqlalchemy-0.6beta3-py2.6.egg\sqlalchemy\e
ngine\__init__.py", line 237, in create_engine
    return strategy.create(*args, **kwargs)
  File "C:\Python26\lib\site-packages\sqlalchemy-0.6beta3-py2.6.egg\sqlalchemy\e
ngine\strategies.py", line 60, in create
    dbapi = dialect_cls.dbapi(**dbapi_args)
  File "C:\Python26\lib\site-packages\sqlalchemy-0.6beta3-py2.6.egg\sqlalchemy\d
ialects\mysql\mysqldb.py", line 101, in dbapi
    return __import__('MySQLdb')
ImportError: No module named MySQLdb

 

Re: problem creating the database

You need to install the MySQLdb module.

easy_install MySQL-python