I am getting a syntax error when trying to import matplotlib as plt:
python3 sigClassCNN_tensor.py
Traceback (most recent call last):
File "sigClassCNN_tensor.py", line 22, in <module>
import matplotlib.pyplot as plt
File "/usr/lib64/python3.4/site-packages/matplotlib/__init__.py", line 131, in <module>
from matplotlib.rcsetup import defaultParams, validate_backend, cycler
File "/usr/lib64/python3.4/site-packages/matplotlib/rcsetup.py", line 29, in <module>
from matplotlib.fontconfig_pattern import parse_fontconfig_pattern
File "/usr/lib64/python3.4/site-packages/matplotlib/fontconfig_pattern.py", line 22, in <module>
from pyparsing import (Literal, ZeroOrMore, Optional, Regex, StringEnd,
File "/usr/lib/python2.7/site-packages/pyparsing.py", line 2480
except ParseException, err:
I had this code working before.
Not sure what's changed.
How can I fix it?