Re: [newbie] Problem with matplotlib

2016-02-20 Thread jenswaelkens
Op zaterdag 20 februari 2016 09:43:35 UTC+1 schreef Mark Lawrence: > On 20/02/2016 07:42, jenswaelk...@gmail.com wrote: > > 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

Re: [newbie] Problem with matplotlib

2016-02-20 Thread jenswaelkens
Op zaterdag 20 februari 2016 09:50:05 UTC+1 schreef Dave Farrance: > It occurs to me now that the trackback might misidentify the module in > use, if say, you'd named a file "numbers.py" then got rid of it later > leaving a "numbers.pyc" somewhere. If so, see where it is: > > import numbers >

Re: [newbie] Problem with matplotlib

2016-02-20 Thread Dave Farrance
Dave Farrance wrote: >It occurs to me now that the trackback might misidentify the module in >use, if say, you'd named a file "numbers.py" then got rid of it later >leaving a "numbers.pyc" somewhere. If so, see where it is: > >import numbers >print numbers.__file__ I

Re: [newbie] Problem with matplotlib

2016-02-20 Thread Dave Farrance
It occurs to me now that the trackback might misidentify the module in use, if say, you'd named a file "numbers.py" then got rid of it later leaving a "numbers.pyc" somewhere. If so, see where it is: import numbers print numbers.__file__ -- https://mail.python.org/mailman/listinfo/python-list

Re: [newbie] Problem with matplotlib

2016-02-20 Thread Mark Lawrence
On 20/02/2016 07:42, jenswaelk...@gmail.com wrote: 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 Are you certain that this is what you typed?

Re: [newbie] Problem with matplotlib

2016-02-20 Thread Dave Farrance
jenswaelk...@gmail.com wrote: > File "/usr/lib/python2.7/decimal.py", line 3744, in >_numbers.Number.register(Decimal) >AttributeError: 'module' object has no attribute 'Number' Your decimal module seems broken. Confirm that in the Python shell: import numbers print numbers.Number I'm

[newbie] Problem with matplotlib

2016-02-19 Thread jenswaelkens
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):