Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

cjcaufield

macrumors newbie
Original poster
Feb 28, 2009
4
0
Hi everyone, first post. :)

I'm having a problem importing NSOutlineViewDataSource in a Python Cocoa application. The problem is easily reproduced by creating a new Python Cocoa application (document based), and adding the following to main.py just before AppHelper.runEventLoop():

from AppKit import NSOutlineViewDataSource

The error I get is:

Traceback (most recent call last):
File "/Users/colin/Desktop/Untitled/build/Debug/Untitled.app/Contents/Resources/main.py", line 19, in <module>
from AppKit import NSOutlineViewDataSource
ImportError: cannot import name NSOutlineViewDataSource

Anyone know what the deal is? Thanks.
 

cjcaufield

macrumors newbie
Original poster
Feb 28, 2009
4
0
Forgot to mention, my machine is running 10.5.6 and, as far as I know, everything is up to date.
 

hhas

macrumors regular
Oct 15, 2007
126
0
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.