Re: Regarding the error: TypeError: can�t pickle _thread.lock objects

2018-01-04 Thread dieter
Winston Manuel Vijay writes: > It would be of immense help, if someone could provide a suitable solution or > related information that helps to sort out the below stated issue- > > > Ø I had installed the Python version 3.6.4 > > Ø Then I installed the package: Tensorflow > > Ø Installed g

Re: Problems with imports on multiple threads, with embedded Python

2018-01-04 Thread dieter
geoff.ba...@gmail.com writes: > I have a multithreaded application using an embedded Python 3.6.4 (upgraded > from 3.6.2 today in the hope that the problem was now solved: it doesn't seem > to be). The standard library is in a zip file. So long as only one thread is > running Python at a time i

Re: Progress migrating cffi and pycparser to libclang

2018-01-04 Thread Paul Moore
On 4 January 2018 at 21:02, Etienne Robillard wrote: >> As a fork/extension for cffi, I have no particular opinion (I'm >> unlikely to ever use it). But the advantage of pycparser is that it's >> cross-platform and pure Python, so I doubt this will be acceptable for >> inclusion into CFFI itself.

Re: Progress migrating cffi and pycparser to libclang

2018-01-04 Thread Etienne Robillard
Hi Paul, Le 2018-01-04 à 06:41, Paul Moore a écrit : Presumably that will introduce a dependency on some clang module? You mention clang.cindex - but the only clang package I can find on PyPI says "OBSOLETE. LLVM-CLANG NOW PUBLISHES PYTHON PACKAGE. JUST ADD THE OFFICIAL llvm-3.7 repo in your ap

Re: Progress migrating cffi and pycparser to libclang

2018-01-04 Thread Paul Moore
On 4 January 2018 at 09:50, Etienne Robillard wrote: > Hi, > > I will be creating a repository for this: > https://bitbucket.org/tkadm30/cffi-libclang > > The goal is to generate a AST object from a C header by preprocessing with > clang -E then compile the python bindings with CFFI... > > ffi.cde

Progress migrating cffi and pycparser to libclang

2018-01-04 Thread Etienne Robillard
Hi, I will be creating a repository for this: https://bitbucket.org/tkadm30/cffi-libclang The goal is to generate a AST object from a C header by preprocessing with clang -E then compile the python bindings with CFFI... ffi.cdef(open('uwsgi.h').read()) # <-- XXX need to modify internal par