Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #103242
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2016-02-19 23:42 -0800 |
| Message-ID | <1751492a-45ae-422d-8819-17de767a94c4@googlegroups.com> (permalink) |
| Subject | [newbie] Problem with matplotlib |
| From | jenswaelkens@gmail.com |
When I use either of the following commands I get an error for which I don't have a solution, could someone here help me further?
These are the commands:
import matplotlib.pyplot as plt
or
from matplotlib.pyplot import pyplot as plt
This is the error I get:
Traceback (most recent call last):
File "/home/waelkens/matplotlibdemo.py", line 2, in <module>
from matplotlib.pyplot import pyplot as plt
File "/usr/lib/python2.7/dist-packages/matplotlib/pyplot.py", line 27, in <module>
import matplotlib.colorbar
File "/usr/lib/python2.7/dist-packages/matplotlib/colorbar.py", line 36, in <module>
import matplotlib.contour as contour
File "/usr/lib/python2.7/dist-packages/matplotlib/contour.py", line 17, in <module>
import matplotlib.ticker as ticker
File "/usr/lib/python2.7/dist-packages/matplotlib/ticker.py", line 152, in <module>
import decimal
File "/usr/lib/python2.7/decimal.py", line 3744, in <module>
_numbers.Number.register(Decimal)
AttributeError: 'module' object has no attribute 'Number'
thanks in advance
Jens
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
[newbie] Problem with matplotlib jenswaelkens@gmail.com - 2016-02-19 23:42 -0800
Re: [newbie] Problem with matplotlib Dave Farrance <df@see.replyto.invalid> - 2016-02-20 08:30 +0000
Re: [newbie] Problem with matplotlib Dave Farrance <df@see.replyto.invalid> - 2016-02-20 08:49 +0000
Re: [newbie] Problem with matplotlib Dave Farrance <df@see.replyto.invalid> - 2016-02-20 09:19 +0000
Re: [newbie] Problem with matplotlib jenswaelkens@gmail.com - 2016-02-20 09:02 -0800
Re: [newbie] Problem with matplotlib Mark Lawrence <breamoreboy@yahoo.co.uk> - 2016-02-20 08:42 +0000
Re: [newbie] Problem with matplotlib jenswaelkens@gmail.com - 2016-02-20 09:05 -0800
csiph-web