Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python - Matplotlib / matplotlib.cbook.TimeoutError: LOCKERROR

I faced this problem when I installed module matplotlib and wrote this code:

import matplotlib.pyplot as plt

And then here is the error:

"matplotlib.cbook.TimeoutError: LOCKERROR: matplotlib is trying to acquire the lock
'C:\\Users\\Андрей\\.matplotlib\\.matplotlib_lock-*'
and has failed. This maybe due to any other process holding this
lock. If you are sure no other matplotlib process is running try
removing these folders and trying again." 

So of course if it can not be imported it can not be used.

like image 868
Андрей Корзин Avatar asked May 02 '18 19:05

Андрей Корзин


1 Answers

Try deleting the folder .matplotlib

for you it is in

C:\Users\Андрей\.matplotlib

Then import the python module.

like image 123
Haxoit Avatar answered Nov 15 '22 12:11

Haxoit