Warning from warnings module File Python26 lib site-packages sqlalchem

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Warning (from warnings module):
File "C:\Python26\lib\site-packages\sqlalchemy\ext\declarative.py", line 546
_as_declarative(cls, classname, dict_)
SAWarning: Ignoring declarative-like tuple value of attribute surname: possibly a copy-and-paste error with a comma left at the end of the line?
Warning (from warnings module):
File "C:\Python26\lib\site-packages\sqlalchemy\ext\declarative.py", line 546
_as_declarative(cls, classname, dict_)
SAWarning: Ignoring declarative-like tuple value of attribute name: possibly a copy-and-paste error with a comma left at the end of the line?
Warning (from warnings module):
File "C:\Python26\lib\site-packages\sqlalchemy\ext\declarative.py", line 546
_as_declarative(cls, classname, dict_)
SAWarning: Ignoring declarative-like tuple value of attribute cell: possibly a copy-and-paste error with a comma left at the end of the line?
Warning (from warnings module):
File "C:\Python26\lib\site-packages\sqlalchemy\ext\declarative.py", line 546
_as_declarative(cls, classname, dict_)
SAWarning: Ignoring declarative-like tuple value of attribute title: possibly a copy-and-paste error with a comma left at the end of the line?
Warning (from warnings module):
File "C:\Python26\lib\site-packages\sqlalchemy\ext\declarative.py", line 546
_as_declarative(cls, classname, dict_)
SAWarning: Ignoring declarative-like tuple value of attribute id: possibly a copy-and-paste error with a comma left at the end of the line?
Traceback (most recent call last):
File "C:\Documents and Settings\mikhail\Desktop\Progetto Vivaio\core\models.py", line 28, in <module>
class Job(Base):
File "C:\Python26\lib\site-packages\sqlalchemy\ext\declarative.py", line 546, in __init__
_as_declarative(cls, classname, dict_)
File "C:\Python26\lib\site-packages\sqlalchemy\ext\declarative.py", line 539, in _as_declarative
cls.__mapper__ = mapper_cls(cls, table, properties=our_stuff, **mapper_args)
File "C:\Python26\lib\site-packages\sqlalchemy\orm\__init__.py", line 752, in mapper
return Mapper(class_, local_table, *args, **params)
File "C:\Python26\lib\site-packages\sqlalchemy\orm\mapper.py", line 199, in __init__
self._configure_pks()
File "C:\Python26\lib\site-packages\sqlalchemy\orm\mapper.py", line 438, in _configure_pks
"key columns for mapped table '%s'" % (self, self.mapped_table.description))
ArgumentError: Mapper Mapper|Job|jobs could not assemble any primary key columns for mapped table 'jobs'