Pyinstaller and matplotlib exceed maximum recursion depth
This is mine that I am using:
- Window distribution Python 3.4.3 "Anaconda 2.2.0 (64-bit)".
- Matplotlib version 1.4.3
- Numpy version 1.6
- Pyinstaller version 3.0.dev0-py3.4
When I try to create a python executable that makes a matplotlib figure, it gives the "max recursion depth". The code I want to compile is:
import matplotlib.pyplot as plt x = [0, 1, 2, 3, 4] y = [0, 1, 4, 9, 16] plt.plot(x, y) plt.show()
I will compile it using:
pyinstaller -F plottest.py
But I am getting the following error:
...
File "C:\Anaconda3\lib\ast.py", line 245, in visit
return visitor(node)
File "C:\Anaconda3\lib\ast.py", line 255, in generic_visit
self.visit(value)
File "C:\Anaconda3\lib\ast.py", line 245, in visit
return visitor(node)
File "C:\Anaconda3\lib\ast.py", line 249, in generic_visit
for field, value in iter_fields(node):
RuntimeError: maximum recursion depth exceeded
The full trace is here: http://pastebin.com/3b62W1Lb
+3
source to share