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

Package breaking in El Capitan #47

Closed
vikashbajaj opened this issue Oct 8, 2015 · 7 comments
Closed

Package breaking in El Capitan #47

vikashbajaj opened this issue Oct 8, 2015 · 7 comments

Comments

@vikashbajaj
Copy link

getting this error after updating to EL Capitan(OSX 10.11)

Traceback (most recent call last):
  File "maccontrol.py", line 42, in <module>
  app.run()
  File "/Users/bajaj/MacControl/env/lib/python2.7/site-packages/rumps/rumps.py", line 1059, in run
    NSUserNotificationCenter.defaultUserNotificationCenter().setDelegate_(self._nsapp)
AttributeError: 'NoneType' object has no attribute 'setDelegate_'
@abyx
Copy link

abyx commented Dec 15, 2015

👍

@scottydelta
Copy link

works if run outside virtualenv

@Cabalist
Copy link

Cabalist commented Jun 8, 2016

Yep. Pyobjc doesn't like virtualenv. :/

@waldo1979
Copy link

You can resolve this issue by adding a Info.plist to the directory where your python binary is. For example:
$ echo $PYENV_ROOT
/usr/local/var/pyenv
$ cat .python-version
hoptray
$ cd /usr/local/var/pyenv/versions/hoptray/bin
$ /usr/libexec/PlistBuddy -c 'Add :CFBundleIdentifier string "org.python.python"' Info.plist

@Cabalist
Copy link

Cabalist commented Aug 9, 2016

Interesting @waldo1979. I really want this to be true. :) Could you tell me a little more about your environment? I don't have a $PYENV_ROOT set or a .python-version file.

I think I get the same path by doing which python. This gets me: /Users/work/.virtualenvs/dashwaretest/bin/python

Then when I add the Info.plist to this directory I get the same error.

@Cabalist
Copy link

Cabalist commented Aug 9, 2016

I take that back. It is now running in a 2.7 virtualenv. Very nice. :)

@jaredks
Copy link
Owner

jaredks commented Dec 24, 2016

Duplicate of #9

@jaredks jaredks closed this as completed Dec 24, 2016
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

6 participants