This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mohantys
Recipients mohantys
Date 2019-05-22.21:45:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1558561530.97.0.560332207187.issue37016@roundup.psfhosted.org>
In-reply-to
Content
Hello,
I am trying to open a pickled file and load it in my python file.

This python file will be called from a c++ program. Please find the C++ program attached.  

Py_Initialize and Py_Finalize are being done in a separate file called pyhelper.hpp

Python code :

def test():
    print("In function test of pyemb.py file \n")    
    import pickle
    with open('filepath', 'rb') as f_in:
        C = pickle.load(f_in)

I am getting the following error and cant find any way to fix it:

Exception ignored in: <module 'threading' from 'C:\\Anaconda3\\envs\\Deep_Learning\\lib\\threading.py'>
Traceback (most recent call last):
  File "C:\Anaconda3\envs\Deep_Learning\lib\threading.py", line 1289, in _shutdown
    assert tlock.locked()
SystemError: <built-in method locked of _thread.lock object at 0x000002328D1EAAA8> returned a result with an error set
History
Date User Action Args
2019-05-22 21:45:30mohantyssetrecipients: + mohantys
2019-05-22 21:45:30mohantyssetmessageid: <1558561530.97.0.560332207187.issue37016@roundup.psfhosted.org>
2019-05-22 21:45:30mohantyslinkissue37016 messages
2019-05-22 21:45:30mohantyscreate