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

xCodea w/rumps py2app Conversion Issue #5

Open
elian opened this issue Mar 28, 2014 · 2 comments
Open

xCodea w/rumps py2app Conversion Issue #5

elian opened this issue Mar 28, 2014 · 2 comments

Comments

@elian
Copy link

elian commented Mar 28, 2014

Hi,

During testing of xCodea with one of my projects, I observd the following differences in behaviour of xCodea compared to the project run in Codea:

Note: I am using LDT for project edit on OS X 10.9.2 and xCodea runs on an iPad2 w/iOS 7.04(JB) under Codea 2.0.

  1. After a lot of try-and-error (I am not a skiled OS X user/programmer), I finaly installed all (I hope) the necessary Xcode and python command line tools and site-packages, including the 'rumps' package, necessary to make an xCode py2app. The app is functonal till a point, generating an error imediatly after poping up the request for allowance to inbound connections to xCodea server.

Here is a Console log for this:

27/03/14 05:24:56,858 com.apple.launchd.peruser.501[228]: (com.marklowne.xCodea.82928[1143]) Exited with code: 255
27/03/14 05:25:30,652 xCodea[1146]: Traceback (most recent call last):
27/03/14 05:25:30,653 xCodea[1146]: File "/Users/elianepstain/LDTProjects/CodeaProjects/dist/xCodea.app/Contents/Resources/boot.py", line 341, in
27/03/14 05:25:30,653 xCodea[1146]: run()
27/03/14 05:25:30,653 xCodea[1146]: File "/Users/elianepstain/LDTProjects/CodeaProjects/dist/xCodea.app/Contents/Resources/_boot.py", line 336, in run
27/03/14 05:25:30,653 xCodea[1146]: exec(compile(source, path, 'exec'), globals(), globals())
27/03/14 05:25:30,653 xCodea[1146]: File "/Users/elianepstain/LDTProjects/CodeaProjects/dist/xCodea.app/Contents/Resources/xCodea.py", line 199, in
27/03/14 05:25:30,654 xCodea[1146]: rumps.MenuItem('Show log',callback=show_log),
27/03/14 05:25:30,654 xCodea[1146]: File "/Users/elianepstain/LDTProjects/CodeaProjects/dist/xCodea.app/Contents/Resources/lib/python2.7/rumps/rumps.py", line 340, in _init
27/03/14 05:25:30,654 xCodea[1146]: self.set_callback(callback, key)
27/03/14 05:25:30,654 xCodea[1146]: File "/Users/elianepstain/LDTProjects/CodeaProjects/dist/xCodea.app/Contents/Resources/lib/python2.7/rumps/rumps.py", line 396, in set_callback
27/03/14 05:25:30,654 xCodea[1146]: self.menuitem.setTarget(type(self))
27/03/14 05:25:30,654 xCodea[1146]: ValueError: NSInvalidArgumentException - Class OC_PythonObject: no such selector: methodForSelector:
27/03/14 05:25:30,720 xCodea[1146]: xCodea Error
27/03/14 05:25:30,720 xCodea[1146]: 2014-03-27 05:25:30.718 xCodea[1146:707] xCodea Error
27/03/14 05:26:01,093 com.apple.launchd.peruser.501[228]: (com.marklowne.xCodea.82928[1146]) Exited with code: 255

Thanks,
Elian Epstan

@lowne
Copy link
Owner

lowne commented Mar 28, 2014

Does the prepackaged .app from https://github.com/lowne/xCodea/releases work for you? I tested it on two Macs both with 10.9.2 and it runs, but a sample of two isn't particularly meaningful.

For building it yourself, I encountered some problems in Mavericks:

@elian
Copy link
Author

elian commented Mar 30, 2014

Hi,

The prepackaged .app works fine (didn't realy tested al its features/submenues).

On the other hand, in what concerns building myself the .app, I manually patched rumps and the error was gone. I also reinstalled w/easy_install modulegraph and py2app.

The resulting xCodea.app lounches with no error, installes itself in Menubar but curiously, all menu items exept 'Preferences' and 'Quit' are greyed out. Also all 'Preferenes' submenues are greyed out. Practically, one can select only 'Preferences' and 'Quit'.

Any ideea what might determinate this strange behaviour? I suspect that my Python and its packages inatallation might be incorect. I know this is off-topic, but for unskild interested, coud you please indicate the best way and what to install (including Python) in order to may self-build the xCodea.app.

Thanks,
Elian

@elian elian closed this as completed Mar 30, 2014
@elian elian reopened this Mar 30, 2014
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

2 participants