[AG-DEV] Shared Presentation / Debugging Python Executables on Mac

Douglas Kosovic douglask at itee.uq.edu.au
Tue Aug 7 05:38:43 CDT 2007


Hi Adam,

> I'm trying to work out why Shared Presentation isn't working on a MacBook
> running AG 3.1beta1. I've been trying to debug this but my "primitive
> Windows techniques" don't seem to work on OS X! In particular, I can see
> from the Venue Client log runs:
> 
> /usr/bin/pythonw SharedPresentation.py -v <vurl> -a <aurl> -c <curl>
> 
> (where I've abbreviated the URLs)
> 
> However, I can't just run this from the command line, as it does not know
> where to find SharedApplication.py. I'm not sure if there's some black magic
> which means that Mac applications automatically add to their path the
> contents of the application package, or whether I just need to run some
> script or something that will set up the paths.
> 
> If anyone can suggest to me the easiest way to emulate running programs
> using the lines from the log file, I'd appreciate it.

You need to source a script which sets the PATH and PYTHONPATH env
variable, i.e :

if using bash (or another Bourne shell), issue :
. /Applications/AccessGridToolkit3.app/Contents/Resources/setupenv.sh
(note, it's a dot at the beginning of the previous line, 'source' could
be instead of a dot with bash)

or tcsh (or csh), issue:
source /Applications/AccessGridToolkit3.app/Contents/Resources/setupenv.sh

You'll most likely be using bash as that the default shell.

then cd to the Shared_Presentation folder in
/Applications/AccessGridToolkit3.app/Contents/Resources/SharedApplications

and try the /usr/bin/pythonw command-line again.

> Also, if anyone happens to have run up against similar issues with shared
> presentation, then I'd be interested to know if you've made any progress.
> Currently when I start shared presentation I see neither the shared
> presentation controller or the MS PowerPoint window.

Sorry I haven't tried Shared Presentation on a Mac yet.


Cheers,
Doug





More information about the ag-dev mailing list