acangiani / django-tagging

Automatically exported from code.google.com/p/django-tagging
Other
1 stars 0 forks source link

problem running manage.py syncdb #205

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Following the steps in
(http://django-tagging.googlecode.com/svn/trunk/docs/overview.txt) "Using
Django Tagging in your applications" problem when running the command
manage.py syncdb.

trace:

C:\wamp\www\esticate>manage.py syncdb
Traceback (most recent call last):
  File "C:\wamp\www\esticate\manage.py", line 11, in <module>
    execute_manager(settings)
  File "C:\Python25\lib\site-packages\django\core\management\__init__.py",
line 340, in execute_manager
    utility.execute()
  File "C:\Python25\lib\site-packages\django\core\management\__init__.py",
line 295, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "C:\Python25\lib\site-packages\django\core\management\base.py", line
192, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "C:\Python25\lib\site-packages\django\core\management\base.py", line
218, in execute
    self.validate()
  File "C:\Python25\lib\site-packages\django\core\management\base.py", line
246, in validate
    num_errors = get_validation_errors(s, app)
  File
"C:\Python25\lib\site-packages\django\core\management\validation.py", line
28, in get_validation_errors
    for (app_name, error) in get_app_errors().items():
  File "C:\Python25\lib\site-packages\django\db\models\loading.py", line
128, in get_app_errors
    self._populate()
  File "C:\Python25\lib\site-packages\django\db\models\loading.py", line
57, in _populate
    self.load_app(app_name, True)
  File "C:\Python25\lib\site-packages\django\db\models\loading.py", line
72, in load_app
    mod = __import__(app_name, {}, {}, ['models'])
  File "C:\Python25\lib\site-packages\tagging\models.py", line 9, in <module>
    from tagging.managers import TagManager, TaggedItemManager
  File "C:\Python25\lib\site-packages\tagging\managers.py", line 6, in <module>
    from django.db.models.query import QuerySet, parse_lookup
ImportError: cannot import name parse_lookup

Original issue reported on code.google.com by thepan...@gmail.com on 11 Jul 2009 at 2:32

GoogleCodeExporter commented 9 years ago
Ok, making a good checkout, now syncdb creates the tables.

now output error is:

C:\wamp\www\esticate>manage.py syncdb

Creating table tagging_tag
Creating table tagging_taggeditem

Traceback (most recent call last):
  File "C:\wamp\www\esticate\manage.py", line 11, in <module>
    execute_manager(settings)
  File "C:\Python25\lib\site-packages\django\core\management\__init__.py", line 340,
in execute_manager
    utility.execute()
  File "C:\Python25\lib\site-packages\django\core\management\__init__.py", line 295,
in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "C:\Python25\lib\site-packages\django\core\management\base.py", line 192, in
run_from_argv
    self.execute(*args, **options.__dict__)
  File "C:\Python25\lib\site-packages\django\core\management\base.py", line 219, in
execute
    output = self.handle(*args, **options)
  File "C:\Python25\lib\site-packages\django\core\management\base.py", line 348, in
handle
    return self.handle_noargs(**options)
  File "C:\Python25\lib\site-packages\django\core\management\commands\syncdb.py",
line 80, in handle_noargs
    cursor.execute(statement)
  File "C:\Python25\lib\site-packages\django\db\backends\util.py", line 19, in execute
    return self.cursor.execute(sql, params)
  File "C:\Python25\lib\site-packages\django\db\backends\mysql\base.py", line 83, in
execute
    return self.cursor.execute(query, args)
  File "C:\Python25\lib\site-packages\MySQLdb\cursors.py", line 166, in execute
    self.errorhandler(self, exc, value)
  File "C:\Python25\lib\site-packages\MySQLdb\connections.py", line 35, in
defaulterrorhandler
    raise errorclass, errorvalue
_mysql_exceptions.OperationalError: (1005, "Can't create table
'.\\esticate\\#sql-174_104.frm' (errno: 150)")

Original comment by thepan...@gmail.com on 11 Jul 2009 at 3:08

GoogleCodeExporter commented 9 years ago
I suspect something wonky is going in your setup. Start fresh and try using 
0.3. Report a new issue if you 
experience issues.

Original comment by bros...@gmail.com on 23 Aug 2009 at 5:10