Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server error with Keynote 6.3 #7

Closed
nikriek opened this issue Apr 25, 2014 · 7 comments
Closed

Server error with Keynote 6.3 #7

nikriek opened this issue Apr 25, 2014 · 7 comments

Comments

@nikriek
Copy link

nikriek commented Apr 25, 2014

I got a execution error with the following traceback:

123:130: execution error: The variable Classic is not defined. (-2753)
Traceback (most recent call last):
  File "remote_server.py", line 215, in <module>
    main()
  File "remote_server.py", line 199, in main
    set_show()
  File "remote_server.py", line 161, in set_show
    STATE.show = slideshow.generate()
  File "/Users/nikriek/Downloads/kaas-master/kaas/slideshow.py", line 199, in generate
    return Slideshow(keynote_script.APPLICATION_VERSION, path, out_dir)
  File "/Users/nikriek/Downloads/kaas-master/kaas/slideshow.py", line 35, in __init__
    self.__kpf__ = kpfutil_v6.KpfV6(kpfdir)
  File "/Users/nikriek/Downloads/kaas-master/kaas/kpfutil_v6.py", line 63, in __init__
    self.generate_notes()
  File "/Users/nikriek/Downloads/kaas-master/kaas/kpfutil_v6.py", line 109, in generate_notes
    keynote_script.export_classic(f)
  File "/Users/nikriek/Downloads/kaas-master/kaas/keynote_script.py", line 95, in export_classic
    return __execute__(command)
  File "/Users/nikriek/Downloads/kaas-master/kaas/keynote_script.py", line 125, in __execute__
    return __execute_with_app__(INSTALLED_VERSIONS[APPLICATION_VERSION], command)
  File "/Users/nikriek/Downloads/kaas-master/kaas/keynote_script.py", line 131, in __execute_with_app__
    return check_output(["osascript", "-e", to_run]).strip()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 575, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['osascript', '-e', 'tell application "/Applications/Keynote.app" to export front document to POSIX file "/var/tmp/tmp.0.guJaCa/classic.key" as Classic']' returned non-zero exit status 1

Any ideas why? I'm not that python-experienced to fix it myself… Maybe it has something to do with recent API changes in Keynote?!

@chrisjrn
Copy link
Owner

Hi Niklas,

Yes, it'll be AppleScript changes in Keynote 6. I currently don't have 6.3,
nor has it shown up on my App Store, so I won't be able to look into it
yet, but thanks for bringing it to my attention.

--Chris

On 25 April 2014 10:13, Niklas Riekenbrauck notifications@github.comwrote:

I got a execution error with the following traceback:

123:130: execution error: The variable Classic is not defined. (-2753)
Traceback (most recent call last):
File "remote_server.py", line 215, in
main()
File "remote_server.py", line 199, in main
set_show()
File "remote_server.py", line 161, in set_show
STATE.show = slideshow.generate()
File "/Users/nikriek/Downloads/kaas-master/kaas/slideshow.py", line 199, in generate
return Slideshow(keynote_script.APPLICATION_VERSION, path, out_dir)
File "/Users/nikriek/Downloads/kaas-master/kaas/slideshow.py", line 35, in init
self.kpf = kpfutil_v6.KpfV6(kpfdir)
File "/Users/nikriek/Downloads/kaas-master/kaas/kpfutil_v6.py", line 63, in init
self.generate_notes()
File "/Users/nikriek/Downloads/kaas-master/kaas/kpfutil_v6.py", line 109, in generate_notes
keynote_script.export_classic(f)
File "/Users/nikriek/Downloads/kaas-master/kaas/keynote_script.py", line 95, in export_classic
return execute(command)
File "/Users/nikriek/Downloads/kaas-master/kaas/keynote_script.py", line 125, in execute
return execute_with_app(INSTALLED_VERSIONS[APPLICATION_VERSION], command)
File "/Users/nikriek/Downloads/kaas-master/kaas/keynote_script.py", line 131, in execute_with_app
return check_output(["osascript", "-e", to_run]).strip()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 575, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['osascript', '-e', 'tell application "/Applications/Keynote.app" to export front document to POSIX file "/var/tmp/tmp.0.guJaCa/classic.key" as Classic']' returned non-zero exit status 1

Any idea why? I'm not that python-experienced to fix it myself. Maybe it
has something to do with recent API changes of Keynote?!


Reply to this email directly or view it on GitHubhttps://github.com//issues/7
.

--Christopher Neugebauer

Jabber: chrisjrn@gmail.com -- IRC: chrisjrn on irc.freenode.net -- WWW:
http://chris.neugebauer.id.au -- Twitter: @chrisjrn

@lwu
Copy link

lwu commented Jun 11, 2014

Same error with Keynote 6.2. Apparently you can look up the appropriate commands via AppleScript Editor: http://support.apple.com/kb/HT6111

In this case, you need to switch out "as Classic" for "as Keynote 09".

@chrisjrn
Copy link
Owner

Thanks, Leslie.

I'll see if I can get this sorted out this evening. Keynote 6 support will
remain experimental, though.

--Chris

On 11 June 2014 14:24, Leslie W notifications@github.com wrote:

Same error with Keynote 6.2. Apparently you can look up the appropriate
commands via AppleScript Editor: http://support.apple.com/kb/HT6111

In this case, you need to switch out "as Classic" for "as Keynote 09".


Reply to this email directly or view it on GitHub
#7 (comment).

--Christopher Neugebauer

Jabber: chrisjrn@gmail.com -- IRC: chrisjrn on irc.freenode.net -- WWW:
http://chris.neugebauer.id.au -- Twitter: @chrisjrn

@lwu
Copy link

lwu commented Jun 11, 2014

Also, for some reason in kpfutil.py:144, NSImage.alloc().initWithContentsOfFile_(texture.path()) is returning None(Type) as a tex object, which means that tex.size() returns AttributeError.

If I just return out there aren't any other errors and the server starts up.

@lwu
Copy link

lwu commented Jun 11, 2014

PS can one get access to the Keymote app to try on Glass? :)

@chrisjrn
Copy link
Owner

Shoot me an e-mail -- chrisjrn@gmail.com -- I'll add you to the beta
programme.

FYI, I've not released Keymote (or upgraded KAAS) for some time now,
because Keynote 6 still doesn't have enough AppleScript support to do what
we need it to.

On 11 June 2014 16:14, Leslie W notifications@github.com wrote:

PS can one get access to the Keymote app to try on Glass? :)


Reply to this email directly or view it on GitHub
#7 (comment).

--Christopher Neugebauer

Jabber: chrisjrn@gmail.com -- IRC: chrisjrn on irc.freenode.net -- WWW:
http://chris.neugebauer.id.au -- Twitter: @chrisjrn

chrisjrn added a commit that referenced this issue Jun 12, 2014
@chrisjrn
Copy link
Owner

This issue is closed; #8 is to deal with the altered textures format in Keynote 6.2, which is needed to generate build previews.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants