Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8823565
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T06:23:17+00:00 2026-06-14T06:23:17+00:00

I want to make a .app file from my Python source. My Python source

  • 0

I want to make a .app file from my Python source. My Python source is wxPython and has 11 image files (.png , size is 32×32)

Making the .app is a success, but it does not include my image files, it just shows the error message

no bitmap handler for types 50 defined.

Details…

Can't load image from file...

Even in the same directory it is still showing this error message.

I’m using py2app, python 2.7, and wxPython on MacOSX 10.6.7

How can I make a .app with my image files?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T06:23:19+00:00Added an answer on June 14, 2026 at 6:23 am

    The easiest way to include resources is to specify them as data_files in your setup.py

    from setuptools import setup
    
    APP = ['app.py']
    DATA_FILES = [('', ['images'])]
    OPTIONS = {'argv_emulation': True}
    
    setup(
        app=APP,
        data_files=DATA_FILES,
        options={'py2app': OPTIONS},
        setup_requires=['py2app'],
    )
    

    <app.app>/Contents/Resources will be the current directory and resource root for all data. This will place the images/ directory of your project within the resource root.

    If you only wanted to include specific files from your images/ directory you can tell it how to map:

    DATA_FILES = [
        ('images', ['images/picture.jpg', 'images/picture2.png']),
        ('images/icons', ['images/icons/ico1.ico'])
    ]
    

    Or you can get fancier and say “only include all jpegs from my image dir”:

    from glob import glob
    ...
    DATA_FILES = [
        ('images', glob('images/*.jpg')),
    ]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to make an Android app which can transfer a file from one
i want to make an app which can add the file properties of a
I want to make an app that has a view that moves randomly or
I'm trying make my first python app. I want make simple email sender form.
I want to make an app which takes a video from the camera, adds
I'm building app with boost.python. I want to make each cpp-module as a single
I am new android app developer i want make app for tablets and phone
I want to make an app that can receive broadcast when other apps on
I want to make an App Engine connected Android app, and I'm beginning with
HI all I want to make one app for iPhone 2.2.* and for version

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.