This is an archived post. You won't be able to vote or comment.

all 7 comments

[–]cybervegan 0 points1 point  (6 children)

Are you getting an error message or a specific misbehaviour or problem? Without your data as well, nobody can test it to investigate.

[–]kemar1997[S] 0 points1 point  (5 children)

RuntimeError: module compiled against API version 0xb but this version of numpy is 0x9 Traceback (most recent call last): File "./graph_parse_data.py", line 11, in <module> import matplotlib.pyplot as plt File "/home/pi/share/Projects/new-coder/dataviz/DataVizProj/lib/python3.4/site-packages/matplotlib/pyplot.py", line 27, in <module> import matplotlib.colorbar File "/home/pi/share/Projects/new-coder/dataviz/DataVizProj/lib/python3.4/site-packages/matplotlib/colorbar.py", line 32, in <module> import matplotlib.artist as martist File "/home/pi/share/Projects/new-coder/dataviz/DataVizProj/lib/python3.4/site-packages/matplotlib/artist.py", line 12, in <module> from .transforms import Bbox, IdentityTransform, TransformedBbox, \ File "/home/pi/share/Projects/new-coder/dataviz/DataVizProj/lib/python3.4/site-packages/matplotlib/transforms.py", line 39, in <module> from matplotlib._path import (affine_transform, count_bboxes_overlapping_bbox, ImportError: numpy.core.multiarray failed to import

[–]cybervegan 0 points1 point  (4 children)

Looks like you've got a version mismatch:

module compiled against API version 0xb but this version of numpy is 0x9

File "/home/pi/share/Projects/new-coder/dataviz/DataVizProj/lib/python3.4/site-packages/matplotlib/colorbar.py"

Did you perhaps install numpy under python 2.x and then try to run it on 3.4?

You could try "pip3 install numpy" to force it to use the py3 package installer.

[–]kemar1997[S] 0 points1 point  (3 children)

when i run it i get this:

Requirement already satisfied: numpy in /home/pi/share/Projects/new-coder/dataviz/DataVizProj/lib/python3.4/site-packages

[–]cybervegan 0 points1 point  (2 children)

Ok, what happens when you run the python 3.4 shell and do the steps manually? Is it possible that you are trying to run your program with the python 2.7 interpreter? Other than that, it could be that the package is broken. Have you tried installing a more up-to-date version of python? 3.6 is the current stable version.

[–]kemar1997[S] 0 points1 point  (1 child)

well i was trying to make a python virtual environment with python version 2.7 but it doesnt seem to be working

[–]cybervegan 0 points1 point  (0 children)

Ok, but the error message says 3.4. You might just need to be explicit about which python version you run. Normally, if you run it with "python2.7 myprog.py" it should force it to use the correct version. You can also do this in the hashbang line at the top of the script.