omnigraffle-export
omnigraffle-export copied to clipboard
Unhelpful error
Traceback (most recent call last):
File "/usr/local/bin/omnigraffle-export", line 9, in <module>
load_entry_point('omnigraffle-export==1.6', 'console_scripts', 'omnigraffle-export')()
File "build/bdist.macosx-10.9-x86_64/egg/pkg_resources.py", line 356, in load_entry_point
File "build/bdist.macosx-10.9-x86_64/egg/pkg_resources.py", line 2476, in load_entry_point
File "build/bdist.macosx-10.9-x86_64/egg/pkg_resources.py", line 2190, in load
File "/usr/local/lib/python2.7/site-packages/omnigraffle_export/omnigraffle_export.py", line 10, in <module>
from Foundation import NSURL, NSMutableDictionary
ImportError: No module named Foundation
Just got the same error after a fresh install;
I have Python installed by using Homebrew, and XCode. I suspect there is something non-standard in the pythonpath setup, and not related to this project, but I can't seem to figure out how to repair it.
This is mostly the same as #14 and #15. Basically you're missing the PyObjC library. ~~I suspect the package description is incomplete, as it doesn't mention any dependency…~~
Edit: my bad, setup.py
does contain install_requires = ['appscript','pyobjc']
🙄
my only conclusion now is that package management in Python is hopelessly broken…
Edit 2: seems changing omnigraffle_export.py
as follows helps a bit:
from omnigraffle_export.omnigraffle import *