HeleneMuri / pythonxy

Automatically exported from code.google.com/p/pythonxy
0 stars 0 forks source link

Cannot import pyplot for plotting data. #756

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If relevant, please answer to the following questions:
1. What version of Python(x,y) have you installed?
2.7.6
2. Which components have you installed (Python(x,y) installer:
componentpage):
    a. Have you selected the "Recommended" component selection?
    b. Have you selected the "Full" component selection?Yes
    c. Have you selected manually plugins in the component list?Yes
Whatplugins?matplotlib

3. Have you selected the option "Customize installation directories"?
a. Yes
b. No

4. If the answer to 3. is yes, what installation directories have you
chosen?

5. Where did you install Python(x,y) itself?
    a. default path Yes

6. Have you installed Python(x,y):

    b. For "All users" Yes

7. What is your operating system?

c. Windows 7

8. Is the operating system 64 bit?
a. Yes

9. When you installed Python(x,y), were you logged in as :

b. an administrator of the machine

10. If you are using Windows Vista/7, have you installed Python(x,y):
a. simply by double-clicking on the installer

11. Regarding installed software on your machine, how did you clean your
machine before installing Python(x,y)  (multiple answers are possible):

b. you uninstalled any previous Python distribution (including the
official .msi)
c. you cleaned the Windows registry by removing all Python-related keys

What steps will reproduce the problem?
1.import numpy
2.import matplotlib
3.import matplotlib.pyplot 

What is the expected output? What do you see instead?

I expect it to import pyplot for plotting data. Instead i get this output:
>>> import matplotlib.pyplot as plot

Traceback (most recent call last):
  File "<pyshell#32>", line 1, in <module>
    import matplotlib.pyplot as plot
  File "C:\Python27\lib\site-packages\matplotlib\pyplot.py", line 29, in <module>
    from matplotlib.figure import Figure, figaspect
  File "C:\Python27\lib\site-packages\matplotlib\figure.py", line 36, in <module>
    from matplotlib.axes import Axes, SubplotBase, subplot_class_factory
  File "C:\Python27\lib\site-packages\matplotlib\axes\__init__.py", line 4, in <module>
    from ._subplots import *
  File "C:\Python27\lib\site-packages\matplotlib\axes\_subplots.py", line 10, in <module>
    from matplotlib.axes._axes import Axes
  File "C:\Python27\lib\site-packages\matplotlib\axes\_axes.py", line 18, in <module>
    from matplotlib.cbook import _string_to_bool, mplDeprecation
ImportError: cannot import name _string_to_bool

Please provide any additional information below.
i am trying to follow some versions of the scientific computing documentation 
provided. I cannot load the pyplot module. Sometimes it says No Module Named 
pyplot. 

Original issue reported on code.google.com by Jenkins0...@gmail.com on 31 Oct 2014 at 7:38

GoogleCodeExporter commented 9 years ago
this can happen when packages from several sources are mixed together (xy, 
official, conda etc).

re-install python xy _without_ applying any other packages.

Original comment by grizzly.nyo on 2 Nov 2014 at 8:29

GoogleCodeExporter commented 9 years ago
Thank you! This worked for me. 

Just for future references, what I did based on recommendation:

1. I uninstalled all python packages listed in Software Manager. 

2. Downloaded new copy of Python(x,y)

3. Cleared registry with CCleaner.

4. Installed new copy of Python(x,y). 

5. Works with plotting packages now. 

Original comment by Jenkins0...@gmail.com on 4 Nov 2014 at 3:05