Discussion:
[Matplotlib-users] ImportError: No module named six
garyr
2015-03-17 17:12:07 UTC
Permalink
I downloaded version 1.4.3 and installed it (i.e., executed
matplotlib-1.4.3.win32-py2.6.exe). Now when I
python rainfallYears.py
Traceback (most recent call last):
File "rainfallYears.py", line 4, in <module>
import matplotlib.pyplot as plt
File "C:\Python26\lib\site-packages\matplotlib\__init__.py", line 105, in
<module>
import six
ImportError: No module named six
Exit code: 1
So then I went back to 1.3.1 and get the same error...
Help!
Paul Hobson
2015-03-17 17:32:59 UTC
Permalink
You need to install the six module, no matter which version of Python you use. 



—
Sent from Mailbox
Post by garyr
I downloaded version 1.4.3 and installed it (i.e., executed
matplotlib-1.4.3.win32-py2.6.exe). Now when I
python rainfallYears.py
File "rainfallYears.py", line 4, in <module>
import matplotlib.pyplot as plt
File "C:\Python26\lib\site-packages\matplotlib\__init__.py", line 105, in
<module>
import six
ImportError: No module named six
Exit code: 1
So then I went back to 1.3.1 and get the same error...
Help!
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Matplotlib-users mailing list
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Benjamin Root
2015-03-17 17:34:50 UTC
Permalink
Chances are, there is some sort of mixup in your installs (as evidenced by
the failure to go back to the previous version). I would try uninstalling
all matplotlib installs, then checking to see if python still sees
matplotlib anywhere (by running the script). It *should* say "No module
named matplotlib" or some such. Once all of that is removed, install
matplotlib again.

Ben Root
Post by garyr
I downloaded version 1.4.3 and installed it (i.e., executed
matplotlib-1.4.3.win32-py2.6.exe). Now when I
python rainfallYears.py
File "rainfallYears.py", line 4, in <module>
import matplotlib.pyplot as plt
File "C:\Python26\lib\site-packages\matplotlib\__init__.py", line 105, in
<module>
import six
ImportError: No module named six
Exit code: 1
So then I went back to 1.3.1 and get the same error...
Help!
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website,
sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for
all
things parallel software development, from weekly thought leadership blogs
to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Matplotlib-users mailing list
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
garyr
2015-03-17 22:11:33 UTC
Permalink
I did as you suggest and got the "No module named matplot lib" message. I
installed version 1.4.3 and got the "no module named six" message. I then
deleted all the matplotlib files once again and installed version 1.3.1 and now
my matplotlib program runs. Is there something else could try?


----- Original Message -----
From: "Benjamin Root" <***@ou.edu>
To: "garyr" <***@fidalgo.net>
Cc: "Matplotlib Users" <Matplotlib-***@lists.sourceforge.net>
Sent: Tuesday, March 17, 2015 10:34 AM
Subject: Re: [Matplotlib-users] ImportError: No module named six
Post by Benjamin Root
Chances are, there is some sort of mixup in your installs (as evidenced by
the failure to go back to the previous version). I would try uninstalling
all matplotlib installs, then checking to see if python still sees
matplotlib anywhere (by running the script). It *should* say "No module
named matplotlib" or some such. Once all of that is removed, install
matplotlib again.
Ben Root
Post by garyr
I downloaded version 1.4.3 and installed it (i.e., executed
matplotlib-1.4.3.win32-py2.6.exe). Now when I
python rainfallYears.py
File "rainfallYears.py", line 4, in <module>
import matplotlib.pyplot as plt
File "C:\Python26\lib\site-packages\matplotlib\__init__.py", line 105, in
<module>
import six
ImportError: No module named six
Exit code: 1
So then I went back to 1.3.1 and get the same error...
Help!
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website,
sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for
all
things parallel software development, from weekly thought leadership blogs
to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Matplotlib-users mailing list
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Benjamin Root
2015-03-18 17:49:54 UTC
Permalink
An important question that I should have asked before. Exactly where did
you get the installer from? That might help us figure out what happened
here.

As for a workaround, if you want to get savy with the command-line, you
could run "pip install six" on the command-line. That should install it for
you, and then you can try installing matplotlib through the executable.
Post by garyr
I did as you suggest and got the "No module named matplot lib" message. I
installed version 1.4.3 and got the "no module named six" message. I then
deleted all the matplotlib files once again and installed version 1.3.1 and now
my matplotlib program runs. Is there something else could try?
----- Original Message -----
Sent: Tuesday, March 17, 2015 10:34 AM
Subject: Re: [Matplotlib-users] ImportError: No module named six
Post by Benjamin Root
Chances are, there is some sort of mixup in your installs (as evidenced
by
Post by Benjamin Root
the failure to go back to the previous version). I would try uninstalling
all matplotlib installs, then checking to see if python still sees
matplotlib anywhere (by running the script). It *should* say "No module
named matplotlib" or some such. Once all of that is removed, install
matplotlib again.
Ben Root
Post by garyr
I downloaded version 1.4.3 and installed it (i.e., executed
matplotlib-1.4.3.win32-py2.6.exe). Now when I
python rainfallYears.py
File "rainfallYears.py", line 4, in <module>
import matplotlib.pyplot as plt
File "C:\Python26\lib\site-packages\matplotlib\__init__.py", line
105, in
Post by Benjamin Root
Post by garyr
<module>
import six
ImportError: No module named six
Exit code: 1
So then I went back to 1.3.1 and get the same error...
Help!
------------------------------------------------------------------------------
Post by Benjamin Root
Post by garyr
Dive into the World of Parallel Programming The Go Parallel Website,
sponsored
by Intel and developed in partnership with Slashdot Media, is your hub
for
Post by Benjamin Root
Post by garyr
all
things parallel software development, from weekly thought leadership
blogs
Post by Benjamin Root
Post by garyr
to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Matplotlib-users mailing list
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website,
sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for
all
things parallel software development, from weekly thought leadership blogs
to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Matplotlib-users mailing list
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
garyr
2015-03-19 02:11:28 UTC
Permalink
----- Original Message -----
From: "Benjamin Root" <***@ou.edu>
To: "garyr" <***@fidalgo.net>
Cc: "Matplotlib Users" <Matplotlib-***@lists.sourceforge.net>
Sent: Wednesday, March 18, 2015 10:49 AM
Subject: Re: [Matplotlib-users] ImportError: No module named six
Post by Benjamin Root
An important question that I should have asked before. Exactly where did
you get the installer from? That might help us figure out what happened
here.
From here: http://matplotlib.org/downloads.html
I installed six and all is well now, my program runs with Python 1.4.3
installed.

Many thanks for your help
Gary
Post by Benjamin Root
As for a workaround, if you want to get savy with the command-line, you
could run "pip install six" on the command-line. That should install it for
you, and then you can try installing matplotlib through the executable.
Post by garyr
I did as you suggest and got the "No module named matplot lib" message. I
installed version 1.4.3 and got the "no module named six" message. I then
deleted all the matplotlib files once again and installed version 1.3.1 and now
my matplotlib program runs. Is there something else could try?
----- Original Message -----
Sent: Tuesday, March 17, 2015 10:34 AM
Subject: Re: [Matplotlib-users] ImportError: No module named six
Post by Benjamin Root
Chances are, there is some sort of mixup in your installs (as evidenced
by
Post by Benjamin Root
the failure to go back to the previous version). I would try uninstalling
all matplotlib installs, then checking to see if python still sees
matplotlib anywhere (by running the script). It *should* say "No module
named matplotlib" or some such. Once all of that is removed, install
matplotlib again.
Ben Root
Post by garyr
I downloaded version 1.4.3 and installed it (i.e., executed
matplotlib-1.4.3.win32-py2.6.exe). Now when I
python rainfallYears.py
File "rainfallYears.py", line 4, in <module>
import matplotlib.pyplot as plt
File "C:\Python26\lib\site-packages\matplotlib\__init__.py", line
105, in
Post by Benjamin Root
Post by garyr
<module>
import six
ImportError: No module named six
Exit code: 1
So then I went back to 1.3.1 and get the same error...
Help!
------------------------------------------------------------------------------
Post by Benjamin Root
Post by garyr
Dive into the World of Parallel Programming The Go Parallel Website,
sponsored
by Intel and developed in partnership with Slashdot Media, is your hub
for
Post by Benjamin Root
Post by garyr
all
things parallel software development, from weekly thought leadership
blogs
Post by Benjamin Root
Post by garyr
to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Matplotlib-users mailing list
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website,
sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for
all
things parallel software development, from weekly thought leadership blogs
to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Matplotlib-users mailing list
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Loading...