#25714: DatabaseError: DatabaseWrapper objects created in a thread can only be 
used
in that same thread.
-------------------------------------+-------------------------------------
     Reporter:  brian                |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Database layer       |                  Version:  1.8
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by brian):

 From the Debian bug report:

 > I found the origin of the problem: It was the pyjsonrpc library that is
 included into TinycryptoPOS. After I commented out every part of code that
 uses something from pyjsonrpc the error disappeared.
 >
 > You just have to import pyjsonrpc in your Django application without
 using code from it and the error appears... but only on amd64. I have
 verified this with another Django application.
 >
 > I think this is clearly a bug in pyjsonrpc and not a django bug.
 >
 > Thank you for your help and time and also thanks to the people on the
 django mailing list for giving me the hint to the right direction.

 I have looked at pyjsonrpc (download from PyPI, link to github project is
 dead), I am not convinced it could cause this problem. However it uses
 things like gevent and WebSocketClient from ws4py.client.geventclient -
 both of which I haven't used myself, so I might be mistaken.

--
Ticket URL: <https://code.djangoproject.com/ticket/25714#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/063.6eb33295a11d205d4943d7f8a18996a9%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to