pombreda / pygowave-server

Automatically exported from code.google.com/p/pygowave-server
Apache License 2.0
0 stars 0 forks source link

db setup fail with Local field 'blip' in class 'InlineBlip' clashes with field of similar name from base class 'Element' #33

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.install pygowave server with Django 1.1.1
2.try to run python manage.py syncdb
3.see the exception below:

 File "manage.py", line 29, in <module>
    execute_manager(settings)           
  File "/usr/lib/python2.6/site-packages/django/core/management/__init__
.py", line 362, in execute_
manager                                                                        
    utility.execute
()                                                                    
  File "/usr/lib/python2.6/site-packages/django/core/management/__init__
.py", line 303, in 
execute                                                                         

    self.fetch_command(subcommand).run_from_argv
(self.argv)                              
  File "/usr/lib/python2.6/site-packages/django/core/management/base.py", 
line 195, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/lib/python2.6/site-packages/django/core/management/base.py", 
line 221, in execute
    self.validate()
  File "/usr/lib/python2.6/site-packages/django/core/management/base.py", 
line 249, in validate
    num_errors = get_validation_errors(s, app)
  File "/usr/lib/python2.6/site-packages/django/core/management/
validation.py", line 28, in get_validation_errors
    for (app_name, error) in get_app_errors().items():
  File "/usr/lib/python2.6/site-packages/django/db/models/loading.py", 
line 131, in get_app_errors
    self._populate()
  File "/usr/lib/python2.6/site-packages/django/db/models/loading.py", 
line 58, in _populate
    self.load_app(app_name, True)
  File "/usr/lib/python2.6/site-packages/django/db/models/loading.py", 
line 74, in load_app
    models = import_module('.models', app_name)
  File "/usr/lib/python2.6/site-packages/django/utils/importlib.py", line 
35, in import_module
    __import__(name)
  File "/srv/http/pygowave_project/pygowave_server/models.py", line 279, 
in <module>
    class InlineBlip(Element):
  File "/usr/lib/python2.6/site-packages/django/db/models/base.py", line 
143, in __new__
    (field.name, name, base.__name__))
django.core.exceptions.FieldError: Local field 'blip' in class 
'InlineBlip' clashes with field of similar name from base class 'Element'

What is the expected output: success db sync

If the issue is related to your own PyGoWave Server installation, what
version of the product are you using: latest available 
On what operating system? Arch linux

Please provide any additional information below.

Django 1.1.1
python 2.6.2
mysql 5.1.37

Original issue reported on code.google.com by guihen.a...@gmail.com on 9 Aug 2009 at 7:16

GoogleCodeExporter commented 9 years ago
I had this issue too on Fedora 11

I "fixed" it by renaming blip to blip1

Original comment by ivan.afo...@gmail.com on 9 Aug 2009 at 8:10

GoogleCodeExporter commented 9 years ago
This is my second pygowave installation. I did not run into this when 
installing on
an Ubuntu 9.04 machine a few weeks ago, but on an 8.04 machine this morning I 
did.
This machine is running python 2.5.2. Will try ivan's suggested work-around...

Original comment by qhart...@gmail.com on 20 Aug 2009 at 6:50

GoogleCodeExporter commented 9 years ago
ok, Ivan's suggested work-around seems to not work. It allows the db to be 
built, but
actually starting the pygowave-rpc and working with waves fails. They may be 
failing
for other reasons, but this error was the first irregularity I ran into on this
installation. Going to attempt to dive deeper into this problem. Any 
suggestions welcome.

Original comment by qhart...@gmail.com on 21 Aug 2009 at 7:06