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

On Saturday, June 16, 2012 12:36:56 PM UTC+9, 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. 
>  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:
>
> http://packages.python.org/py2app/implementation.html#include-mach-o-dependencies
>
> It looks like dependencies are (in theory) should automatically be 
> included now...
>
> Will report more as I continue to look into this.
>
>
> On Thursday, May 10, 2012 4:00:17 AM UTC+9, Peter Bienstman wrote:
>>
>> 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 
>>
>>
>>

-- 
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/-/tho2GzV4ywsJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/mnemosyne-proj-users?hl=en.

Reply via email to