News for hackers. Stuff that matters.
Re:OS X Auditor by crag on Sunday September 14, 2014 @05:07PM (#8316237)
I run OSXCollector and I get missing modules error. I'm not a python guy, but looking at the code, it requires:

import Foundation, import calendar, import os, import sys, import shutil

I assuming os, sys, and shutil are part of the system (are they?). What about the other two? Also, which version of Python do I run this under?

Re:OS X Auditor by jschneier00 on Sunday September 14, 2014 @05:26PM (#8316284)
calendar is a builtin as well.

It appears the OSX specific modules are located (on latest Mavericks) in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python

So you need to add that directory (for xattr) as well as that directory + PyObjC (for Foundation) to your PYTHONPATH

Re:OS X Auditor by crag on Sunday September 14, 2014 @06:02PM (#8316380)
Still get the error. Added PYTHONPATH to my bash_profile.

After getting the error again, I looked at that location - it exists but the mods in question (Foundation and Calendar) are not there. I'm on OSX 10.9.4.

It doesn't really matter enough to waste time on though. Thanks for your help.

I just want to point out that in the docs "self contained" doesn't mean the user has to go hunting for mods.

Re:OS X Auditor by atmosx on Monday September 15, 2014 @12:47AM (#8317321)
If you're on a mac using brew or macports usually the paths are usually different. Macports/Brew python doesn't usually have 'pyobjc'. Try running osxcollector as:

sudo /usr/bin/python osxcollector.py

Re:OS X Auditor by c0wl on Sunday September 14, 2014 @05:53PM (#8316353)
On a reasonably modern Mac, all the dependencies should be setup by default - including modules and the correct version of Python.
Re:OS X Auditor by sjy on Sunday September 14, 2014 @10:53PM (#8317063)
I'm on 10.9.4 and I ran into a bunch of problems (which seem to be covered by github issues[1] already).

[1] https://github.com/jipegit/OSXAuditor/issues/27

Re:OS X Auditor by fastball on Sunday September 14, 2014 @06:33PM (#8316466)
Foundation is part of the pyobjc package. You'll need to install that.
Re:OS X Auditor by ddp on Sunday September 14, 2014 @05:15PM (#8316260)
...not a python user either. The README mentions 'pip' but I don't seem to have one of those either.
Re:OS X Auditor by texuf on Sunday September 14, 2014 @05:26PM (#8316286)
Here's a "non-magical introduction to pip" http://www.dabapps.com/blog/introduction-to-pip-and-virtuale...

Pip is an excellent package management system.