473,766 Members | 2,023 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PyObjC and Webkits

I am trying to install PyObjC 1.4 on my Mac OS X 10.4.11.

I run:

[tgrav@skathi] Temporary/pyobjc-1.4 --python setup.py bdist_mpkg --
open
** using pyobjc source-deps py2app for building
running bdist_mpkg
installing to build/bdist.macosx-10.3-fat/mpkg
running build
running build_py
running build_ext
Performing task: Generating wrappers & stubs
/Library/Frameworks/Python.framewor k/Versions/2.5/Resources/
Python.app/Contents/MacOS/Python Scripts/CodeGenerators/
cocoa_generator .py
building 'WebKit._WebKit ' extension
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -
fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -
fPIC -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -
I/Library/Frameworks/Python.framewor k/Versions/2.5/include/python2.5 -
c Modules/WebKit/_WebKit.m -o build/temp.macosx-10.3-fat-2.5/Modules/
WebKit/_WebKit.o -IModules/objc -DMACOSX -DAPPLE_RUNTIME -no-cpp-
precomp -Wno-long-double -g -Wall -Wstrict-prototypes -Wmissing-
prototypes -Wformat=2 -W -Wshadow -Wpointer-arith -Wmissing-
declarations -Wnested-externs -Wno-long-long -Wno-import -Ibuild/
codegen/
In file included from Modules/WebKit/_WebKit.m:23:
build/codegen/_WebKit_Enum.in c:3:35: error: WebKit/DOMAbstractView .h:
No such file or directory

Followed by numerous errors.

The problem seems to be that the WebKit Framework is not found by the
install
script. It is present and located in /System/Library/Frameworks/
WebKit.framewor k/
How can I get the code to find this framework?

Cheers
TG
Dec 4 '07 #1
1 1537
On Dec 4, 1:01 pm, Tommy Grav <tg...@mac.comw rote:
I am trying to install PyObjC 1.4 on my Mac OS X 10.4.11.

I run:

[tgrav@skathi] Temporary/pyobjc-1.4 --python setup.py bdist_mpkg --
open
** using pyobjc source-deps py2app for building
running bdist_mpkg
installing to build/bdist.macosx-10.3-fat/mpkg
running build
running build_py
running build_ext
Performing task: Generating wrappers & stubs
/Library/Frameworks/Python.framewor k/Versions/2.5/Resources/
Python.app/Contents/MacOS/Python Scripts/CodeGenerators/
cocoa_generator .py
building 'WebKit._WebKit ' extension
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -
fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -
fPIC -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -
I/Library/Frameworks/Python.framewor k/Versions/2.5/include/python2.5 -
c Modules/WebKit/_WebKit.m -o build/temp.macosx-10.3-fat-2.5/Modules/
WebKit/_WebKit.o -IModules/objc -DMACOSX -DAPPLE_RUNTIME -no-cpp-
precomp -Wno-long-double -g -Wall -Wstrict-prototypes -Wmissing-
prototypes -Wformat=2 -W -Wshadow -Wpointer-arith -Wmissing-
declarations -Wnested-externs -Wno-long-long -Wno-import -Ibuild/
codegen/
In file included from Modules/WebKit/_WebKit.m:23:
build/codegen/_WebKit_Enum.in c:3:35: error: WebKit/DOMAbstractView .h:
No such file or directory

Followed by numerous errors.

The problem seems to be that the WebKit Framework is not found by the
install
script. It is present and located in /System/Library/Frameworks/
WebKit.framewor k/
How can I get the code to find this framework?

Cheers
TG
I've never done this, but I think you need to learn how to create a
custom manifest file:

http://docs.python.org/dist/manifest.html

Hope that helps!

Mike
Dec 5 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2534
by: Sarah Mount | last post by:
Hi everyone. I'm trying to create an exe for a simple pygame app on Win XP. I think I've got the latest (python, py2exe, pygame) and my setup.py file looks like this: | from distutils.core import setup | import glob | import py2exe |
3
2279
by: Kenneth McDonald | last post by:
If this is not an appropriate newsgroup for this type of posting, please let me know and (if possible) suggest an alternative. I've done a fair bit of research on the net, but information is scattered all over the place and I haven't been able to find mailing lists relating specifically to python and UIs. I'd like to start using Python for some GUI programming again. I'd like to use Tk, but it seems to be dying a slow death, so it's...
1
1111
by: weston | last post by:
Does anyone have experience with (or failing that, theoretical knowledge about) installing using the PyObjC bridge on a Mac OS X machine in a context where one doesn't have root/admin access (and therefore can't install things in conventional locations)? Can such a thing be done?
3
1336
by: sapsi | last post by:
Hi, I managed to create a python class and instantiate that from my Objective C Cocoa App (its not a python app). Essentially, i made two classes in IB and then another class(ogle) with outlets for these two. Now here is the implementation for ogle.m -(void)awakeFromNib { NSNumber *n=;
59
2530
by: Kevin Walzer | last post by:
From the introduction to PyObjC, the Python-Objective-C bridge on Mac OS X: "As described in Objective-C for PyObjC users the creation of Objective-C objects is a two-stage process. To initialize objects, first call a class method to allocate the memory (typically alloc), and then call an initializer (typically starts with init). Some classes have class methods which perform this behind the scenes, especially classes that create cached,...
0
1205
by: sapsi | last post by:
Hi, I am writing a SIMBL plugin for Mail.app, so far it loads and the correct method has been swizzled. However, i would like to call the original method and that is where the problem lies. If you could see the code(below), in console.app, i get the following error because of old(x) " 2007-06-26 03:42:04.053 Mail *** NSRunLoop ignoring exception 'exceptions.TypeError: 'int' object is not callable' that raised
0
1275
by: Horace Enea | last post by:
I'm trying to use Python on a Mac running OSX 10.4.9. I installed Python 2.5 along with Idle. My problem is that Xcode no longer works with PyObjC. It gives an error message: ImportError: No module named PyObjCTools. I've down-loaded PyObjC and re-installed it along with PyObjCTools, but still get the same error from Xcode. Any suggestions? Thanks.
1
3551
by: flyfree | last post by:
I got an error during making a python application with xcode 3.0 in OS X Leopard. (KeyError: 'NSUnknownKeyException - : this class is not key value coding-compliant for the key calculatedMean.') The application is a simple example of how to use the PyObjC with xcode 2.0. http://developer.apple.com/cocoa/pyobjc.html
0
1938
by: ateale | last post by:
Hi guys! I am having a bit of difficulty trying to get to a 'timecode' track in a QuickTime file using the QTKit framework in Mac OSX 10.5 I am using XCode 3. I have a QTMovie object (set as self.movie) and I can get my python fingers into it a little. This is what I can get to so far allTracks = self.movie.tracksOfMediaType_("tmcd") if len(self.movie.tracks()) > 0:
0
9568
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9404
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10168
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9837
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8833
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5279
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3929
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3532
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2806
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.