looking for OSX packager

26 views
Skip to first unread message

Peter Bienstman

unread,
May 9, 2012, 3:00:17 PM5/9/12
to mnemosyne-...@googlegroups.com, mnemosyne-...@googlegroups.com
Hi,

Anyone interested in helping to package Mnemosyne 2.0 for OSX, just me know.

There is code to create the installer for the 1.x series to start
from, but it needs to be updated with the new dependencies.

Thanks in advance!

Peter


George Wade

unread,
May 11, 2012, 3:22:49 PM5/11/12
to mnemosyne-...@googlegroups.com
Is this a good time for me to start making progress at [Fink-kindergarten] ^≠^

I could ask whether to start with the old 1.x installer code. Though I think it makes much more sense to start with Snow Leopard code, 10.6.8, which is secure; moving on to Lion, 10.7.x, which is modern.

The only problem with Kindergarten is to keep them going slowly enough for me.

George

Peter Bienstman

unread,
May 11, 2012, 4:03:52 PM5/11/12
to mnemosyne-...@googlegroups.com
OK, thanks and good luck!

Peter
> --
> You received this message because you are subscribed to the Google
> Groups "mnemosyne-proj-users" group.
> To post to this group, send email to mnemosyne-...@googlegroups.com.
> To unsubscribe from this group, send email to
> mnemosyne-proj-u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/mnemosyne-proj-users?hl=en.
>
>



G.

unread,
May 11, 2012, 6:40:55 PM5/11/12
to mnemosyne-proj-users
I'm trying to learn basic programming on the mac: willing to help, but
damn ignorant of the process. If someone's willing to guide, I'll
follow.

Best,

Rax

Patrick Kenny

unread,
Jun 15, 2012, 11:36:56 PM6/15/12
to mnemosyne-...@googlegroups.com, mnemosyne-...@googlegroups.com
I'm willing to try doing this.  I have RC4 running on my system now, and by following the instructions here:

I managed to get the application working in alias mode from the terminal.  Launching the application, however, results in the following error:

12/06/16 12:31:20.229 [0x0-0xb20b2].org.pythonmac.unspecified.Mnemosyne: Traceback (most recent call last):
12/06/16 12:31:20.229 [0x0-0xb20b2].org.pythonmac.unspecified.Mnemosyne:   File "/Volumes/Bullfrog/patrick/Downloads/Mnemosyne-2.0-RC4/dist/Mnemosyne.app/Contents/Resources/__boot__.py", line 133, in <module>
12/06/16 12:31:20.229 [0x0-0xb20b2].org.pythonmac.unspecified.Mnemosyne:     _argv_emulation()
12/06/16 12:31:20.229 [0x0-0xb20b2].org.pythonmac.unspecified.Mnemosyne:   File "/Volumes/Bullfrog/patrick/Downloads/Mnemosyne-2.0-RC4/dist/Mnemosyne.app/Contents/Resources/__boot__.py", line 131, in _argv_emulation
12/06/16 12:31:20.229 [0x0-0xb20b2].org.pythonmac.unspecified.Mnemosyne:     _get_argvemulator().mainloop()
12/06/16 12:31:20.229 [0x0-0xb20b2].org.pythonmac.unspecified.Mnemosyne:   File "/Volumes/Bullfrog/patrick/Downloads/Mnemosyne-2.0-RC4/dist/Mnemosyne.app/Contents/Resources/__boot__.py", line 70, in mainloop
12/06/16 12:31:20.229 [0x0-0xb20b2].org.pythonmac.unspecified.Mnemosyne:     stoptime = Evt.TickCount() + timeout
12/06/16 12:31:20.229 [0x0-0xb20b2].org.pythonmac.unspecified.Mnemosyne: AttributeError: 'module' object has no attribute 'TickCount'
12/06/16 12:31:20.300 Mnemosyne: Mnemosyne Error

 I'm guessing this is because the dependencies aren't being added?  However, according to the documentation here:

It looks like dependencies are (in theory) should automatically be included now...

Will report more as I continue to look into this.

George Wade

unread,
Jun 16, 2012, 1:47:18 AM6/16/12
to mnemosyne-...@googlegroups.com
There is a Fink Beginners list where people gather to help each other package Linux programs for MacOS.  In spite of the name, said to be 'Finch' in German and Dutch:  they will sometimes bark at an illogical or illegal post.  That is mostly for show;  all is forgiven on correcting one's ways.  I did look at it but still find Linux talk considerably more alien than Japanese or Chinese, for now.

It might be best to start below Lion as that is not properly supported yet.  It should become a valuable addition to Fink packages.  www.finkproject.org/index.php?phpLang=en

George


--
You received this message because you are subscribed to the Google Groups "mnemosyne-proj-users" group.

George Wade

unread,
Jun 16, 2012, 2:01:12 AM6/16/12
to mnemosyne-...@googlegroups.com
More details,

www.finkproject.org/download/10.6-upgrade.php?phpLang=en

www.finkproject.org/download/10.7-upgrade.php?phpLang=en

Full X-code may be needed ?

But if you work out how to manage with a matching version of Python only, or Python and X-code: that could be simple enough that Fink packaging would not be necessary ?

George


On 15 Jun 2012, at 20:36, Patrick Kenny wrote:

> I'm willing to try doing this. I have RC4 running on my system now, and by following the instructions here:
> http://packages.python.org/py2app/tutorial.html
>
> I managed to get the application working in alias mode from the terminal. ...

Patrick Kenny

unread,
Jun 16, 2012, 9:25:37 AM6/16/12
to mnemosyne-...@googlegroups.com
It looks like the previous Mac installers were done using py2app, which doesn't require Fink.

I have been trying to use MacPorts (an alternative to Fink) for the past several months to install the various dev versions of 2.0 but I could never get it working due to various bugs in MacPorts (every time one got solved a new one cropped up).

Instead, I just used easy_install to add all the dependencies manually.

I have this working on my system now (10.7.4) and I have XCode, etc. installed.  I'm using the default Apple distribution of python 2.7 with all the dependencies satisfied.  I just need to know how to add them to the py2app script in setup.py.


Patrick

Peter Bienstman

unread,
Jun 16, 2012, 9:29:46 AM6/16/12
to mnemosyne-...@googlegroups.com
In absence of an installer, detailed instructions in the README file
on how to install this with easy_install would be a good alternative.
There is some stuff there now, which I copied from the website, but is
it still up to date?

Peter
> --
> You received this message because you are subscribed to the Google
> Groups "mnemosyne-proj-users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/mnemosyne-proj-users/-/dT6aL-ANHp4J.

Patrick Kenny

unread,
Jun 16, 2012, 9:33:00 AM6/16/12
to mnemosyne-...@googlegroups.com
No, the instructions are for MacPorts which still has a bug.  I will replicate the steps one-by-one on a different Mac tomorrow and send exact install instructions.  If it looks like it's going to take a long time to figure out how to do an installer, I may even do a screencast.

Patrick

Patrick Kenny

unread,
Jun 16, 2012, 10:16:15 AM6/16/12
to mnemosyne-...@googlegroups.com, mnemosyne-...@googlegroups.com
Ok, one error-- py2app requires a non-Apple version of Python, so I'll have to get the Macports version working.

I was able to build the software successfully, but when I start it I get the following error:

Uncaught exception!
Traceback (innermost last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/mnemosyne", line 5, in <module>
pkg_resources.run_script('Mnemosyne==2.0', 'mnemosyne')
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py", line 499, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py", line 1239, in run_script
execfile(script_filename, namespace, namespace)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Mnemosyne-2.0-py2.7.egg/EGG-INFO/scripts/mnemosyne", line 146, in <module>
debug_file=options.debug_file)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Mnemosyne-2.0-py2.7.egg/mnemosyne/libmnemosyne/__init__.py", line 153, in initialise
self.activate_components()
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Mnemosyne-2.0-py2.7.egg/mnemosyne/libmnemosyne/__init__.py", line 221, in activate_components
self.component_manager.current("config").activate()
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Mnemosyne-2.0-py2.7.egg/mnemosyne/libmnemosyne/configuration.py", line 78, in activate
self.fill_dirs()
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Mnemosyne-2.0-py2.7.egg/mnemosyne/libmnemosyne/configuration.py", line 243, in fill_dirs
os.mkdir(join(self.data_dir, directory))
OSError: [Errno 20] Not a directory: '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/mnemosyne/history'

Indeed, there is no such directory since /bin/mnemosyne is an executable.  Is this a problem on the dependencies configuration or in the installer script itself?


Patrick
Reply all
Reply to author
Forward
0 new messages