472,328 Members | 2,102 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,328 software developers and data experts.

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 3968
>>>>> "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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: John Hunter | last post by:
matplotlib is a 2D plotting package for python with a matlab compatible syntax and output tested under linux and windows platforms. ...
3
by: John Hunter | last post by:
matplotlib is a 2D plotting library for python. You can use matplotlib interactively from a python shell or IDE, or embed it in GUI applications...
2
by: scott | last post by:
I am trying to convert a python app that uses matplotlib to a standalone executable using py2exe. After running py2exe and executing my app I get...
2
by: Grant Edwards | last post by:
I downloaded examples/contour_demo.py, and it doesn't run. I've searched both the user guide and the Wiki for "contour" and got zero hits. ...
0
by: spross | last post by:
hi all i have to use matplotlib on mac os x. on the official site of matplotlib, i found a link to precompiled python packages for mac os x: ...
0
by: Soren | last post by:
Hi, I've been trying to embed matplotlib in wxpython. I want to be able to put a figure (axes) in a wx.Panel and place it somewhere in my GUI....
4
by: Bill Jackson | last post by:
Hi, I'm having some trouble plotting with the following matplotlibrc: text.usetex : True I tried clearing the cache files under...
3
by: vajratkarviraj | last post by:
i hav python2.5, matplotlib0.90.1, and py2exe for python 2.5 all on windows xp... i hav a python program(letsc.py) which uses the matplotlib...
4
by: John Henry | last post by:
Has anybody been able to create an exe of their python applications involving matplotlib using pyinstall (ver 1.3)? I am getting a: ...
0
by: PamMish1982 | last post by:
Hi all, I have recently started using Python and I am trying to make a GUI out of Tkinter. I am using matplotlib for the graphic purposes. I have...
0
by: tammygombez | last post by:
Hey fellow JavaFX developers, I'm currently working on a project that involves using a ComboBox in JavaFX, and I've run into a bit of an issue....
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.