473,387 Members | 1,573 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 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 4111
>>>>> "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. matplotlib-0.30 is available for download at...
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 (WX, GTK, and Tkinter). matplotlib supports many...
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 the following stack trace: Traceback (most...
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: http://pythonmac.org/packages/py24-fat/index.html ...
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. The GUI should have other panels with buttons etc....
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 ~/.matplotlib, but this did not help the problem. I'd post...
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 package... and i want 2 make an exe of it for distribution...
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: RuntimeError: Could not find the matplotlib data files when...
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 to make a exe file from this code. I use py2exe...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.