python beginner - python cannot display images ?!?

I have installed wxpython with all required files to my Ubuntu box (6.10), - since I am beginner with python I started with executing
samples provided like "hello.py"..

I get this error with every script that calls images:
"Can't load image from file 'filename.jpg': file does not exist."

Is there reasonable explanation, should I have placed images in some
relevant folder or use absolute paths ??!?

Hi

Please supply source code so that we are able to see if there is some error there. Also try absolute path to the image to make sure that the path is indeed correct.

Regards,

···


Rune Devik
http://www.garageinnovation.org

On 4/11/07, Igor Davidov evripid@bitemydot.com wrote:

Thanks, - my problem is that the filename is ok and the location of
image is ok, just as you said. I did everything by the rules and
still geting the same error. All the scripts execute fine but when
they call images I get this error.

I have installed:
python-wxgtk2.8
python-wxtools
wx2.8-i18n
python

Lazar Kovacevic wrote:

I didn’t look at the hello.py, but my guess is that you need to replace
‘filename’ with the real name of some image, that you also need to place

that image in the same folder where is hello.py.

Hope my guess (ESP) is right :wink:

On 4/10/07, Igor Davidov <evripid@bitemydot.com > > > mailto:evripid@bitemydot.com> wrote:

I have installed wxpython with all required files to my Ubuntu box
(6.10), - since I am beginner with python I started with executing
samples provided like "hello.py"..

I get this error with every script that calls images:
"Can't load image from file 'filename.jpg': file does not exist."
Is there reasonable explanation, should I have placed images in some
relevant folder or use absolute paths ??!?



---------------------------------------------------------------------
To unsubscribe, e-mail:
wxPython-users-unsubscribe@lists.wxwidgets.org
<mailto:

wxPython-users-unsubscribe@lists.wxwidgets.org>

For additional commands, e-mail:
wxPython-users-help@lists.wxwidgets.org
<mailto:

wxPython-users-help@lists.wxwidgets.org>


Lazar

inverudio.com
<http://inverudio.com>
explore-ideas.com <http://explore-ideas.com>


To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail:
wxPython-users-help@lists.wxwidgets.org