Hi, I downloaded a zip from the master on the github matplotlib repository, when I run: python3 setup.py install
I get several ‘SyntaxError: invalid syntax’ errors which appear to highlight quotes
…
byte-compiling /usr/local/lib/python3.2/site-packages/matplotlib/sphinxext/plot_directive.py to plot_directive.cpython-32.pyc
File “/usr/local/lib/python3.2/site-packages/matplotlib/sphinxext/plot_directive.py”, line 510
exec “import numpy as np\nfrom matplotlib import pyplot as plt\n” in ns
^
SyntaxError: invalid syntax
byte-compiling /usr/local/lib/python3.2/site-packages/matplotlib/backends/backend_svg.py to backend_svg.cpython-32.pyc
File “/usr/local/lib/python3.2/site-packages/matplotlib/backends/backend_svg.py”, line 69
s = s.replace(u"&", u"&")
^
SyntaxError: invalid syntax
…
Full output is here: https://gist.github.com/3656878
I’m running Scientific Linux 5.4 and numpy appears to work ok installed via pip-3.2.
Any ideas?
I build from github.
Hi, I downloaded a zip from the master on the github matplotlib repository, when I run: python3 setup.py install
I get several ‘SyntaxError: invalid syntax’ errors which appear to highlight quotes
…
byte-compiling /usr/local/lib/python3.2/site-packages/matplotlib/sphinxext/plot_directive.py to plot_directive.cpython-32.pyc
File “/usr/local/lib/python3.2/site-packages/matplotlib/sphinxext/plot_directive.py”, line 510
exec “import numpy as np\nfrom matplotlib import pyplot as plt\n” in ns
My install has:
exec(“import numpy as np\nfrom matplotlib import pyplot as plt\n”, ns)
^^ [no in]
^
SyntaxError: invalid syntax
byte-compiling /usr/local/lib/python3.2/site-packages/matplotlib/backends/backend_svg.py to backend_svg.cpython-32.pyc
File “/usr/local/lib/python3.2/site-packages/matplotlib/backends/backend_svg.py”, line 69
s = s.replace(u"&“, u”&")
^
That matches my file, and seems like completely valid syntax. When I copy and execute that text myself, it doesn’t raise an error. However, I think the problem may be that python3 no longer accepts unicode strings.
s = s.replace(“&”, “&”)
···
On Thu, Sep 6, 2012 at 10:35 AM, James Morrison <james.morrison@…287…> wrote:
SyntaxError: invalid syntax
…
Full output is here: https://gist.github.com/3656878
I’m running Scientific Linux 5.4 and numpy appears to work ok installed via pip-3.2.
Any ideas?
Live Security Virtual Conference
Exclusive live event will cover all the ways today’s security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users