469,903 Members | 1,515 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,903 developers. It's quick & easy.

matplotlib

Noe
Hello,

I have a problem with finance_work2.py provided in the documentation. I
can't find the helpers module :
ImportError: No module named helpers

Someone could help me?

thanks in advance.

noe
Jul 18 '05 #1
3 3754
>>>>> "Noe" == Noe <no*@netscape.net> writes:

Noe> Hello, I have a problem with finance_work2.py provided in the
Noe> documentation. I can't find the helpers module : ImportError:
Noe> No module named helpers

Noe> Someone could help me?

You need a couple other files as well - should have mentioned this in
the finance_work file...

Save the following in the same dir as finance_work.py

http://matplotlib.sourceforge.net/sc...ots/helpers.py

http://matplotlib.sourceforge.net/sc...t_nasdaq_d.csv

http://matplotlib.sourceforge.net/sc...ts/__init__.py

You'll also probably want to add a call to the function show at the
end of the file if you want to display the results in a GUI window.

Good luck!
JDH


Jul 18 '05 #2
Noe

"John Hunter" <jd******@ace.bsd.uchicago.edu> a écrit dans le message de
news:ma*************************************@pytho n.org...
>> "Noe" == Noe <no*@netscape.net> writes:


Noe> Hello, I have a problem with finance_work2.py provided in the
Noe> documentation. I can't find the helpers module : ImportError:
Noe> No module named helpers

Noe> Someone could help me?

You need a couple other files as well - should have mentioned this in
the finance_work file...

Save the following in the same dir as finance_work.py

http://matplotlib.sourceforge.net/sc...ots/helpers.py

http://matplotlib.sourceforge.net/sc...t_nasdaq_d.csv

http://matplotlib.sourceforge.net/sc...ts/__init__.py

You'll also probably want to add a call to the function show at the
end of the file if you want to display the results in a GUI window.

Good luck!
JDH


Hi John,

thanks for your answer, but I already have a problem while launching the
script :

Fatal Python error: PyEval_RestoreThread: NULL tstate
abnormal program termination

After a lot of response from google impossible to find the problem...

If you have some clue, I take !

Thanks
Jul 18 '05 #3
>>>>> "Noe" == Noe <no*@netscape.net> writes:

Noe> thanks for your answer, but I already have a problem while
Noe> launching the script :

Noe> Fatal Python error: PyEval_RestoreThread: NULL tstate
Noe> abnormal program termination

This kind of error is almost always caused by an incompatibility in
the GUI environment you are using and the backend you have chosen.
The default backend is set in the configuration file - see
http://matplotlib.sf.net/.matplotlibrc. See also
http://matplotlib.sourceforge.net/faq.html#FREEZE and
http://matplotlib.sourceforge.net/backends.html for general
information on this problem.

If you are running matplotlib from an IDE such as IDLE and you want to
use the tkagg backend (a typical configuration for win32 users), it is
recommended that you launch idle with -n. Unfortunately, there was an
error in matplotlib/backends/backend_tkagg.py in the 'show' function
in the 0.60.2 release. If this indeed is your configuration, try
editing this file and commenting out the line

Tk.mainloop()

in the show function and relaunching idle with -n.

The safest way to test/play/experiment with matplotlib is to launch
your script from the command shell, choosing the backend with the -d
flag, as in

C:> python myscript.py -dTkAgg

as described on http://matplotlib.sourceforge.net/backends.html. Once
you have matplotlib configured to your satisfaction from the shell,
you can refine your backend and IDE choice following the guidelines in
the links above.

Hope this helps,
John Hunter
Jul 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by John Hunter | last post: by
3 posts views Thread by John Hunter | last post: by
2 posts views Thread by scott | last post: by
2 posts views Thread by Grant Edwards | last post: by
reply views Thread by spross | last post: by
reply views Thread by Soren | last post: by
4 posts views Thread by Bill Jackson | last post: by
4 posts views Thread by John Henry | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.