Trouble with Cocoa-Python Application

Alright, this may be a completely stupid question but I haven't been able to find the answer anywhere.
I'm new to developing for OS X and didn't want to get my feet wet with Objective-C yet so I decided to try to make a simple application using the Cocoa-Python method. I got everything working on my computer but when I sent it to a friend to have him test it, he said the app wouldn't open. I figured this might be because he doesn't have the Python framework installed, but I'm not sure.
Is there a way to somehow bundle the framework within the app itself and have the app use the bundled framework rather than go searching in /Library/Framework/... for the Python.framework?
I've found similar solutions but none seem to fit what I need.
Thank you in advance!

There are two common cases where an application you built doesn't run on another person's Mac. The first case involves the Debug build configuration. Xcode projects built with the Debug build configuration do not create universal binaries. If you have an Intel Mac, build with the Debug build configuration, and give your app to someone with a PowerPC Mac, the app won't run. The fix is to use the Release build configuration, which you should be able to change from the project window toolbar. The Release build configuration builds universal binaries.
The second case involves people running older versions of Mac OS X. Xcode projects set their deployment target, the earliest version of Mac OS X that can run the app, to the version you're running. If you're running Leopard and give your app to someone running Tiger, the app won't run. The fix is to set the deployment target to 10.4. Choose Project > Edit Project Settings to see your project's build settings. The Deployment Target build setting is in the Deployment collection.

Similar Messages

  • Firefox has trouble with all flash applications

    My favorite forum website recently dropped support for IE. This specific reason, is the ONLY reason I stopped using IE. Firefox has a much closer resemblance to IE than chrome, and this is the ONLY reason I chose it over chrome.
    Everything works fine, except every and all flash applications.
    Youtube, animated ads, games... everything causes huge cpu load spikes and lags like crazy (I'm sure it would cause a crash on a basic computer). I have a very high end rig, the problem is not my hardware, or internet speed (100mbs). It is entirely fire fox.
    All flash apps work FINE on IE/chrome, I tested them. Please offer support, thank you.

    Crashes or other problems with certain multimedia content in Firefox (such as Youtube videos and Flash animations or games) can often be resolved by performing the steps in these Knowledge Base articles:
    * [[Flash Plugin - Keep it up to date and troubleshoot problems]]
    * [[Flash 11.3 crashes]]
    * [[Flash 11.3 doesn't load video in Firefox]]
    On Windows Vista and above, you can disable Flash protected mode by following the instructions on these pages:
    * http://forums.adobe.com/thread/1018071#TemporaryWorkaround
    * http://kb.mozillazine.org/Flash#Disabling_Protected_Mode_in_Flash_11.3
    (See [http://blogs.adobe.com/asset/2012/06/inside-flash-player-protected-mode-for-firefox.html this Adobe blog post] for technical details about Flash protected mode.)
    For recent updates for Adobe Shockwave Flash, please update your version to 14.
    Please refer to the security updates [http://helpx.adobe.com/security/products/flash-player/apsb14-18.html and Adobe Security Bulletin] for more information.
    <!--Please also note that html5 may need to be enabled to view some videos on youtube [https://www.youtube.com/html5]-->
    <!--[version 13]Please refer to these security issues [http://helpx.adobe.com/security/products/flash-player/apsb14-13.html and Adoble Blog post] for more information on the security update. -->
    Please tell us if this helped!

  • Trouble with Flash Player: Application Already In Use

    Hello,
    I'm trying to install Flash Player on my Windows 8 64-bit system for Firefox. When I try to install Flash Player, the installer works fine up to the point of the bar tracking the installation progress. It gets about halfway across, and then I get a message that says Error: Application Already In Use with a green check next to it. Then the installer tells me that the installation has failed. Can anyone tell me how to fix this so I can use Flash? Thanks for the help.

    Use the Offline installer:
    http://download.macromedia.com/pub/flashplayer/current/support/install_flash_player.exe <---FULL installer - works offline
    or
    http://download.macromedia.com/get/flashplayer/current/licensing/win/install_flash_player_ 13_plugin.msi  <-- if the above link won't install
    Save it. Reboot and then run it.

  • XCode 3.0 cocoa-python app throws exception when importing objc

    I have created the default cocoa-python application in xcode. I then try and run it and it says that an exception was thrown. I search back through the console and apparently it could not find the module objc.
    After searching for reasons it is apparently because there are two Python frameworks installed. One in /System/Library/Frameworks and the other in /Library/Frameworks. The one in /Library/Frameworks does not have PyObjC installed for it.
    However, in my xcode proj under linked Frameworks, it points to the python framework in /System/Library/Frameworks which has objc installed. Is there any reason. So apparently when it is running it, it decides not to used that linked framework but the other one without objc instead.
    Would the best thing to do be, to delete the alternative python framework in /Library/Frameworks, or is there a better solution.

    keeler1 wrote:
    Are there any good PyObjC tutorials, preferably ones that do not use xcode.
    I don't have any recommendations to hand, but I imagine a web search should turn up something. I know the Prags have a book on RubyCocoa coming out, but I doubt that'll be much interest if Python's your thing. Personally, I learnt PyObjC by reading up on ObjC basics so I could follow the Cocoa documentation, then playing around with the sample projects included with PyObjC. PyObjC development is pretty much just regular Cocoa development with a thin glue layer on top. There's py2app documentation online if you need it, and again the easiest thing is just to start with the existing examples and modify to suit.

  • How to define interface builder outlets in Cocoa-Python?

    Hi,
    I am writing a Cocoa-Python application but I couldn't find a way to define outlets in Python code that I can use in the Interface Builder. Of course I know how to do that in Objective-C and this doc http://developer.apple.com/documentation/Cocoa/Conceptual/RubyPythonCocoa/Articl es/BuildingRubyCocoaAppl.html explains how to create outlets in Ruby, but what about Python?
    Thanks in advance,
    Ganesh

    I found it out myself. You have to write
    class MyClass(NSObject):
      outletName = objc.IBOutlet('outletName')
      def foo(self):
        # etc.
    Thanks anyway,
    Ganesh

  • Trouble with python

    Hello, after upgrading of gnome I got a trouble with some applications which requires the python. The first, they needed 2.7 python and I had to add the path to ENVPATH by hands, the second is that I don't have library libpython.2.7.* and some application fails during starting with error that such library isn't found.
    $ls /usr/lib |grep python
    lrwxrwxrwx  1 root root       19 Apr  1  2010 libpython2.6.so -> libpython2.6.so.1.0
    -r-xr-xr-x  1 root root  1840308 Apr  1  2010 libpython2.6.so.1.0
    drwxr-xr-x 26 root root    20480 Aug  9 20:24 python2.6
    drwxr-xr-x  3 root root     4096 Sep 14 20:15 python2.7

    karol, Allan, thanks. I enabled testing and doing full upgrade now.
    >Given your posted in Newbie Corner I recommend none...
    I'm now a newbie in linux (2 years gentoo usage ). I posted here because I'm newbie at this forum.

  • How to Use Interactive Forms in BSP Applications - trouble with demo

    Is anyone else out there having trouble with the subject how to guide? https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d0e58022-2a39-2a10-69a8-c1a892e2b3f4
    I think I have everything built out correctly but I get the following run time error.
    Business Server Page (BSP) error
    What happened?
    Calling the BSP page was terminated due to an error.
    SAP Note
    The following error text was processed in the system:
    An exception with the type CX_SY_REF_IS_INITIAL occurred, but was neither handled locally, nor declared in a RAISING clause
    Exception Class CX_SY_REF_IS_INITIAL
    Error Name 
    Program Z_PROCESS_BOOKING_FORM========CP
    Include Z_PROCESS_BOOKING_FORM========CM002
    ABAP Class Z_PROCESS_BOOKING_FORM
    Method DO_REQUEST
    Line 33 
    Long text An attempt was made to execute a dynamic method callon an initial(NULL-) object reference. The reference must refer to an object.
    Following is my code:  line 33 reads as strChecked = node->get_value( ).
    method DO_REQUEST.
    *CALL METHOD SUPER->DO_REQUEST
      data: bookingxml type string.
      bookingxml = request->get_cdata( ).
      data: streamFactory type ref to
      if_ixml_stream_factory.
      data: iStream type ref to if_ixml_istream.
      streamFactory = g_ixml->create_stream_factory( ).
      iStream =
      streamFactory->create_istream_string(
      bookingxml ).
      data: document type ref to if_ixml_document.
      document = g_ixml->create_document( ).
      data: parser type ref to if_ixml_parser.
      parser = g_ixml->create_parser( stream_factory =
      streamFactory
      istream =
      iStream
      document =
      document ).
      parser->parse( ).
      data: node type ref to if_ixml_node.
      data: strChecked type string.
      node = document->find_from_name( name = 'RESERVED'
      strChecked = node->get_value( ).
      data: reserved type BAPISBODAT-RESERVED.
      data: checked type i.
      move strChecked to checked.
      if ( checked = 1 ).
        reserved = 'X'.
      else.
        reserved = ''.
      endif.
      data: custbook type BAPISBONEW.
      node = document->find_from_name( name = 'AIRLINEID'
      custbook-airlineid = node->get_value( ).
      node = document->find_from_name( name = 'CONNECTID'
      custbook-connectid = node->get_value( ).
      data: fd type BAPISBONEW-FLIGHTDATE.
      data: strFd type string.
      node = document->find_from_name( name =
      'FLIGHTDATE' ).
      strFd = node->get_value( ).
      CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
      EXPORTING
      DATE_EXTERNAL = strFd
    * ACCEPT_INITIAL_DATE =
      IMPORTING
      DATE_INTERNAL = custbook-flightdate
      EXCEPTIONS
      DATE_EXTERNAL_IS_INVALID = 1
      OTHERS = 2
      IF SY-SUBRC <> 0.
    * Do something
      ENDIF.
      node = document->find_from_name( name =
      'CUSTOMERID' ).
      custbook-customerid = node->get_value( ).
      node = document->find_from_name( name = 'CLASS' ).
      custbook-class = node->get_value( ).
      node = document->find_from_name( name = 'AGENCYNUM'
      custbook-agencynum = node->get_value( ).
      node = document->find_from_name( name = 'PASSNAME'
      custbook-passname = node->get_value( ).
      data: pb type BAPISBONEW-PASSBIRTH.
      data: strPb type string.
      node = document->find_from_name( name = 'PASSBIRTH'
      strPb = node->get_value( ).
      CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
      EXPORTING
      DATE_EXTERNAL = strPb
    * ACCEPT_INITIAL_DATE =
      IMPORTING
      DATE_INTERNAL = custbook-passbirth
      EXCEPTIONS
      DATE_EXTERNAL_IS_INVALID = 1
      OTHERS = 2
      IF SY-SUBRC <> 0.
    * Something
      ENDIF.
      data: bn type BAPISBOKEY-BOOKINGID.
      data: return type bapiret2_tab.
      data: errmsg type string.
      CALL FUNCTION 'BAPI_FLBOOKING_CREATEFROMDATA'
      EXPORTING
      RESERVE_ONLY = reserved
      BOOKING_DATA = custbook
    * TEST_RUN = ' '
      IMPORTING
    * AIRLINEID =
      BOOKINGNUMBER = bn
    * TICKET_PRICE =
      TABLES
    * EXTENSION_IN =
      RETURN = return.
      data: wa type bapiret2.
      loop at return into wa.
        if wa-type = 'E'.
          move wa-message to errmsg.
          response->append_cdata( errmsg ).
          response->append_cdata( '<BR>' ).
        endif.
      endloop.
    response->append_cdata( 'Flight booked, booking reference number: ').
      data: strBn type string.
      move bn to strBn.
      response->append_cdata( strBn ).
    endmethod.
    The first page works fine but when I submit my form it fails.  I debugged and the request object doesn't look right.
    Any ideas would be greatly appreciated.
    Regards,
    Dan
    Message was edited by:
            Dan Scheck
    Message was edited by:
            Dan Scheck

    Hi Surija,
    there is an issue with Internet Explorer that causes this problem when you launch the BSP applicaiton using the test menu in SE80. The issue does not occur with Firefox...very strange I know.
    Anyway, to get around this you just copy the BSP application URL and open a browser and paste the URL in...so essentially do not use the "Test" in SE80 to launch your application.
    Hope this fixes your problem!
    Cheers,
    Jeff

  • Trouble with Ruby-Cocoa Tutorial (IKImageBrowserView)

    Hello, I'm trying to learn some Mac programming using Ruby so I tried making the project in the Apple tutorial ( http://developer.apple.com/documentation/Cocoa/Conceptual/RubyPythonCocoa/Articl es/BuildingRubyCocoaAppl.html#//apple_ref/doc/uid/TP40005425 )
    Unfortunately it won't run. Every time the console shows this error:
    "Unknown class IKImageBrowserView in Interface Builder file."
    (it defaults to NSView and then more errors result when it gets to the app's code.)
    The tutorial there says that even though IKImageBrowserView isn't in the Library, IB "knows about it" but I feel like something's missing. Although I had no problems changing the Custom Object's Class, and connecting it up. It's only once it tries to run that it fails.

    orangekay wrote:
    RubyCocoa is neither sanctioned nor supported by Apple
    Au contraire: the primary maintainer for RubyCocoa is Laurent Sansonetti, the Apple engineer responsible for Ruby in OS X and also the author of MacRuby, and RubyCocoa is bundled in OS X 10.5 and later along with the Python-Cocoa bridge, PyObjC.
    so any sub-contracted documentation they might supply is probably not going to be kept up to date. That particular tutorial is from last year and things have almost certainly changed since then; you should look for something more recent from the project's maintainers
    Quite possibly; I believe that some of the PyObjC documentation on Apple's site also dates back to Tiger. File a bug on it; IIRC, there's a link at the bottom of each page for doing so.
    Some other links of interest:
    RubyCocoa homepage:
    http://rubycocoa.sourceforge.net
    RubyCocoa mailing list:
    https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk

  • I had a trouble with my lap top and had to format hard disk and install all soft ware again. could any body tell me how to transfer the application and data in my i phone back to my laptop.

    I had a trouble with my lap top and had to format hard disk and install all soft ware again. could any body tell me how to transfer the application and data in my i phone back to itune.

    You can't. It still thinks that your iPhone is synced with another iTunes library (the one that you had before you reformatted the hard drive.

  • I'm having trouble with my applications freezing.  Then when they are "unreponsive" I quit and another becomes "unresponsive" until I'm down to Finder and it won't relaunch.  HELP!!

    I'm having trouble with my applications freezing.  Then I force-quit because they are "unresponsive,"  another applidation becomes "unresponsive" until I'm down to Finder and it won't relaunch.  HELP!!

    Mine is doing the same thing!  I have more than enough hard drive.  It's only 3 months old.

  • My Macbook with 10.6.8 is having trouble with certain applications- Word will not open, and text edit or pdf will not print.

    My Macbook (13 inch 2008) running OS 10.6.8 is having trouble with some applications.  Word will not even open.  I cannot print from text edit or Preview or Adobe.  Excel sometimes opens but very slow.  What could be wrong?  I have repaired permissions, used an antivirus program, deleted some old MS fonts, and still no change.  I have 1 G RAM and there seems to be plenty available and I have 50 G of hard drive space empty.

    Well, first 1gb of Ram is not plenty. It's the absolute bare minimum just to run OS X 10.6.8. The MS Office applications are ram hogs also. I would recommend three things.
    1. Get more ram.
    2. Reinstall and update your MS Office applications.
    3. Reinstall Snow Leopard.
    If you're not familiar with Activity Monitor you might have a look at this link and you'll be able to judge your ram situation a little better.
    http://support.apple.com/kb/PH5149

  • I cannot download Photoshop - had no trouble with the applications though - why is that?

    I cannot download Photoshop, though I had no trouble with other application, why is that?

    I'm using the "download trial" button from the Adobe Cloud page,
    https://creative.adobe.com/products/photoshop
    matilde
    www.matilde-alessandra.com

  • Trouble starting motion based python applications ...

    I am having trouble using many python apps on my Nokia N79. When i try to run them, rotating circle appears on the app icon but they never show up anything and that circle disappears. Python is currently installed in phone memory and so the apps that require it. I tried both stable ver i.e. 1.4.x and beta ver 1.9.1 but neither worked for me. Few of the apps that are not working on my phone 1. RockNScroll 2. LightSabre 3. Groovelab (game) in fact all are motion based apps. However Smartget which is also a python app is working fine. Is this problem due to python or some other thing? Plz help. . .

    karol, Allan, thanks. I enabled testing and doing full upgrade now.
    >Given your posted in Newbie Corner I recommend none...
    I'm now a newbie in linux (2 years gentoo usage ). I posted here because I'm newbie at this forum.

  • I have been having a lot of trouble with the latest itunes update and my ipod classic 80Gb i.e. being unable to sync songs, but now i have no files at all on my ipod, it is completely blank when i view it from my computer. I need help, please, anybody.

    As it says above, i have been having a lot f trouble with my ipod classic and the latest itunes update, i was unable to sync songs or anything to it and have tried every conceivable 'fix' i could find. i have run an itunes diagnostic and the results are posted below. a major problem is that when i try and view my ipod through my computer it displays nothing at all on the ipod, no files or anything, this may be the problem but i have no idea how it has happened or how i could resolve it.
    This ipod holds huge sentimental value and i am loathe to buy a new one! If anybody can help it is greatly appreciated, than kyou in advanced.
    Microsoft Windows 7 x64 Home Premium Edition Service Pack 1 (Build 7601)
    ASUSTeK Computer Inc. K50IJ
    iTunes 11.1.5.5
    QuickTime not available
    FairPlay 2.5.16
    Apple Application Support 3.0.1
    iPod Updater Library 11.1f5
    CD Driver 2.2.3.0
    CD Driver DLL 2.1.3.1
    Apple Mobile Device 7.1.1.3
    Apple Mobile Device Driver 1.64.0.0
    Bonjour 3.0.0.10 (333.10)
    Gracenote SDK 1.9.6.502
    Gracenote MusicID 1.9.6.115
    Gracenote Submit 1.9.6.143
    Gracenote DSP 1.9.6.45
    iTunes Serial Number 0038B8600B98D1E0
    Current user is not an administrator.
    The current local date and time is 2014-03-21 16:52:39.
    iTunes is not running in safe mode.
    WebKit accelerated compositing is enabled.
    HDCP is not supported.
    Core Media is supported.
    Video Display Information
    Intel Corporation, Mobile Intel(R) 4 Series Express Chipset Family
    Intel Corporation, Mobile Intel(R) 4 Series Express Chipset Family
    **** External Plug-ins Information ****
    No external plug-ins installed.
    Genius ID: 2fd81a1f13cf3ff25a8b4f0e8e725116
    **** Device Connectivity Tests ****
    iPodService 11.1.5.5 (x64) is currently running.
    iTunesHelper 11.1.5.5 is currently running.
    Apple Mobile Device service 3.3.0.0 is currently running.
    Universal Serial Bus Controllers:
    Intel(R) ICH9 Family USB Universal Host Controller - 2934.  Device is working properly.
    Intel(R) ICH9 Family USB Universal Host Controller - 2935.  Device is working properly.
    Intel(R) ICH9 Family USB Universal Host Controller - 2936.  Device is working properly.
    Intel(R) ICH9 Family USB Universal Host Controller - 2937.  Device is working properly.
    Intel(R) ICH9 Family USB Universal Host Controller - 2938.  Device is working properly.
    Intel(R) ICH9 Family USB Universal Host Controller - 2939.  Device is working properly.
    Intel(R) ICH9 Family USB2 Enhanced Host Controller - 293A.  Device is working properly.
    Intel(R) ICH9 Family USB2 Enhanced Host Controller - 293C.  Device is working properly.
    No FireWire (IEEE 1394) Host Controller found.

    Here is what worked for me:
      My usb hub, being usb2, was too fast. I moved the wire to a usb port directory on my pc. That is a usb1 port which is slow enough to run your snyc.

  • A trouble with "LIKE" in a select statement

    Hi!
    I'm having trouble with "LIKE" in a select statement...
    With Access I can make the following and everything works well:
    SELECT name, birthday
    FROM client
    WHERE birthday LIKE '*/02/*';
    but if try to do it in my application (it uses Access), it doesn't work - I just can't understand that!!!
    In my application the "month" is always the currently month taken from the "System". Look what I'm doing...
    String query1 = "SELECT name, birthday " +
              "FROM client " +
              "WHERE birthday " +
              "LIKE '*/" +
              pMonth +
              "/*' " +
              "ORDER BY birthday ASC ";
    ResultSet rs = statement1.executeQuery(consulta1);
    boolean moreRecords = rs.next();
    The variable "moreRecords" is always "false", the query returns nothing although the table "client" has records that attend the query.
    Please, anyone can help me?! It's a little bit urgent.
    Thanks,
    Katia.

    Hi Katia,
    I'll bet the problem lies with the characters you're using to escape the LIKE clause. You're using the ones that Access likes to see, but that's not necessarily what's built into the JDBC-ODBC driver class.
    You can find out what the correct escape wildcard characters are from the java.sql.DatabaseMetaData.getSearchStringEscape() method. It'll tell you what to use in the LIKE clause.
    I'm not 100% sure about your code. It doesn't use query1 anywhere. I'd do this:
    String query = "SELECT name, birthday FROM client WHERE birthday LIKE ? ORDER BY birthday ASC";
    PreparedStatement statement = connection.createStatement(query);
    String escape = connection.getMetaData().getSearchStringEscape();
    String test = escape + '/' + pMonth + '/' + escape;
    statement.setString(1, test);
    ResultSet rs = statement.executeQuery();
    while (rs.hasNext())
    // load your data into a data structure to pass back.
    rs.close();
    statement.close();Let me know if that works. - MOD

Maybe you are looking for