fikovnik / omnigraffle-export

A command line utility that exports omnigraffle canvases files into various formats with a rubber support.
125 stars 15 forks source link

Installation issue on OSX 10.8 #15

Open joeyscully opened 11 years ago

joeyscully commented 11 years ago

Hi I get this exemption from pip.log when trying to install omnigraffle-export.

Exception information: Traceback (most recent call last): File "/Library/Python/2.7/site-packages/pip/basecommand.py", line 139, in main status = self.run(options, args) File "/Library/Python/2.7/site-packages/pip/commands/install.py", line 271, in run requirement_set.install(install_options, global_options, root=options.root_path) File "/Library/Python/2.7/site-packages/pip/req.py", line 1185, in install requirement.install(install_options, global_options, _args, *_kwargs) File "/Library/Python/2.7/site-packages/pip/req.py", line 592, in install cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False) File "/Library/Python/2.7/site-packages/pip/util.py", line 662, in call_subprocess % (command_desc, proc.returncode, cwd)) InstallationError: Command /usr/bin/python -c "import setuptools;file='/private/var/folders/dn/jtcv_jk95x1g0djz3t3chcm40000gn/T/pip-build-joey/appscript/setup.py';exec(compile(open(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /var/folders/dn/jtcv_jk95x1g0djz3t3chcm40000gn/T/pip-NCbEzz-record/install-record.txt --single-version-externally-managed failed with error code 1 in /private/var/folders/dn/jtcv_jk95x1g0djz3t3chcm40000gn/T/pip-build-joey/appscript

fikovnik commented 11 years ago

Have you run it with enough privileges (aka with sudo)?

joeyscully commented 11 years ago

Yep - running with sudo returns this...which seems to be different.

Traceback (most recent call last): File "/usr/local/bin/omnigraffle-export", line 5, in from pkg_resources import load_entry_point File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2603, in working_set.require(requires) File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 666, in require needed = self.resolve(parse_requirements(requirements)) File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in resolve raise DistributionNotFound(req) # XXX put more info here pkg_resources.DistributionNotFound: appscript

ceeeeej commented 11 years ago

Maybe you need to do 'pip install appscript' and/or 'pip install PyObjC'.

I was missing the "Foundation" package (from Foundation import NSUrl...) but 'pip install Foundation' did not work. I found that I needed the PyObjC package to fix this. FYI - installing the PyObjC library took a very long time.