#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2003
    Location
    Hilversum / Netherlands
    Posts
    1
    Rep Power
    0

    py2exe: Carbon.Folder (etc) modules not found


    Py2exe didnot work and produced the following warnings:
    The following modules were not found:
    Carbon.Folder
    Carbon.Folders
    fcntl
    After that py2exe decided to quit.

    I am using Python23 and Windows2000. I thought the Carbon modules are used for Macs, so I don't get why I should use them.
    I was trying to build VideoCapture.py from Markus Gritsch. I use the following setup:
    # setup.py
    from distutils.core import setup
    import py2exe

    setup(name="Camelot",
    scripts=["VideoCapture.pyw"],
    data_files=[(".",
    ["Camelot.ico"])],
    )

    and run it with python setup.py py2exe --icon Camelot.ico

    Can you help me with this?

    Thanks, Jo
  2. #2
  3. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Location
    Hull, UK
    Posts
    2,537
    Rep Power
    69
    Hi Jo,

    Mmmm, just a little comfused. the VideoCapture module was built for win32 which makes this error very strange.. it shouldnt even be trying to use the Carbon module and fcntl is a *nix module

    One question, I'm a little unsure why you're trying to compile the module with py2exe? I havn't really used/heard of this module before so forgive my ignorance on this one

    Edit: you could try searching VideoCapture (and the modules it imports) for referances to these modules.. you could also try forcing Py2exe not too include them!

    Mark.
    Last edited by netytan; November 19th, 2003 at 06:01 AM.
    programming language development: www.netytan.com Hula

  4. #3
  5. chown python:users\ /world
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    Texas Tech
    Posts
    95
    Rep Power
    14
    I would force py2exe to not include those modules. Like Mark said, the VideoCapture calls are what is calling the Carbon module.

    Basically I would do a specific search for those modules. Does your program run without being turned into an .exe?

IMN logo majestic logo threadwatch logo seochat tools logo