qizhiyi / sqlalchemy-migrate

Automatically exported from code.google.com/p/sqlalchemy-migrate
MIT License
0 stars 0 forks source link

Unable to create repository directory without Error : KeyError: '__template_name__' #97

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.  migrate create myrepository "myproject"

What is the expected output? What do you see instead?

[please see the trace back below]

A directory is created [myrepository] but it is missing the manage.py script.
The following files/dirs are found in /myrepository.

__init__.py  __init__.pyc  migrate.cfg  README  /versions

What version of the product are you using? On what operating system?
The following are installed within a virtual environment:
sqlalchemy_migrate-0.6-py2.6.egg  [from, easy_install sqlalchemy-migrate]
SQLAlchemy-0.6.3-py2.6.egg

running on Ubuntu 9.10

Please provide any additional information below.

The error I'm getting:

(tgenv)$ migrate create myrepository "myproject"
Traceback (most recent call last):
  File "/home/../tgenv/bin/migrate", line 8, in <module>
    load_entry_point('sqlalchemy-migrate==0.6', 'console_scripts', 'migrate')()
  File "/home/../tgenv/lib/python2.6/site-packages/sqlalchemy_migrate-0.6-py2.6.egg/migrate/versioning/shell.py", line 203, in main
    ret = command_func(**kwargs)
  File "<string>", line 2, in create
  File "/home/../tgenv/lib/python2.6/site-packages/sqlalchemy_migrate-0.6-py2.6.egg/migrate/versioning/util/__init__.py", line 90, in catch_known_errors
    return f(*a, **kw)
  File "/home/../tgenv/lib/python2.6/site-packages/sqlalchemy_migrate-0.6-py2.6.egg/migrate/versioning/api.py", line 94, in create
    repo_path = Repository.create(repository, name, **opts)
  File "/home/../tgenv/lib/python2.6/site-packages/sqlalchemy_migrate-0.6-py2.6.egg/migrate/versioning/repository.py", line 138, in create
    config_text = cls.prepare_config(tmpl_dir, name, options=opts)
  File "/home/../tgenv/lib/python2.6/site-packages/sqlalchemy_migrate-0.6-py2.6.egg/migrate/versioning/repository.py", line 122, in prepare_config
    del options['__template_name__']
KeyError: '__template_name__'

Original issue reported on code.google.com by Robert.S...@gmail.com on 14 Sep 2010 at 12:29

GoogleCodeExporter commented 8 years ago
What version of Tempita are you using?

Original comment by iElect...@gmail.com on 14 Sep 2010 at 9:30

GoogleCodeExporter commented 8 years ago
I'm closing this one because there is not enough information. Try using tempita 
0.4 and higher. Feel free to open another issue if needed:)

Original comment by iElect...@gmail.com on 5 Feb 2011 at 1:32