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

Unhelpful error #21

Open
Fresheyeball opened this issue Sep 25, 2014 · 2 comments
Open

Unhelpful error #21

Fresheyeball opened this issue Sep 25, 2014 · 2 comments

Comments

@Fresheyeball
Copy link

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
@distractdiverge
Copy link

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.

@cdlm
Copy link

cdlm commented Sep 12, 2017

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 *

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