On 9/15/15 2:05 PM, dewey wrote:

The contents of the full traceback was:


Traceback (most recent call last):

File "/opt/paysys/python/lib/python2.7/site-packages/celery/app/trace.py", line 240, in trace_task

   R = retval = fun(*args, **kwargs)

File "/opt/paysys/python/lib/python2.7/site-packages/celery/app/trace.py", line 438, in __protected_call__

   return self.run(*args, **kwargs)

File "/opt/paysys/builds/20150907103013/source/jobs/spawn.py", line 238, in loaderDaily

   startLoaderViaQueue(jobParams)

File "/opt/paysys/builds/20150907103013/source/jobs/datain/loader.py", line 459, in startViaQueue

   start(**job_params)

File "/opt/paysys/builds/20150907103013/source/jobs/datain/loader.py", line 443, in start

   startLoader(sess, jobArgs)  # , useFileNameForProcessDay=True

File "/opt/paysys/builds/20150907103013/source/jobs/datain/loader.py", line 404, in startLoader

result = endFileProcessingFunc(sess, jobArgs, log, None) # do any final work on the DB

File "/opt/paysys/builds/20150907103013/source/jobs/datain/storage/fixed.py", line 327, in examinerStoreCtrAtts

   cot = sess.query(ContribTitle).get(int(cot_gem_id))

File "/opt/paysys/python/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 840, in get

   return loading.load_on_ident(self, key)

File "/opt/paysys/python/lib/python2.7/site-packages/sqlalchemy/orm/loading.py", line 231, in load_on_ident

   return q.one()

File "/opt/paysys/python/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2395, in one

   ret = list(self)

File "/opt/paysys/python/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2437, in __iter__

   self.session._autoflush()

File "/opt/paysys/python/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 1198, in _autoflush

   self.flush()

File "/opt/paysys/python/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 1919, in flush

   self._flush(objects)

File "/opt/paysys/python/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 2037, in _flush

   transaction.rollback(_capture_exception=True)

File "/opt/paysys/python/lib/python2.7/site-packages/sqlalchemy/util/langhelpers.py", line 63, in __exit__

   compat.reraise(type_, value, traceback)

File "/opt/paysys/python/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 2037, in _flush

   transaction.rollback(_capture_exception=True)

File "/opt/paysys/python/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 403, in rollback

   transaction._rollback_impl()

File "/opt/paysys/python/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 434, in _rollback_impl

   self._restore_snapshot(dirty_only=self.nested)

File "/opt/paysys/python/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 288, in _restore_snapshot

   s._expire(s.dict, self.session.identity_map._modified)

File "/opt/paysys/python/lib/python2.7/site-packages/sqlalchemy/orm/state.py", line 385, in _expire

   if impl.accepts_scalar_loader and \

AttributeError: 'NoneType' object has no attribute 'accepts_scalar_loader'


that element cannot be None, unless something is very broken with the mappings and/or the way the program is being run (e.g. weird things with threads perhaps). Would need to see a reproducing test case (See http://stackoverflow.com/help/mcve).


--
You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscr...@googlegroups.com <mailto:sqlalchemy+unsubscr...@googlegroups.com>. To post to this group, send email to sqlalchemy@googlegroups.com <mailto:sqlalchemy@googlegroups.com>.
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to