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

Terry Reedy tjreedy at udel.edu
Thu Dec 21 15:27:09 EST 2017


On 12/21/2017 8:11 AM, Winston Manuel Vijay wrote:
> Hi,
> 
> 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 g2p.exe by downloading from GitHub
> 
> Ø  Then tried running the below command-
> 
> g2p-seq2seq --interactive --model <model_folder_path> (model_folder_path: is the path to an English model 2-layer LSTM with 512 hidden units CMU Sphinx dictionary downloaded from the CMU Sphinx website)
> 
> Following the above procedure, I encountered the following error: TypeError: can’t pickle _thread.lock objects-please find the attached screenshot for your reference.

This is a text-only mailing list.  One should copy and paste an entire 
traceback.

That said, if Tensorflow or g2p are trying to pickle something that 
cannot be pickled, you would likely do better directing your inquiry to 
the authors.

If you possible can, omit the following nonsensical garbage.  When you 
submit to a public list like python-list, anyone in the world is an 
intended recipient and you implicitly authorize all of the listed 
activities.  If you do not want that, don't submit.

> ________________________________
> 
> This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. This email is sent for the intended recipient(s) only. If by an addressing or transmission error, this mail has been misdirected to you, you are requested to delete this mail immediately. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful. Where permitted by applicable law, this e-mail and other e-mail communications sent to and from GSR e-mail addresses may be monitored.
> 


-- 
Terry Jan Reedy





More information about the Python-list mailing list